Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
akihokurino committed Dec 2, 2024
1 parent 7d4f06c commit b7b1e39
Show file tree
Hide file tree
Showing 16 changed files with 183 additions and 2,425 deletions.
759 changes: 53 additions & 706 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
members = [
"prelude",
"impl_ethers_rs",
"impl_rust_web3",
"ipfs",
"cli",
"event_watcher"
Expand Down
22 changes: 5 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ TO_ADDRESS := "0x0E91D6613a84d7C8b72a289D8b275AF7717C3d2E"
TOKEN_ID := "1"
MESSAGE := "world"
SIGNATURE := "2a30afb5d5b476a505422d931c5b98a10d6ac6b6fb3a56a27c658a9fa36911f10b079fe392893e684881813e7d07a3fd14048ba902c20eb56eb9f0e7f8c2a1131b"
PACKAGE := "ethers-rs"
CONTRACT := "nft721"
CONTENT_HASH := "QmPDE4pXnFvNtqJ2889HgEQUEft8KCdyMaKKt5zzw3NuMS"

Expand All @@ -37,22 +36,19 @@ build-event-watcher:
balance: build
./target/debug/cli \
--command balance \
--network $(NETWORK) \
--package $(PACKAGE)
--network $(NETWORK)

send-eth: build
./target/debug/cli \
--command send-eth \
--ether $(ETHER) \
--to-address $(TO_ADDRESS) \
--network $(NETWORK) \
--package $(PACKAGE)
--network $(NETWORK)

info: build
./target/debug/cli \
--command info \
--network $(NETWORK) \
--package $(PACKAGE) \
--contract $(CONTRACT)

create-metadata: build
Expand All @@ -68,16 +64,14 @@ mint: build
--contract $(CONTRACT) \
--network $(NETWORK) \
--content-hash $(CONTENT_HASH) \
--amount $(AMOUNT) \
--package $(PACKAGE)
--amount $(AMOUNT)

meta-mint: build
./target/debug/cli \
--command mint \
--contract meta-transaction-wallet \
--network $(NETWORK) \
--content-hash $(CONTENT_HASH) \
--package $(PACKAGE) \
--to-address $(TO_ADDRESS)

transfer: build
Expand All @@ -86,15 +80,13 @@ transfer: build
--contract $(CONTRACT) \
--network $(NETWORK) \
--to-address $(TO_ADDRESS) \
--token-id $(TOKEN_ID) \
--package $(PACKAGE)
--token-id $(TOKEN_ID)

deploy: build
./target/debug/cli \
--command deploy \
--contract $(CONTRACT) \
--network $(NETWORK) \
--package $(PACKAGE)
--network $(NETWORK)

key-gen: build
./target/debug/cli \
Expand Down Expand Up @@ -143,13 +135,9 @@ run-event-watcher:
extract-abi:
cat ethereum/artifacts/contracts/Nft721.sol/Nft721.json | jq '.abi' > impl_ethers_rs/src/nft_721/abi.json
cat ethereum/artifacts/contracts/Nft721.sol/Nft721.json | jq -r '.bytecode' > impl_ethers_rs/src/nft_721/bin
cat ethereum/artifacts/contracts/Nft721.sol/Nft721.json | jq '.abi' > impl_rust_web3/src/nft_721/abi.json
cat ethereum/artifacts/contracts/Nft721.sol/Nft721.json | jq -r '.bytecode' > impl_rust_web3/src/nft_721/bin

cat ethereum/artifacts/contracts/Nft1155.sol/Nft1155.json | jq '.abi' > impl_ethers_rs/src/nft_1155/abi.json
cat ethereum/artifacts/contracts/Nft1155.sol/Nft1155.json | jq -r '.bytecode' > impl_ethers_rs/src/nft_1155/bin
cat ethereum/artifacts/contracts/Nft1155.sol/Nft1155.json | jq '.abi' > impl_rust_web3/src/nft_1155/abi.json
cat ethereum/artifacts/contracts/Nft1155.sol/Nft1155.json | jq -r '.bytecode' > impl_rust_web3/src/nft_1155/bin

cat ethereum/artifacts/contracts/RevealNft721.sol/RevealNft721.json | jq '.abi' > impl_ethers_rs/src/reveal_nft_721/abi.json
cat ethereum/artifacts/contracts/RevealNft721.sol/RevealNft721.json | jq '.bytecode' > impl_ethers_rs/src/reveal_nft_721/bin
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

- rust v1.68.2
- ethers-rs ( https://github.com/gakonst/ethers-rs )
- rust-web3 ( https://github.com/tomusdrw/rust-web3 )
- rust-secp256k1 ( https://github.com/rust-bitcoin/rust-secp256k1 )
- infura ( https://infura.io/ )
- solidity v0.8.17
Expand Down
1 change: 0 additions & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ path = "src/main.rs"
[dependencies]
prelude = { path = "../prelude" }
impl_ethers_rs = { path = "../impl_ethers_rs" }
impl_rust_web3 = { path = "../impl_rust_web3" }
ipfs = { path = "../ipfs" }
tokio = { version = "1", features = ["full"] }
dotenv = "0.15.0"
Expand Down
Loading

0 comments on commit b7b1e39

Please sign in to comment.