From 1f4462e3ec83cbacd9faddb43818231d22408dcf Mon Sep 17 00:00:00 2001 From: hakerkiler Date: Fri, 1 Sep 2023 23:31:24 +0300 Subject: [PATCH 1/8] Added Decimal Mainnet and Testnet network to cli --- packages/cli/src/command-helpers/abi.ts | 4 ++++ packages/cli/src/command-helpers/studio.ts | 2 ++ packages/cli/src/protocols/index.ts | 2 ++ 3 files changed, 8 insertions(+) diff --git a/packages/cli/src/command-helpers/abi.ts b/packages/cli/src/command-helpers/abi.ts index 176b25c88..d25bd96c7 100644 --- a/packages/cli/src/command-helpers/abi.ts +++ b/packages/cli/src/command-helpers/abi.ts @@ -280,6 +280,10 @@ const getPublicRPCEndpoint = (network: string) => { return 'https://rpc.ankr.com/eth_sepolia'; case 'scroll-sepolia': return 'https://rpc.ankr.com/scroll_sepolia_testnet'; + case 'decimal': + return 'https://node.decimalchain.com/web3/'; + case 'sdecimal-testnet': + return 'https://devnet-val.decimalchain.com/web3/'; default: throw new Error(`Unknown network: ${network}`); } diff --git a/packages/cli/src/command-helpers/studio.ts b/packages/cli/src/command-helpers/studio.ts index e6095e24d..7fcd731b8 100644 --- a/packages/cli/src/command-helpers/studio.ts +++ b/packages/cli/src/command-helpers/studio.ts @@ -30,6 +30,8 @@ export const allowedStudioNetworks = [ 'polygon-zkevm-testnet', 'polygon-zkevm', 'scroll-sepolia', + 'decimal', + 'decimal-testnet', ] as const; export const validateStudioNetwork = ({ diff --git a/packages/cli/src/protocols/index.ts b/packages/cli/src/protocols/index.ts index 61c831508..efa5a5222 100644 --- a/packages/cli/src/protocols/index.ts +++ b/packages/cli/src/protocols/index.ts @@ -112,6 +112,8 @@ export default class Protocol { 'polygon-zkevm-testnet', 'polygon-zkevm', 'scroll-sepolia', + 'decimal', + 'decimal-testnet', ], near: ['near-mainnet', 'near-testnet'], cosmos: [ From 3cf7dd287fb9a398a1e3e8b0473f44786373da43 Mon Sep 17 00:00:00 2001 From: hakerkiler Date: Sat, 2 Sep 2023 00:06:08 +0300 Subject: [PATCH 2/8] Added Decimal Mainnet and Testnet network to cli --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 8e3a4da38..b427a317a 100644 --- a/.gitignore +++ b/.gitignore @@ -81,3 +81,4 @@ oclif.manifest.json tmp *.wasm +.idea \ No newline at end of file From 64febce9db6b61223a24694c6e85af3f18894948 Mon Sep 17 00:00:00 2001 From: hakerkiler Date: Sat, 2 Sep 2023 00:07:43 +0300 Subject: [PATCH 3/8] Added Decimal Mainnet and Testnet network to cli --- packages/cli/src/command-helpers/abi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/command-helpers/abi.ts b/packages/cli/src/command-helpers/abi.ts index d25bd96c7..b544d5af8 100644 --- a/packages/cli/src/command-helpers/abi.ts +++ b/packages/cli/src/command-helpers/abi.ts @@ -282,8 +282,8 @@ const getPublicRPCEndpoint = (network: string) => { return 'https://rpc.ankr.com/scroll_sepolia_testnet'; case 'decimal': return 'https://node.decimalchain.com/web3/'; - case 'sdecimal-testnet': - return 'https://devnet-val.decimalchain.com/web3/'; + case 'decimal-testnet': + return 'https://testnet-val.decimalchain.com/web3/'; default: throw new Error(`Unknown network: ${network}`); } From f584016889e305c78082a601b4d2bc6a3db60890 Mon Sep 17 00:00:00 2001 From: hakerkiler Date: Sat, 2 Sep 2023 00:25:36 +0300 Subject: [PATCH 4/8] Added Decimal Mainnet and Testnet network to cli --- .changeset/decimal-bobcats-change.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/decimal-bobcats-change.md diff --git a/.changeset/decimal-bobcats-change.md b/.changeset/decimal-bobcats-change.md new file mode 100644 index 000000000..b64ffe69a --- /dev/null +++ b/.changeset/decimal-bobcats-change.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-cli': minor +--- + +Added Decimal Mainnet and Testnet network to cli From a82345c1bc8db0f55f95f719c1f0c36ad6b60bdd Mon Sep 17 00:00:00 2001 From: hakerkiler Date: Sat, 2 Sep 2023 00:33:06 +0300 Subject: [PATCH 5/8] Added Decimal Mainnet and Testnet network to cli --- .changeset/decimal-bobcats-change.md | 5 ----- packages/cli/package.json | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 .changeset/decimal-bobcats-change.md diff --git a/.changeset/decimal-bobcats-change.md b/.changeset/decimal-bobcats-change.md deleted file mode 100644 index b64ffe69a..000000000 --- a/.changeset/decimal-bobcats-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphprotocol/graph-cli': minor ---- - -Added Decimal Mainnet and Testnet network to cli diff --git a/packages/cli/package.json b/packages/cli/package.json index 86af3d54e..529049c60 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/graph-cli", - "version": "0.56.0", + "version": "0.57.0", "description": "CLI for building for and deploying to The Graph", "license": "(Apache-2.0 OR MIT)", "engines": { From 3e736e41302be5bcd1f8d27accc583615cbf1da7 Mon Sep 17 00:00:00 2001 From: hakerkiler Date: Sat, 2 Sep 2023 00:41:59 +0300 Subject: [PATCH 6/8] Added Decimal Mainnet and Testnet network to cli --- packages/cli/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 529049c60..86af3d54e 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/graph-cli", - "version": "0.57.0", + "version": "0.56.0", "description": "CLI for building for and deploying to The Graph", "license": "(Apache-2.0 OR MIT)", "engines": { From c8434cdb111182311bc7b57516d173b6eeccd351 Mon Sep 17 00:00:00 2001 From: hakerkiler Date: Sat, 2 Sep 2023 00:56:07 +0300 Subject: [PATCH 7/8] Added Decimal Mainnet and Testnet network to cli --- .changeset/metal-sloths-travel.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/metal-sloths-travel.md b/.changeset/metal-sloths-travel.md index b0a555c42..b64ffe69a 100644 --- a/.changeset/metal-sloths-travel.md +++ b/.changeset/metal-sloths-travel.md @@ -1,5 +1,5 @@ --- -'@graphprotocol/graph-cli': patch +'@graphprotocol/graph-cli': minor --- -update prettier +Added Decimal Mainnet and Testnet network to cli From 9e2dff6d20c8b9d8992bae98b1c6e2bc79a1a34a Mon Sep 17 00:00:00 2001 From: hakerkiler Date: Sat, 2 Sep 2023 00:57:18 +0300 Subject: [PATCH 8/8] Added Decimal Mainnet and Testnet network to cli --- .changeset/dirty-guests-dream.md | 5 +++++ .changeset/metal-sloths-travel.md | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/dirty-guests-dream.md diff --git a/.changeset/dirty-guests-dream.md b/.changeset/dirty-guests-dream.md new file mode 100644 index 000000000..b5ebe458b --- /dev/null +++ b/.changeset/dirty-guests-dream.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-cli': minor +--- + +Added Decimal Mainnet and Testnet network to cli \ No newline at end of file diff --git a/.changeset/metal-sloths-travel.md b/.changeset/metal-sloths-travel.md index b64ffe69a..b0a555c42 100644 --- a/.changeset/metal-sloths-travel.md +++ b/.changeset/metal-sloths-travel.md @@ -1,5 +1,5 @@ --- -'@graphprotocol/graph-cli': minor +'@graphprotocol/graph-cli': patch --- -Added Decimal Mainnet and Testnet network to cli +update prettier