Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gas_market] Fix AdminCap and release gas_market v1 #2717

Merged
merged 2 commits into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion infra/rooch-portal-v2/contract/gas_market/Move.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gas_market"
version = "0.0.1"
version = "1.0.0"

[dependencies]
MoveStdlib = { local = "../../../../frameworks/move-stdlib" }
Expand All @@ -10,6 +10,8 @@ BitcoinMove = { local = "../../../../frameworks/bitcoin-move" }


[addresses]
#bc1prcajaj9n7e29u4dfp33x3hcf52yqeegspdpcd79pqu4fpr6llx4sugkfjt
#0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e744c13f2d9998bf76cc3
gas_market = "_"
std = "0x1"
moveos_std = "0x2"
Expand Down
16 changes: 16 additions & 0 deletions infra/rooch-portal-v2/contract/gas_market/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# GasMarket and GasFaucet

1. build package

```bash
rooch move build -p infra/rooch-portal-v2/contract/gas_market --named-addresses gas_market=bc1prcajaj9n7e29u4dfp33x3hcf52yqeegspdpcd79pqu4fpr6llx4sugkfjt
```

2. build tx

```bash
rooch tx build --sender bc1prcajaj9n7e29u4dfp33x3hcf52yqeegspdpcd79pqu4fpr6llx4sugkfjt --function 0x2::module_store::publish_package_entry --args file:infra/rooch-portal-v2/contract/gas_market/build/gas_market/package.rpd
```

3. sign tx
4. submit tx
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
module gas_market::admin {

use moveos_std::object::{Self,to_shared};
use moveos_std::object::{Self,transfer};

struct AdminCap has store, key {}

fun init() {
let admin_cap = object::new_named_object(AdminCap {});
to_shared(admin_cap)
transfer(admin_cap, @gas_market)
}

#[deprecated]
public entry fun fix_admin_cap() {
}

#[test_only]
Expand Down
Loading