From 106339222c33c1d0d6b8f1398fba1422d36e91d7 Mon Sep 17 00:00:00 2001 From: codingsh Date: Wed, 5 Jan 2022 06:09:35 +0000 Subject: [PATCH 1/2] feat(config): aurora, avalanche, fantom, fuse, metis e optimistic --- config/aurora.json | 13 +++++++++++++ config/avalanche.json | 13 +++++++++++++ config/fantom.json | 13 +++++++++++++ config/fuse.json | 13 +++++++++++++ config/metis.json | 13 +++++++++++++ config/optimistic.json | 13 +++++++++++++ package.json | 14 +++++++++++++- 7 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 config/aurora.json create mode 100644 config/avalanche.json create mode 100644 config/fantom.json create mode 100644 config/fuse.json create mode 100644 config/metis.json create mode 100644 config/optimistic.json diff --git a/config/aurora.json b/config/aurora.json new file mode 100644 index 0000000..72e4a67 --- /dev/null +++ b/config/aurora.json @@ -0,0 +1,13 @@ +{ + "chainId": 1313161554, + "network": "aurora", + "contracts": [ + { + "name": "NFTRedPacket", + "description": "NFTRedPacket for matic mainnet", + "address": "", + "startBlock": 19131916, + "abi": "NFTRedPacket" + } + ] +} diff --git a/config/avalanche.json b/config/avalanche.json new file mode 100644 index 0000000..d797dc4 --- /dev/null +++ b/config/avalanche.json @@ -0,0 +1,13 @@ +{ + "chainId": 43114, + "network": "avalanche", + "contracts": [ + { + "name": "NFTRedPacket", + "description": "NFTRedPacket for matic mainnet", + "address": "", + "startBlock": 19131916, + "abi": "NFTRedPacket" + } + ] +} diff --git a/config/fantom.json b/config/fantom.json new file mode 100644 index 0000000..c304b3f --- /dev/null +++ b/config/fantom.json @@ -0,0 +1,13 @@ +{ + "chainId": 250, + "network": "fantom", + "contracts": [ + { + "name": "NFTRedPacket", + "description": "NFTRedPacket for matic mainnet", + "address": "", + "startBlock": 19131916, + "abi": "NFTRedPacket" + } + ] +} diff --git a/config/fuse.json b/config/fuse.json new file mode 100644 index 0000000..1d89976 --- /dev/null +++ b/config/fuse.json @@ -0,0 +1,13 @@ +{ + "chainId": 122, + "network": "fuse", + "contracts": [ + { + "name": "NFTRedPacket", + "description": "NFTRedPacket for matic mainnet", + "address": "", + "startBlock": 19131916, + "abi": "NFTRedPacket" + } + ] +} diff --git a/config/metis.json b/config/metis.json new file mode 100644 index 0000000..e887878 --- /dev/null +++ b/config/metis.json @@ -0,0 +1,13 @@ +{ + "chainId": 1088, + "network": "metis", + "contracts": [ + { + "name": "NFTRedPacket", + "description": "NFTRedPacket for matic mainnet", + "address": "", + "startBlock": 19131916, + "abi": "NFTRedPacket" + } + ] +} diff --git a/config/optimistic.json b/config/optimistic.json new file mode 100644 index 0000000..46a7b56 --- /dev/null +++ b/config/optimistic.json @@ -0,0 +1,13 @@ +{ + "chainId": 10, + "network": "optimistic", + "contracts": [ + { + "name": "NFTRedPacket", + "description": "NFTRedPacket for matic mainnet", + "address": "", + "startBlock": 19131916, + "abi": "NFTRedPacket" + } + ] +} diff --git a/package.json b/package.json index b8d1a8f..76023a4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,13 @@ "prepare-constants:ropsten": "mustache config/ropsten.json templates/constants.ts.template > src/constants.ts", "prepare-constants:mumbai": "mustache config/mumbai.json templates/constants.ts.template > src/constants.ts", "prepare-constants:bsc": "mustache config/bsc.json templates/constants.ts.template > src/constants.ts", - "prepare-constants:polygon": "mustache config/polygon.json templates/constants.ts.template > src/constants.ts", + "prepare-constants:polygon": "mustache config/polygon.json templates/constants.ts.template > src/constants.ts", + "prepare-constants:avalanche": "mustache config/avalanche.json templates/constants.ts.template > src/constants.ts", + "prepare-constants:metis": "mustache config/metis.json templates/constants.ts.template > src/constants.ts", + "prepare-constants:fuse": "mustache config/fuse.json templates/constants.ts.template > src/constants.ts", + "prepare-constants:fantom": "mustache config/fantom.json templates/constants.ts.template > src/constants.ts", + "prepare-constants:aurora": "mustache config/aurora.json templates/constants.ts.template > src/constants.ts", + "prepare-constants:optimistic": "mustache config/optimistic.json templates/constants.ts.template > src/constants.ts", "codegen": "graph codegen", "build": "graph build", "deploy-thegraph-mainnet": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-mainnet", @@ -21,6 +27,12 @@ "deploy-thegraph-mumbai": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-mumbai", "deploy-thegraph-bsc": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-bsc-mainnet", "deploy-thegraph-polygon": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-polygon", + "deploy-thegraph-avalanche": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-avalanche", + "deploy-thegraph-fantom": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-fantom", + "deploy-thegraph-optimistic": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-optimistic", + "deploy-thegraph-fuse": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-fuse", + "deploy-thegraph-metis": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-metis", + "deploy-thegraph-aurora": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ dimensiondev/mask-nft-red-packet-aurora", "create-local": "graph create --node http://localhost:8020/ dimensiondev/mask-nft-red-packet-ropsten", "remove-local": "graph remove --node http://localhost:8020/ dimensiondev/mask-nft-red-packet-ropsten", "deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 dimensiondev/mask-nft-red-packet-ropsten" From 332600c954ca722ba8ba17898ca7a06c53b90632 Mon Sep 17 00:00:00 2001 From: codingsh Date: Thu, 6 Jan 2022 12:02:46 +0000 Subject: [PATCH 2/2] feat(avalanche): add contract address --- config/avalanche.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/avalanche.json b/config/avalanche.json index d797dc4..add7462 100644 --- a/config/avalanche.json +++ b/config/avalanche.json @@ -5,8 +5,8 @@ { "name": "NFTRedPacket", "description": "NFTRedPacket for matic mainnet", - "address": "", - "startBlock": 19131916, + "address": "0x3E99d32B8c601A6628d301673bC28B17F2aDB326", + "startBlock": 9209204, "abi": "NFTRedPacket" } ]