Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
akihokurino committed May 12, 2023
1 parent d5c43b9 commit 9dd5356
Show file tree
Hide file tree
Showing 17 changed files with 943 additions and 50 deletions.
11 changes: 10 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ETHEREUM_URL=
ETHEREUM_CHAIN_ID=5

POLYGON_URL=
POLYGON_WS_URL=
POLYGON_CHAIN_ID=80001

AVALANCHE_URL=
Expand All @@ -24,4 +25,12 @@ POLYGON_NFT_721_ADDRESS=0x411c62762bC2bcC9B3c5aa85c24661EB47Ffa03e
POLYGON_NFT_1155_ADDRESS=0xeB7e8Ab747a4748767542C29cDdAfA2EBfF776AB

AVALANCHE_NFT_721_ADDRESS=0x58bBe70EF8239B9d09F10a70F0FF291DFD70f8Df
AVALANCHE_NFT_1155_ADDRESS=0x46005CbED485e6BFbE3F7Dc50D8BE5553Af989e1
AVALANCHE_NFT_1155_ADDRESS=0x46005CbED485e6BFbE3F7Dc50D8BE5553Af989e1

SELLER_ADDRESS=0x1341048E3d37046Ca18A09EFB154Ea9771744f41
SELLER_SECRET=
BUYER_ADDRESS=0x0E91D6613a84d7C8b72a289D8b275AF7717C3d2E
BUYER_SECRET=
NFT_MARKET_OWNER_SECRET=

POLYGON_NFT_MARKET_ADDRESS=0x0E436C0a80ef25D241846b3623E9FE45adD2C5F5
98 changes: 58 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ members = [
"impl_ethers_rs",
"impl_rust_web3",
"ipfs",
"cli"
"cli",
"event_watcher"
]

31 changes: 30 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ build-ipfs:
build-cli:
cargo build --bin cli

build-event-watcher:
cargo build --bin event_watcher

balance: build
./target/debug/cli \
--command balance \
Expand Down Expand Up @@ -104,6 +107,30 @@ update-time: build
--command update-time \
--network $(NETWORK)

nft-market-sell: build
./target/debug/cli \
--command nft-market-sell \
--token-id $(TOKEN_ID)

nft-market-cancel: build
./target/debug/cli \
--command nft-market-cancel \
--token-id $(TOKEN_ID)

nft-market-buy: build
./target/debug/cli \
--command nft-market-buy \
--token-id $(TOKEN_ID)

approve-for-sell: build
./target/debug/cli \
--command approve-for-sell \
--contract $(CONTRACT) \
--network $(NETWORK) \

run-event-watcher:
cargo run --bin 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
Expand All @@ -119,4 +146,6 @@ extract-abi:
cat ethereum/artifacts/contracts/RevealNft721.sol/RevealNft721.json | jq '.bytecode' > impl_ethers_rs/src/reveal_nft_721/bin

cat ethereum/artifacts/contracts/Sbt721.sol/Sbt721.json | jq '.abi' > impl_ethers_rs/src/sbt_721/abi.json
cat ethereum/artifacts/contracts/Sbt721.sol/Sbt721.json | jq '.bytecode' > impl_ethers_rs/src/sbt_721/bin
cat ethereum/artifacts/contracts/Sbt721.sol/Sbt721.json | jq '.bytecode' > impl_ethers_rs/src/sbt_721/bin

cat ethereum/artifacts/contracts/NftMarket.sol/NftMarket.json | jq '.abi' > impl_ethers_rs/src/nft_market/abi.json
Loading

0 comments on commit 9dd5356

Please sign in to comment.