Skip to content

Commit

Permalink
feat: Add avax deployment (#50)
Browse files Browse the repository at this point in the history
* Add avax deployment

* Fix deployment script
  • Loading branch information
Agupane authored Jun 10, 2024
1 parent 6dbde0c commit c62af79
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
3 changes: 2 additions & 1 deletion codegen/render-templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const chainNameToChainId = {
gnosis: 100, // Added to avoid bugs
polygon: 137,
matic: 137, // Added to avoid bugs
mumbai: 80001
mumbai: 80001,
avalanche: 43114
};

const getTemplateData = () => {
Expand Down
20 changes: 20 additions & 0 deletions networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
"137": {
"address": "0xE6c5c3174439DA7D2D60456Ca7eB97E7Dcd551e6",
"startBlock": 50570440
},
"43114": {
"address": "0xd7859d7f8fc33Eee2df9edbafd247a2F398087a6",
"startBlock": 46422838
}
},
"TheBadgeUsers": {
Expand All @@ -41,6 +45,10 @@
"137": {
"address": "0x8Edfc741aED6B2C43485983d4C7b6B095b00500c",
"startBlock": 50570030
},
"43114": {
"address": "0xDb5c2bcfD8cc522B8DD634DC507E135383049566",
"startBlock": 46422838
}
},
"TheBadgeModels": {
Expand All @@ -63,6 +71,10 @@
"137": {
"address": "0x3C838b8571c53D29108F69b98145f8FcC446Fa5a",
"startBlock": 50570033
},
"43114": {
"address": "0xd53Ec6aB9242cD8f8A8aa839BA91BDeDe6219475",
"startBlock": 46422838
}
},
"KlerosBadgeModelController": {
Expand All @@ -81,6 +93,10 @@
"100": {
"address": "0x51e6775fFcDc4E7bd819663E9CabD2bE723C4fBf",
"startBlock": 31079385
},
"43114": {
"address": "0xf668aff78410CAB48ccEB5c804704050c2096eC2",
"startBlock": 46422838
}
},
"TpBadgeModelController": {
Expand All @@ -103,6 +119,10 @@
"137": {
"address": "0x4dC5E2FaC3D0254fEF7f40163261b9307c1C9df3",
"startBlock": 50570448
},
"43114": {
"address": "0xA76ba1A457BBCBc4736D9a9028dD29f4e89322e5",
"startBlock": 46422838
}
}
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
"name": "thebadge-subgraph",
"license": "MIT",
"description": "Subgraph for TheBadge smart contracts",
"version": "1.1.2.rc2",
"version": "1.1.2.rc4",
"scripts": {
"codegen:goerli": "node codegen/render-templates.js goerli && graph codegen",
"codegen:sepolia": "node codegen/render-templates.js sepolia && graph codegen",
"codegen:gnosis": "node codegen/render-templates.js gnosis && graph codegen",
"codegen:matic": "node codegen/render-templates.js matic && graph codegen",
"codegen:mumbai": "node codegen/render-templates.js mumbai && graph codegen",
"codegen:avalanche": "node codegen/render-templates.js avalanche && graph codegen",
"build:goerli": "yarn codegen:goerli && graph build",
"build:sepolia": "yarn codegen:sepolia && graph build",
"build:gnosis": "yarn codegen:gnosis && graph build",
"build:matic": "yarn codegen:matic && graph build",
"build:mumbai": "yarn codegen:mumbai && graph build",
"build:avalanche": "yarn codegen:avalanche && graph build",
"deploy:mumbai-dev": "yarn build:mumbai && graph deploy --version-label=${npm_package_version} --studio thebadge-mumbai-prod",
"deploy:sepolia-dev": "yarn build:sepolia && graph deploy --version-label=${npm_package_version} --studio thebadge-sepolia-dev",
"deploy:sepolia-staging": "yarn build:sepolia && graph deploy --version-label=${npm_package_version} --studio thebadge-sepolia-staging",
Expand All @@ -23,6 +25,7 @@
"deploy:gnosis-prod": "yarn build:gnosis && graph deploy --version-label=${npm_package_version} --studio thebadge-gnosis-prod",
"deploy:polygon-prod": "yarn build:matic && graph deploy --version-label=${npm_package_version} --studio thebadge-polygon-prod",
"deploy:matic-prod": "yarn build:matic && graph deploy --product hosted-service thebadgeadmin/thebadge-polygon-prod",
"deploy:avalanche": "yarn build:avalanche && graph deploy --version-label=${npm_package_version} --studio thebadge-avax-prod",
"deploy:dev": "yarn deploy:goerli-dev && yarn deploy:sepolia-dev && yarn deploy:mumbai-dev",
"deploy:staging": "yarn deploy:goerli-staging && yarn deploy:sepolia-staging",
"deploy:prod": "yarn deploy:gnosis-prod && yarn deploy:polygon-prod",
Expand Down

0 comments on commit c62af79

Please sign in to comment.