From 6b6caedbf58d4e884f61e0471560d8c59e7eae1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20D=C3=ADaz?= Date: Fri, 12 Apr 2024 10:50:11 -0300 Subject: [PATCH] feat: Add polygon amoy contracts config (#107) * feat: Add polygon amoy contracts config * fix: Update collection factory v3 address * feat: Update amoy satsuma graph ref --- README.md | 1 + config/amoy.json | 27 +++++++++++++++++++++++++++ package.json | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 config/amoy.json diff --git a/README.md b/README.md index d43aac6..c10cd97 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ | Matic Temp | Hosted Services | https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mainnet-temp | QmTKztw187jUHZ33S2pndtyo68K462XwewcvMVAVH7mwZR | Qmf3igvJs24gozdwCwnDyPNz9DEBQMPQRFmEhUzEvgxZSq | | Mumbai | Satsuma | https://subgraph.satsuma-prod.com/decentraland/collections-matic-mumbai/playground | QmdqoM3jpJWWbK1EMTZcSE5WJgiUaoSpKcSLeQRHhqQSea | QmYVGaMGvqkcBMrJ4F5XrkzwCzhB3FfJvHRBERbtgovCai | | Mumbai | Hosted Service | https://thegraph.com/explorer/subgraph/decentraland/collections-matic-mumbai | QmdqoM3jpJWWbK1EMTZcSE5WJgiUaoSpKcSLeQRHhqQSea | QmYVGaMGvqkcBMrJ4F5XrkzwCzhB3FfJvHRBERbtgovCai | +| Amoy | Satsuma | https://subgraph.satsuma-prod.com/decentraland/collections-matic-amoy/playground | QmZKxA9VfjFTDNbNDASec194y3rZxiamtEMakWaoFaD8ov | Qma6T1cGQtBvYY5bsctwLNSbNymXKidkXaC9DbQVTgH1BE | Using [The Graph](https://thegraph.com) and [Alchemy](https://www.alchemy.com/) diff --git a/config/amoy.json b/config/amoy.json new file mode 100644 index 0000000..f2d2740 --- /dev/null +++ b/config/amoy.json @@ -0,0 +1,27 @@ +{ + "network": "polygon-amoy", + "address_fist_collection_v1": "0x30ae57840b0e9b8ea55334083d53d80b2cfe80e0", + "startBock_first_collections_v1": 14517370, + "address_factory": "0x2A72Ec4241Ac4fBc915ae98aC5a5b01AdE721f4B", + "startBlock_factory": 14517370, + "address_factory_v3": "0x802de0c509add2ee29de24de7225daaff4741c43", + "startBlock_factory_v3": 5763249, + "address_old_committee": "0x4bb5ACe5ceB3Dd51ea35fa01a8f9B5507c234270", + "startBlock_old_committee": 14517370, + "address_committee": "0x53c9c388000b6fc91b91fb466742d0e869785c3b", + "startBlock_committee": 5706678, + "address_marketplace": "0x2a09a000224f5dbe0E17214cA95CDe506DA7CB74", + "startBlock_marketplace": 14517370, + "address_marketplace_V2": "0x0c8ad1f6aadf89d2eb19f01a100a6143108fe2b0", + "startBlock_marketplace_V2": 5706656, + "address_bid": "0x0000000000000000000000000000000000000000", + "startBlock_bid": 21834173, + "address_bid_v2": "0x4b66eab79cc03a96fb6275cfcdf23c0db431606d", + "startBlock_bid_v2": 5706662, + "address_rarity": "0xddb3781fff645325c8896aa1f067baa381607ecc", + "startBlock_rarity": 5706665, + "address_rarities_with_oracle": "0x25b6b4bac4adb582a0abd475439da6730777fbf7", + "startBlock_rarities_with_oracle": 5706669, + "address_collection_manager": "0x5309ae874fc4eb21adcd63f8b6c3f766cc3b1849", + "startBlock_collection_manager": 5706681 +} diff --git a/package.json b/package.json index 1f5ae35..74c8b30 100644 --- a/package.json +++ b/package.json @@ -6,11 +6,13 @@ "prepare:mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml && npm run codegen", "prepare:sepolia": "mustache config/sepolia.json subgraph.template.yaml > subgraph.yaml && npm run codegen", "prepare:mumbai": "mustache config/mumbai.json subgraph.template.yaml > subgraph.yaml && npm run codegen", + "prepare:amoy": "mustache config/amoy.json subgraph.template.yaml > subgraph.yaml && npm run codegen", "prepare:matic": "mustache config/matic.json subgraph.template.yaml > subgraph.yaml && npm run codegen", "prepare:temp": "mustache config/matic.json subgraph.template.yaml > subgraph.yaml && npm run codegen", "deploy:mainnet": "npm run prepare:mainnet && npx graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ decentraland/collections-ethereum-mainnet", "deploy:sepolia": "npm run prepare:sepolia && npx graph deploy --studio collections-ethereum-sepolia", "deploy:mumbai": "npm run prepare:mumbai && npx graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ decentraland/collections-matic-mumbai", + "deploy:amoy": "npm run prepare:amoy && npx graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ decentraland/collections-matic-amoy", "deploy:matic": "npm run prepare:matic && npx graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ decentraland/collections-matic-mainnet", "deploy:temp": "npm run prepare:temp && npx graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ decentraland/collections-matic-mainnet-temp", "test": "graph test",