From 9ef4a74fe288a07f3d19a0cd7aa61277af75f512 Mon Sep 17 00:00:00 2001 From: wangwzhou <118584093+wangwzhou@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:06:12 -0700 Subject: [PATCH] feat: Remove sdk address (#105) * Remove sdk address --- README.md | 46 ------------------- config/chainstorage/aptos/mainnet/base.yml | 2 +- .../aptos/mainnet/development.yml | 2 - .../chainstorage/aptos/mainnet/production.yml | 2 - config/chainstorage/arbitrum/mainnet/base.yml | 2 +- .../arbitrum/mainnet/development.yml | 2 - .../arbitrum/mainnet/production.yml | 2 - .../chainstorage/avacchain/mainnet/base.yml | 2 +- .../avacchain/mainnet/development.yml | 2 - .../avacchain/mainnet/production.yml | 2 - config/chainstorage/base/goerli/base.yml | 2 +- .../chainstorage/base/goerli/development.yml | 2 - .../chainstorage/base/goerli/production.yml | 2 - config/chainstorage/base/mainnet/base.yml | 2 +- .../chainstorage/base/mainnet/development.yml | 2 - .../chainstorage/base/mainnet/production.yml | 2 - config/chainstorage/bitcoin/mainnet/base.yml | 2 +- .../bitcoin/mainnet/development.yml | 2 - .../bitcoin/mainnet/production.yml | 2 - config/chainstorage/bsc/mainnet/base.yml | 2 +- .../chainstorage/bsc/mainnet/development.yml | 2 - .../chainstorage/bsc/mainnet/production.yml | 2 - config/chainstorage/dogecoin/mainnet/base.yml | 2 +- .../dogecoin/mainnet/development.yml | 2 - .../dogecoin/mainnet/production.yml | 2 - config/chainstorage/ethereum/goerli/base.yml | 2 +- .../ethereum/goerli/development.yml | 2 - .../ethereum/goerli/production.yml | 2 - config/chainstorage/ethereum/holesky/base.yml | 2 +- .../ethereum/holesky/development.yml | 2 - .../ethereum/holesky/production.yml | 2 - config/chainstorage/ethereum/mainnet/base.yml | 2 +- .../ethereum/mainnet/development.yml | 2 - .../ethereum/mainnet/production.yml | 2 - config/chainstorage/fantom/mainnet/base.yml | 2 +- .../fantom/mainnet/development.yml | 2 - .../fantom/mainnet/production.yml | 2 - config/chainstorage/optimism/mainnet/base.yml | 2 +- .../optimism/mainnet/development.yml | 2 - .../optimism/mainnet/production.yml | 2 - config/chainstorage/polygon/mainnet/base.yml | 2 +- .../polygon/mainnet/development.yml | 2 - .../polygon/mainnet/production.yml | 2 - config/chainstorage/polygon/testnet/base.yml | 2 +- .../polygon/testnet/development.yml | 2 - .../polygon/testnet/production.yml | 2 - config/chainstorage/solana/mainnet/base.yml | 2 +- .../solana/mainnet/development.yml | 2 - .../solana/mainnet/production.yml | 2 - config_templates/config/base.template.yml | 2 +- .../polygon/testnet/development.template.yml | 2 - .../polygon/testnet/production.template.yml | 2 - .../config/development.template.yml | 3 -- .../config/production.template.yml | 3 -- 54 files changed, 17 insertions(+), 137 deletions(-) diff --git a/README.md b/README.md index ec1107ee..8d2fc928 100644 --- a/README.md +++ b/README.md @@ -527,12 +527,6 @@ using `GetBlocksByRange`. 4. Update the checkpoint. 5. Repeat above steps periodically. -```shell -export CHAINSTORAGE_SDK_AUTH_HEADER=cb-nft-api-token -export CHAINSTORAGE_SDK_AUTH_TOKEN=**** -go run ./examples/batch -``` - ### Stream [This example](/examples/stream/main.go) demonstrates how to stream the latest blocks and handle chain reorgs. @@ -540,12 +534,6 @@ The worker processes the events sequentially and relies on [BlockchainEvent_Type to construct the canonical chain. For example, given `+1, +2, +3, -3, -2, +2', +3'` as the events, the canonical chain would be `+1, +2', +3'`. -```shell -export CHAINSTORAGE_SDK_AUTH_HEADER=cb-nft-api-token -export CHAINSTORAGE_SDK_AUTH_TOKEN=**** -go run ./examples/stream -``` - ### Unified The [last example](/examples/unified/main.go) showcases how to turn the data processing into an embarrassingly parallel @@ -562,40 +550,6 @@ and out of order, the logical ordering guarantee is preserved. 6. Update watermark once all the batches have been processed. 7. Repeat above steps. -```shell -export CHAINSTORAGE_SDK_AUTH_HEADER=cb-nft-api-token -export CHAINSTORAGE_SDK_AUTH_TOKEN=**** -go run ./examples/unified -``` - -## Public APIs - -The ChainStorage APIs are in beta preview. Note that the APIs are currently exposed as restful APIs through grpc -transcoding. Please refer to the [proto file](/protos/coinbase/chainstorage/api.proto) for the data schema. - -See below for a few examples. - -```shell -export CHAINSTORAGE_SDK_AUTH_TOKEN=**** - -curl -s -X POST \ - -H "content-type: application/json" \ - -H "x-apikey: ${CHAINSTORAGE_SDK_AUTH_TOKEN}" \ - https://launchpad.coinbase.com/api/exp/chainstorage/ethereum/mainnet/v1/coinbase.chainstorage.ChainStorage/GetLatestBlock | jq - -curl -s -X POST \ - -H "content-type: application/json" \ - -H "x-apikey: ${CHAINSTORAGE_SDK_AUTH_TOKEN}" \ - -d '{"height": 16000000}' \ - https://launchpad.coinbase.com/api/exp/chainstorage/ethereum/mainnet/v1/coinbase.chainstorage.ChainStorage/GetNativeBlock | jq - -curl -s -X POST \ - -H "content-type: application/json" \ - -H "x-apikey: ${CHAINSTORAGE_SDK_AUTH_TOKEN}" \ - -d '{"start_height": 16000000, "end_height": 16000005}' \ - https://launchpad.coinbase.com/api/exp/chainstorage/ethereum/mainnet/v1/coinbase.chainstorage.ChainStorage/GetNativeBlocksByRange | jq -``` - ## Contact Us We have set up a Discord server soon. Here is the link to join (limited 10) https://discord.com/channels/1079683467018764328/1079683467786334220. diff --git a/config/chainstorage/aptos/mainnet/base.yml b/config/chainstorage/aptos/mainnet/base.yml index bb0d90e2..be9ea4d0 100644 --- a/config/chainstorage/aptos/mainnet/base.yml +++ b/config/chainstorage/aptos/mainnet/base.yml @@ -68,7 +68,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/aptos/mainnet/v1 + chainstorage_address: https://example-chainstorage-aptos-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/aptos/mainnet/development.yml b/config/chainstorage/aptos/mainnet/development.yml index 4111faea..97bdc63c 100644 --- a/config/chainstorage/aptos/mainnet/development.yml +++ b/config/chainstorage/aptos/mainnet/development.yml @@ -6,8 +6,6 @@ cadence: address: temporal-dev.example.com:7233 chain: block_start_height: 51500000 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/aptos/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/aptos/mainnet/production.yml b/config/chainstorage/aptos/mainnet/production.yml index 83930d8e..d6b8c56f 100644 --- a/config/chainstorage/aptos/mainnet/production.yml +++ b/config/chainstorage/aptos/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-aptos-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/aptos/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/arbitrum/mainnet/base.yml b/config/chainstorage/arbitrum/mainnet/base.yml index 10a3021d..58be088c 100644 --- a/config/chainstorage/arbitrum/mainnet/base.yml +++ b/config/chainstorage/arbitrum/mainnet/base.yml @@ -68,7 +68,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/arbitrum/mainnet/v1 + chainstorage_address: https://example-chainstorage-arbitrum-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/arbitrum/mainnet/development.yml b/config/chainstorage/arbitrum/mainnet/development.yml index 72a5e55f..7da426e2 100644 --- a/config/chainstorage/arbitrum/mainnet/development.yml +++ b/config/chainstorage/arbitrum/mainnet/development.yml @@ -6,8 +6,6 @@ cadence: address: temporal-dev.example.com:7233 chain: block_start_height: 15000000 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/arbitrum/mainnet/v1 server: bind_address: 0.0.0.0:9090 sla: diff --git a/config/chainstorage/arbitrum/mainnet/production.yml b/config/chainstorage/arbitrum/mainnet/production.yml index 28e2a0bb..4b728d4e 100644 --- a/config/chainstorage/arbitrum/mainnet/production.yml +++ b/config/chainstorage/arbitrum/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-arbitrum-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/arbitrum/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/avacchain/mainnet/base.yml b/config/chainstorage/avacchain/mainnet/base.yml index fe73ed0d..5162b85c 100644 --- a/config/chainstorage/avacchain/mainnet/base.yml +++ b/config/chainstorage/avacchain/mainnet/base.yml @@ -68,7 +68,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/avacchain/mainnet/v1 + chainstorage_address: https://example-chainstorage-avacchain-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/avacchain/mainnet/development.yml b/config/chainstorage/avacchain/mainnet/development.yml index 39e3c0da..d325310e 100644 --- a/config/chainstorage/avacchain/mainnet/development.yml +++ b/config/chainstorage/avacchain/mainnet/development.yml @@ -6,8 +6,6 @@ cadence: address: temporal-dev.example.com:7233 chain: block_start_height: 16000000 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/avacchain/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/avacchain/mainnet/production.yml b/config/chainstorage/avacchain/mainnet/production.yml index ea338d73..2139ace4 100644 --- a/config/chainstorage/avacchain/mainnet/production.yml +++ b/config/chainstorage/avacchain/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-avacchain-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/avacchain/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/base/goerli/base.yml b/config/chainstorage/base/goerli/base.yml index 6f90f266..57a0cac3 100644 --- a/config/chainstorage/base/goerli/base.yml +++ b/config/chainstorage/base/goerli/base.yml @@ -70,7 +70,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/base/goerli/v1 + chainstorage_address: https://example-chainstorage-base-goerli num_workers: 10 restful: true server: diff --git a/config/chainstorage/base/goerli/development.yml b/config/chainstorage/base/goerli/development.yml index 554fffd3..a1e79639 100644 --- a/config/chainstorage/base/goerli/development.yml +++ b/config/chainstorage/base/goerli/development.yml @@ -4,8 +4,6 @@ aws: bucket: example-chainstorage-base-goerli-dev cadence: address: temporal-dev.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/base/goerli/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/base/goerli/production.yml b/config/chainstorage/base/goerli/production.yml index 79c072e6..2777f510 100644 --- a/config/chainstorage/base/goerli/production.yml +++ b/config/chainstorage/base/goerli/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-base-goerli-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/base/goerli/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/base/mainnet/base.yml b/config/chainstorage/base/mainnet/base.yml index 12cb9837..4c0f54ba 100644 --- a/config/chainstorage/base/mainnet/base.yml +++ b/config/chainstorage/base/mainnet/base.yml @@ -70,7 +70,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/base/mainnet/v1 + chainstorage_address: https://example-chainstorage-base-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/base/mainnet/development.yml b/config/chainstorage/base/mainnet/development.yml index ddbffe2e..5ba8943e 100644 --- a/config/chainstorage/base/mainnet/development.yml +++ b/config/chainstorage/base/mainnet/development.yml @@ -4,8 +4,6 @@ aws: bucket: example-chainstorage-base-mainnet-dev cadence: address: temporal-dev.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/base/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/base/mainnet/production.yml b/config/chainstorage/base/mainnet/production.yml index e788546f..ccde6d8e 100644 --- a/config/chainstorage/base/mainnet/production.yml +++ b/config/chainstorage/base/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-base-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/base/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/bitcoin/mainnet/base.yml b/config/chainstorage/bitcoin/mainnet/base.yml index f4196147..4ffd2bea 100644 --- a/config/chainstorage/bitcoin/mainnet/base.yml +++ b/config/chainstorage/bitcoin/mainnet/base.yml @@ -71,7 +71,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/bitcoin/mainnet/v1 + chainstorage_address: https://example-chainstorage-bitcoin-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/bitcoin/mainnet/development.yml b/config/chainstorage/bitcoin/mainnet/development.yml index 7076d1ef..3eabae3e 100644 --- a/config/chainstorage/bitcoin/mainnet/development.yml +++ b/config/chainstorage/bitcoin/mainnet/development.yml @@ -4,8 +4,6 @@ aws: bucket: example-chainstorage-bitcoin-mainnet-dev cadence: address: temporal-dev.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/bitcoin/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/bitcoin/mainnet/production.yml b/config/chainstorage/bitcoin/mainnet/production.yml index fc639b5f..645bc5d4 100644 --- a/config/chainstorage/bitcoin/mainnet/production.yml +++ b/config/chainstorage/bitcoin/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-bitcoin-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/bitcoin/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/bsc/mainnet/base.yml b/config/chainstorage/bsc/mainnet/base.yml index 37489b73..cce8492b 100644 --- a/config/chainstorage/bsc/mainnet/base.yml +++ b/config/chainstorage/bsc/mainnet/base.yml @@ -71,7 +71,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/bsc/mainnet/v1 + chainstorage_address: https://example-chainstorage-bsc-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/bsc/mainnet/development.yml b/config/chainstorage/bsc/mainnet/development.yml index 64c212f4..0ceae9a5 100644 --- a/config/chainstorage/bsc/mainnet/development.yml +++ b/config/chainstorage/bsc/mainnet/development.yml @@ -4,8 +4,6 @@ aws: bucket: example-chainstorage-bsc-mainnet-dev cadence: address: temporal-dev.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/bsc/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/bsc/mainnet/production.yml b/config/chainstorage/bsc/mainnet/production.yml index 1067adde..59618f62 100644 --- a/config/chainstorage/bsc/mainnet/production.yml +++ b/config/chainstorage/bsc/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-bsc-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/bsc/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/dogecoin/mainnet/base.yml b/config/chainstorage/dogecoin/mainnet/base.yml index f22b94c5..a596fb0c 100644 --- a/config/chainstorage/dogecoin/mainnet/base.yml +++ b/config/chainstorage/dogecoin/mainnet/base.yml @@ -75,7 +75,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/dogecoin/mainnet/v1 + chainstorage_address: https://example-chainstorage-dogecoin-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/dogecoin/mainnet/development.yml b/config/chainstorage/dogecoin/mainnet/development.yml index 82f1616a..4f15abc0 100644 --- a/config/chainstorage/dogecoin/mainnet/development.yml +++ b/config/chainstorage/dogecoin/mainnet/development.yml @@ -4,8 +4,6 @@ aws: bucket: example-chainstorage-dogecoin-mainnet-dev cadence: address: temporal-dev.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/dogecoin/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/dogecoin/mainnet/production.yml b/config/chainstorage/dogecoin/mainnet/production.yml index 4eeb7ee9..e58a5a08 100644 --- a/config/chainstorage/dogecoin/mainnet/production.yml +++ b/config/chainstorage/dogecoin/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-dogecoin-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/dogecoin/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/ethereum/goerli/base.yml b/config/chainstorage/ethereum/goerli/base.yml index fb2309e9..b3a07d43 100644 --- a/config/chainstorage/ethereum/goerli/base.yml +++ b/config/chainstorage/ethereum/goerli/base.yml @@ -72,7 +72,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/ethereum/goerli/v1 + chainstorage_address: https://example-chainstorage-ethereum-goerli num_workers: 10 restful: true server: diff --git a/config/chainstorage/ethereum/goerli/development.yml b/config/chainstorage/ethereum/goerli/development.yml index cc54efe7..e1768cf5 100644 --- a/config/chainstorage/ethereum/goerli/development.yml +++ b/config/chainstorage/ethereum/goerli/development.yml @@ -6,8 +6,6 @@ cadence: address: temporal-dev.example.com:7233 chain: block_start_height: 4200000 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/ethereum/goerli/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/ethereum/goerli/production.yml b/config/chainstorage/ethereum/goerli/production.yml index b8bd6d6e..14ec70f1 100644 --- a/config/chainstorage/ethereum/goerli/production.yml +++ b/config/chainstorage/ethereum/goerli/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-ethereum-goerli-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/ethereum/goerli/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/ethereum/holesky/base.yml b/config/chainstorage/ethereum/holesky/base.yml index f066fe20..67159cfe 100644 --- a/config/chainstorage/ethereum/holesky/base.yml +++ b/config/chainstorage/ethereum/holesky/base.yml @@ -68,7 +68,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/ethereum/holesky/v1 + chainstorage_address: https://example-chainstorage-ethereum-holesky num_workers: 10 restful: true server: diff --git a/config/chainstorage/ethereum/holesky/development.yml b/config/chainstorage/ethereum/holesky/development.yml index 686127fc..aa8489d6 100644 --- a/config/chainstorage/ethereum/holesky/development.yml +++ b/config/chainstorage/ethereum/holesky/development.yml @@ -4,8 +4,6 @@ aws: bucket: example-chainstorage-ethereum-holesky-dev cadence: address: temporal-dev.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/ethereum/holesky/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/ethereum/holesky/production.yml b/config/chainstorage/ethereum/holesky/production.yml index a2c6c3ba..6a79dec6 100644 --- a/config/chainstorage/ethereum/holesky/production.yml +++ b/config/chainstorage/ethereum/holesky/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-ethereum-holesky-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/ethereum/holesky/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/ethereum/mainnet/base.yml b/config/chainstorage/ethereum/mainnet/base.yml index cd3e855d..fef9fa96 100644 --- a/config/chainstorage/ethereum/mainnet/base.yml +++ b/config/chainstorage/ethereum/mainnet/base.yml @@ -72,7 +72,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/ethereum/mainnet/v1 + chainstorage_address: https://example-chainstorage-ethereum-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/ethereum/mainnet/development.yml b/config/chainstorage/ethereum/mainnet/development.yml index 5dfa6375..13441cc9 100644 --- a/config/chainstorage/ethereum/mainnet/development.yml +++ b/config/chainstorage/ethereum/mainnet/development.yml @@ -10,8 +10,6 @@ chain: stable: 0 feature: default_stable_event: false -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/ethereum/mainnet/v1 server: bind_address: 0.0.0.0:9090 sla: diff --git a/config/chainstorage/ethereum/mainnet/production.yml b/config/chainstorage/ethereum/mainnet/production.yml index bc05be06..5b1ce0ba 100644 --- a/config/chainstorage/ethereum/mainnet/production.yml +++ b/config/chainstorage/ethereum/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-ethereum-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/ethereum/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/fantom/mainnet/base.yml b/config/chainstorage/fantom/mainnet/base.yml index a79e028d..d0cd0b30 100644 --- a/config/chainstorage/fantom/mainnet/base.yml +++ b/config/chainstorage/fantom/mainnet/base.yml @@ -68,7 +68,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/fantom/mainnet/v1 + chainstorage_address: https://example-chainstorage-fantom-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/fantom/mainnet/development.yml b/config/chainstorage/fantom/mainnet/development.yml index 463be2ee..4d770b7f 100644 --- a/config/chainstorage/fantom/mainnet/development.yml +++ b/config/chainstorage/fantom/mainnet/development.yml @@ -6,8 +6,6 @@ cadence: address: temporal-dev.example.com:7233 chain: block_start_height: 51000000 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/fantom/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/fantom/mainnet/production.yml b/config/chainstorage/fantom/mainnet/production.yml index 8f7c5908..4ffd309d 100644 --- a/config/chainstorage/fantom/mainnet/production.yml +++ b/config/chainstorage/fantom/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-fantom-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/fantom/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/optimism/mainnet/base.yml b/config/chainstorage/optimism/mainnet/base.yml index 16259280..8459f851 100644 --- a/config/chainstorage/optimism/mainnet/base.yml +++ b/config/chainstorage/optimism/mainnet/base.yml @@ -68,7 +68,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/optimism/mainnet/v1 + chainstorage_address: https://example-chainstorage-optimism-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/optimism/mainnet/development.yml b/config/chainstorage/optimism/mainnet/development.yml index e43f775a..24155c2d 100644 --- a/config/chainstorage/optimism/mainnet/development.yml +++ b/config/chainstorage/optimism/mainnet/development.yml @@ -6,8 +6,6 @@ cadence: address: temporal-dev.example.com:7233 chain: block_start_height: 37000000 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/optimism/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/optimism/mainnet/production.yml b/config/chainstorage/optimism/mainnet/production.yml index 4e0efac7..2eb19990 100644 --- a/config/chainstorage/optimism/mainnet/production.yml +++ b/config/chainstorage/optimism/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-optimism-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/optimism/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/polygon/mainnet/base.yml b/config/chainstorage/polygon/mainnet/base.yml index 7a8337ba..733db557 100644 --- a/config/chainstorage/polygon/mainnet/base.yml +++ b/config/chainstorage/polygon/mainnet/base.yml @@ -74,7 +74,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/polygon/mainnet/v1 + chainstorage_address: https://example-chainstorage-polygon-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/polygon/mainnet/development.yml b/config/chainstorage/polygon/mainnet/development.yml index b6c59c94..5718a5a8 100644 --- a/config/chainstorage/polygon/mainnet/development.yml +++ b/config/chainstorage/polygon/mainnet/development.yml @@ -8,8 +8,6 @@ chain: event_tag: latest: 3 stable: 3 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/polygon/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/polygon/mainnet/production.yml b/config/chainstorage/polygon/mainnet/production.yml index 119dde44..fc021614 100644 --- a/config/chainstorage/polygon/mainnet/production.yml +++ b/config/chainstorage/polygon/mainnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-polygon-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/polygon/mainnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/polygon/testnet/base.yml b/config/chainstorage/polygon/testnet/base.yml index 9196d641..8c999f6a 100644 --- a/config/chainstorage/polygon/testnet/base.yml +++ b/config/chainstorage/polygon/testnet/base.yml @@ -70,7 +70,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/polygon/testnet/v1 + chainstorage_address: https://example-chainstorage-polygon-testnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/polygon/testnet/development.yml b/config/chainstorage/polygon/testnet/development.yml index 35189cf4..0b7fe375 100644 --- a/config/chainstorage/polygon/testnet/development.yml +++ b/config/chainstorage/polygon/testnet/development.yml @@ -6,8 +6,6 @@ cadence: address: temporal-dev.example.com:7233 chain: block_start_height: 30000000 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/polygon/testnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/polygon/testnet/production.yml b/config/chainstorage/polygon/testnet/production.yml index 5e60164e..e1ce26f6 100644 --- a/config/chainstorage/polygon/testnet/production.yml +++ b/config/chainstorage/polygon/testnet/production.yml @@ -4,7 +4,5 @@ aws: bucket: example-chainstorage-polygon-testnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/polygon/testnet/v1 server: bind_address: 0.0.0.0:9090 diff --git a/config/chainstorage/solana/mainnet/base.yml b/config/chainstorage/solana/mainnet/base.yml index 0ceeef8a..2e8e91d3 100644 --- a/config/chainstorage/solana/mainnet/base.yml +++ b/config/chainstorage/solana/mainnet/base.yml @@ -71,7 +71,7 @@ gcp: sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/solana/mainnet/v1 + chainstorage_address: https://example-chainstorage-solana-mainnet num_workers: 10 restful: true server: diff --git a/config/chainstorage/solana/mainnet/development.yml b/config/chainstorage/solana/mainnet/development.yml index 58070368..04bfa341 100644 --- a/config/chainstorage/solana/mainnet/development.yml +++ b/config/chainstorage/solana/mainnet/development.yml @@ -8,8 +8,6 @@ chain: block_start_height: 190000000 feature: transaction_indexing: true -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/solana/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config/chainstorage/solana/mainnet/production.yml b/config/chainstorage/solana/mainnet/production.yml index a918512c..266f4729 100644 --- a/config/chainstorage/solana/mainnet/production.yml +++ b/config/chainstorage/solana/mainnet/production.yml @@ -4,8 +4,6 @@ aws: bucket: example-chainstorage-solana-mainnet-prod cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/solana/mainnet/v1 server: bind_address: 0.0.0.0:9090 workflows: diff --git a/config_templates/config/base.template.yml b/config_templates/config/base.template.yml index 71e68b76..8bd57900 100644 --- a/config_templates/config/base.template.yml +++ b/config_templates/config/base.template.yml @@ -65,7 +65,7 @@ functional_test: "" sdk: auth_header: "" auth_token: "" - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/{{blockchain}}/{{network}}/v1 + chainstorage_address: "https://example-chainstorage-{{blockchain}}-{{network}}" num_workers: 10 restful: true server: diff --git a/config_templates/config/chainstorage/polygon/testnet/development.template.yml b/config_templates/config/chainstorage/polygon/testnet/development.template.yml index 9ee25632..fbc164fc 100644 --- a/config_templates/config/chainstorage/polygon/testnet/development.template.yml +++ b/config_templates/config/chainstorage/polygon/testnet/development.template.yml @@ -3,8 +3,6 @@ aws: bucket: example-chainstorage-{{blockchain}}-{{network}}-{{short_env}} chain: block_start_height: 30000000 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/{{blockchain}}/{{network}}/v1 workflows: poller: session_enabled: true diff --git a/config_templates/config/chainstorage/polygon/testnet/production.template.yml b/config_templates/config/chainstorage/polygon/testnet/production.template.yml index 691b5671..ef9f3c36 100644 --- a/config_templates/config/chainstorage/polygon/testnet/production.template.yml +++ b/config_templates/config/chainstorage/polygon/testnet/production.template.yml @@ -3,5 +3,3 @@ aws: aws_account: production cadence: address: temporal.example.com:7233 -sdk: - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/{{blockchain}}/{{network}}/v1 diff --git a/config_templates/config/development.template.yml b/config_templates/config/development.template.yml index 928b6ced..194c6ffc 100644 --- a/config_templates/config/development.template.yml +++ b/config_templates/config/development.template.yml @@ -3,9 +3,6 @@ aws: bucket: example-chainstorage-{{blockchain}}-{{network}}-{{short_env}} cadence: address: temporal-dev.example.com:7233 -sdk: - # TODO: check this address - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/{{blockchain}}/{{network}}/v1 workflows: poller: activity_retry_maximum_attempts: 6 diff --git a/config_templates/config/production.template.yml b/config_templates/config/production.template.yml index 301303a2..75e10927 100644 --- a/config_templates/config/production.template.yml +++ b/config_templates/config/production.template.yml @@ -3,8 +3,5 @@ aws: aws_account: production cadence: address: temporal.example.com:7233 -sdk: -# TODO: check this address - chainstorage_address: https://nft-api.coinbase.com/api/exp/chainstorage/{{blockchain}}/{{network}}/v1 server: bind_address: "0.0.0.0:9090"