From 603f802ba735b0f5c03720c7468dc214fdab336e Mon Sep 17 00:00:00 2001 From: Ben Guidarelli Date: Sun, 15 Oct 2023 21:04:19 -0400 Subject: [PATCH] update fixture files --- connect/src/protocols/cctpTransfer.ts | 15 ++++--- .../cosmwasm/__tests__/unit/platform.test.ts | 10 ++--- .../TokenBridge_Tests_Create_TokenBridge.json | 8 ++-- ..._Transfer_Transactions_Transfer_Token.json | 9 +++-- ...ation_Transactions_Submit_Attestation.json | 11 ++--- ...Details_getOriginalAsset_Real_Wrapped.json | 18 +++++---- ..._Details_getWrappedAsset_Real_Wrapped.json | 34 +++++++++------- ...d_Asset_Details_hasWrappedAsset_Bogus.json | 6 ++- ...ails_hasWrappedAsset_Real_Not_Wrapped.json | 9 +++-- ..._Details_hasWrappedAsset_Real_Wrapped.json | 33 +++++++++------ ...ed_Asset_Details_isWrappedAsset_Bogus.json | 10 +++-- ...tails_isWrappedAsset_Real_Not_Wrapped.json | 8 ++-- ...t_Details_isWrappedAsset_Real_Wrapped.json | 10 +++-- platforms/evm/__tests__/unit/platform.test.ts | 13 +++--- platforms/evm/src/platform.ts | 4 +- .../TokenBridge_Tests_Create_TokenBridge.json | 10 ++--- ...Transfer_Transactions_Transfer_Native.json | 18 ++++----- ..._Transfer_Transactions_Transfer_Token.json | 40 +++++++++---------- ...ation_Transactions_Create_Attestation.json | 18 ++++----- ...ation_Transactions_Submit_Attestation.json | 8 ++-- ...Details_getOriginalAsset_Real_Wrapped.json | 20 +++++----- ..._Details_getWrappedAsset_Real_Wrapped.json | 30 +++++++------- ...d_Asset_Details_hasWrappedAsset_Bogus.json | 12 +++--- ...ails_hasWrappedAsset_Real_Not_Wrapped.json | 10 ++--- ..._Details_hasWrappedAsset_Real_Wrapped.json | 30 +++++++------- ...ed_Asset_Details_isWrappedAsset_Bogus.json | 10 ++--- ...tails_isWrappedAsset_Real_Not_Wrapped.json | 8 ++-- ...t_Details_isWrappedAsset_Real_Wrapped.json | 8 ++-- .../__tests__/integration/tokenBridge.test.ts | 4 +- .../solana/__tests__/unit/platform.test.ts | 19 ++------- 30 files changed, 227 insertions(+), 216 deletions(-) diff --git a/connect/src/protocols/cctpTransfer.ts b/connect/src/protocols/cctpTransfer.ts index 92d629b9e5..7e395d3265 100644 --- a/connect/src/protocols/cctpTransfer.ts +++ b/connect/src/protocols/cctpTransfer.ts @@ -31,7 +31,6 @@ import { TransferState, WormholeTransfer, } from "../wormholeTransfer"; -import { retry } from "../tasks"; import { signSendWait } from "../common"; import { DEFAULT_TASK_TIMEOUT } from "../config"; @@ -45,7 +44,7 @@ export class CCTPTransfer implements WormholeTransfer { transfer: CCTPTransferDetails; // Populated after Initialized - txids?: TransactionId[]; + txids: TransactionId[] = []; // Populated if !automatic and after initialized circleAttestations?: { @@ -275,7 +274,7 @@ export class CCTPTransfer implements WormholeTransfer { this.txids = await signSendWait(fromChain, xfer, signer); this.state = TransferState.Initiated; - return this.txids!.map(({ txid }) => txid); + return this.txids.map(({ txid }) => txid); } private async _fetchWormholeAttestation( @@ -306,7 +305,7 @@ export class CCTPTransfer implements WormholeTransfer { if (!this.circleAttestations || this.circleAttestations.length == 0) { // If we dont have any circle attestations yet, we need to start by // fetching the transaction details from the source chain - if (!this.txids) + if (this.txids.length === 0) throw new Error("No circle attestations or transactions to fetch"); // The last tx should be the circle transfer, its possible there was @@ -319,14 +318,14 @@ export class CCTPTransfer implements WormholeTransfer { this.circleAttestations = [{ id: circleMessage.messageId }]; } - // TODO: add conf for interval per service ? - const retryInterval = 5000; for (const idx in this.circleAttestations) { const ca = this.circleAttestations[idx]; if (ca.attestation) continue; // already got it - const task = () => this.wh.getCircleAttestation(ca.id.hash); - const attestation = await retry(task, retryInterval, timeout); + const attestation = await this.wh.getCircleAttestation( + ca.id.hash, + timeout, + ); if (attestation === null) throw new Error("No attestation available after timeout exhausted"); diff --git a/platforms/cosmwasm/__tests__/unit/platform.test.ts b/platforms/cosmwasm/__tests__/unit/platform.test.ts index b8b0123727..7bd5d97158 100644 --- a/platforms/cosmwasm/__tests__/unit/platform.test.ts +++ b/platforms/cosmwasm/__tests__/unit/platform.test.ts @@ -18,11 +18,9 @@ const COSMWASM_CHAINS = chains.filter((c) => c === "Cosmoshub"); describe("Cosmwasm Platform Tests", () => { describe("Get Chain", () => { test("No conf", () => { - // no issues just grabbing the chain const p = CosmwasmPlatform.setConfig(network, {}); expect(p.conf).toEqual({}); - const c = p.getChain(COSMWASM_CHAINS[0]); - expect(c).toBeTruthy(); + expect(() => p.getChain(COSMWASM_CHAINS[0])).toThrow(); }); test("With conf", () => { @@ -41,9 +39,7 @@ describe("Cosmwasm Platform Tests", () => { // expect getRpc to throw an error since we havent provided // the conf to figure out how to connect expect(async () => await p.getRpc(COSMWASM_CHAINS[0])).rejects.toThrow(); - expect( - async () => await p.getChain(COSMWASM_CHAINS[0]).getRpc() - ).rejects.toThrow(); + expect(async () => p.getChain(COSMWASM_CHAINS[0])).rejects.toThrow(); }); test("With conf", async () => { @@ -52,7 +48,7 @@ describe("Cosmwasm Platform Tests", () => { }); expect(async () => await p.getRpc(COSMWASM_CHAINS[0])).not.toThrow(); expect( - async () => await p.getChain(COSMWASM_CHAINS[0]).getRpc() + async () => await p.getChain(COSMWASM_CHAINS[0]).getRpc(), ).not.toThrow(); }); }); diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge.json index 329ac50e0c..980fa52aba 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge.json @@ -16,7 +16,7 @@ }, "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:28 GMT", + "Mon, 16 Oct 2023 13:45:03 GMT", "Content-Type", "application/json", "Content-Length", @@ -24,7 +24,7 @@ "Connection", "close", "CF-Cache-Status", - "DYNAMIC", + "HIT", "Access-Control-Allow-Origin", "*", "Cache-Control", @@ -37,12 +37,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273ff52d350f63-EWR" + "8170bd73a8b442cd-EWR" ], "responseIsBinary": false } diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Token.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Token.json index 5fcecbc743..04c5ee755e 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Token.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Token.json @@ -23,12 +23,11 @@ ], "status": 200, "response": [ - "1f8b0800000000000003000000ffff", - "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23231d3512a4a2d2ecd2951b25232a83054aad5c1a1d01445a1018540a93616000000ffff03003a214b0c92000000" + "1f8b0800000000000003000000ffff8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23231d5512a4a2d2ecd2951b25232a830a01028d5eae0b0c70cc51e43a5da5800000000ffff03003ab5307292000000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:30 GMT", + "Mon, 16 Oct 2023 13:45:06 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -49,12 +48,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80274005edf042d7-EWR", + "8170bd859b9f8c59-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Submit_Attestation.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Submit_Attestation.json index 2e7a30d8d0..863eefb258 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Submit_Attestation.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Submit_Attestation.json @@ -9,7 +9,7 @@ "params": [ { "to": "0x3ee18b2214aff97000d974cf647e7c347e8fa585", - "data": "0x1ff1e286000000000000000000000000000000000000000000000000000000000000000200000000000000000000000020baa02ba4e9665484e80b7f0da2b154b3af3f32" + "data": "0x1ff1e28600000000000000000000000000000000000000000000000000000000000000020000000000000000000000004bc6a1baadb9ab4d56650aefcf00e723b5f69d8a" }, "latest" ], @@ -23,12 +23,11 @@ ], "status": 200, "response": [ - "1f8b0800000000000003000000ffff", - "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23231d1512a4a2d2ecd2951b25232a83054aad5c1a1d01845a1018540a93616000000ffff0300ecda684a92000000" + "1f8b08000000000000038aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23231d1512a4a2d2ecd2951b25232a83054aad5c1a1d01845a1018540a93616000000ffff0300ecda684a92000000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:30 GMT", + "Mon, 16 Oct 2023 13:45:06 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -49,12 +48,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80274004e92c43ef-EWR", + "8170bd8458aa41f2-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getOriginalAsset_Real_Wrapped.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getOriginalAsset_Real_Wrapped.json index d53b6c63fa..369f0f4e47 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getOriginalAsset_Real_Wrapped.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getOriginalAsset_Real_Wrapped.json @@ -56,11 +56,11 @@ "status": 200, "response": [ "1f8b0800000000000003000000ffff", - "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23234d0512a4a2d2ecd2951b25232a83054aad5c1a1d088588526442ab44451674021c0ed1e433ad9634c4d7b0c956a6301000000ffff03008d25333eb3010000" + "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b2b2d4512a4a2d2ecd2951b25232a830a01028d5ea60b7c6d000c51e43dc0a0de9e42023621d644c4d07e1b1c704dd41b100000000ffff030082bb9a1cb3010000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:28 GMT", + "Mon, 16 Oct 2023 13:45:04 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -81,12 +81,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273ff97c7643f2-EWR", + "8170bd7849fcc359-EWR", "Content-Encoding", "gzip" ], @@ -132,12 +134,12 @@ ], "status": 200, "response": [ - "1f8b0800000000000003a4cd4b0a84301045d1bdbc7190943155215b1107494cc0a651f10342e3de7bec4010bce303b7fde1b34ee3322778d49586c2d0c3132b2c79ddbf1b3cf44138d50d744fa1bd40fd2ebeffc8a34f345498433089b2386bd814edc4068ad2e45aa2b3a5674e82b3fb030000ffff", - "03001516090123010000" + "1f8b0800000000000003000000ffff", + "a4cd4b0a84301045d1bdbc7190943155215b1107494cc0a651f10342e3de7bec4010bce303b7fde1b34ee3322778d49586c2d0c3132b2c79ddbf1b3cf44138d50d744fa1bd40fd2ebeffc8a34f345498433089b2386bd814edc4068ad2e45aa2b3a5674e82b3fb030000ffff03001516090123010000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:29 GMT", + "Mon, 16 Oct 2023 13:45:04 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -158,12 +160,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273ffacdcf43a3-EWR", + "8170bd795ed618b4-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getWrappedAsset_Real_Wrapped.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getWrappedAsset_Real_Wrapped.json index b77d0271eb..6016e03840 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getWrappedAsset_Real_Wrapped.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getWrappedAsset_Real_Wrapped.json @@ -55,12 +55,12 @@ ], "status": 200, "response": [ - "1f8b0800000000000003000000ffff8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23236d2512a4a2d2ecd2951b25232a83054aad5c1a1d01845a1018500b73d26c43ac8949a0ec2638f19b10e32a47208c502000000ffff", - "0300fb0fee9ab4010000" + "1f8b0800000000000003000000ffff", + "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23236d2512a4a2d2ecd2951b25232a83054aad5c1a1d0845885a6280a0d280378ec3123d64186d47490016e7b8ca96c4f2c000000ffff0300972007f5b4010000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:30 GMT", + "Mon, 16 Oct 2023 13:45:05 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -81,12 +81,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "802740016a1f428f-EWR", + "8170bd80cd5b0f47-EWR", "Content-Encoding", "gzip" ], @@ -132,12 +134,13 @@ ], "status": 200, "response": [ - "1f8b08000000000000038aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23236d7512a4a2d2ecd2951b25232a830a00c9829d5eae0b0c702c51e43dc0a2d89725092b1619a995962a271b261aab985a9b199719a8185b969a26192b949aa91799285695a8a9959b2394e7b4c0cd01d140b000000ffff", - "0300e7c2440823010000" + "1f8b0800000000000003000000ffff", + "a4cd410a83301046e1bbfceb2013c7cca4b98a7491c4045ac416ad5028debd6bc182d0b7fee0f51fdc97c7343f3302da8660701b10d81bcc6559c71702e86db19963d8d149c8ba83f45ff2fb7339f5496cab488c9c6d51ef58b89257176dd2aeb49abcab8348566cd72f000000ffff", + "0300e35eb38023010000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:30 GMT", + "Mon, 16 Oct 2023 13:45:05 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -145,7 +148,7 @@ "Connection", "close", "CF-Cache-Status", - "HIT", + "DYNAMIC", "Access-Control-Allow-Origin", "*", "Cache-Control", @@ -158,12 +161,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80274002b98d4219-EWR", + "8170bd822ad14265-EWR", "Content-Encoding", "gzip" ], @@ -193,12 +198,11 @@ ], "status": 200, "response": [ - "1f8b0800000000000003000000ffff", - "74ca4d0e40301006d0bb7ceb46a6d5327a15b140671222889f4422ee6e6de1ad5f7d63dc97795b7b44b88c60302444ef0c36d9cfe940045d168ff989f613e90707b539772ae245598227aea8d7ceb3168e426953514a6a733ccd0b0000ffff03008c7aaf0592000000" + "1f8b080000000000000374cd4d0e40301006d0bb7ceb46a6d5327a15b140671222889f4422ee6e6de15de0d537c67d99b7b54784cb08064342f4d66093fd9c0e44d0453f38a8cdb953112fca123c7145bd769eb570144a9b8a52529be3313f8ffb3c164ff3020000ffff03002fad529792000000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:30 GMT", + "Mon, 16 Oct 2023 13:45:05 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -206,7 +210,7 @@ "Connection", "close", "CF-Cache-Status", - "DYNAMIC", + "HIT", "Access-Control-Allow-Origin", "*", "Cache-Control", @@ -219,12 +223,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80274003bb6e4386-EWR", + "8170bd833d7e5e6d-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Bogus.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Bogus.json index 36b051b5a2..86287988a0 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Bogus.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Bogus.json @@ -28,7 +28,7 @@ ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:29 GMT", + "Mon, 16 Oct 2023 13:45:04 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -49,12 +49,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273ffbfdeb43e8-EWR", + "8170bd7a7f8543c4-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Not_Wrapped.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Not_Wrapped.json index c9ff432dec..b22fa1093c 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Not_Wrapped.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Not_Wrapped.json @@ -23,11 +23,12 @@ ], "status": 200, "response": [ - "1f8b08000000000000038aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23232d2512a4a2d2ecd2951b25232a83054aad5c1a1d01045a1018540a93616000000ffff030059a1258692000000" + "1f8b0800000000000003000000ffff", + "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23232d2512a4a2d2ecd2951b25232a83054aad5c1a1d01045a1018540a93616000000ffff030059a1258692000000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:29 GMT", + "Mon, 16 Oct 2023 13:45:04 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -48,12 +49,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273ffce8c641b4-EWR", + "8170bd7c2b10440b-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Wrapped.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Wrapped.json index 992b015295..6e1a99c4c8 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Wrapped.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Wrapped.json @@ -23,11 +23,12 @@ ], "status": 200, "response": [ - "1f8b08000000000000038aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23232d6512a4a2d2ecd2951b25232a830a00c182ad5eae0b0c704c51e43a5da5800000000ffff0300e84db78492000000" + "1f8b0800000000000003000000ffff", + "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b23232d1512a4a2d2ecd2951b25232a83054aad5c1a1d01845a10165c050a93616000000ffff03005cdd112c92000000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:29 GMT", + "Mon, 16 Oct 2023 13:45:04 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -35,7 +36,7 @@ "Connection", "close", "CF-Cache-Status", - "HIT", + "DYNAMIC", "Access-Control-Allow-Origin", "*", "Cache-Control", @@ -48,12 +49,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273ffe1fe4424c-EWR", + "8170bd7d38f54259-EWR", "Content-Encoding", "gzip" ], @@ -99,12 +102,12 @@ ], "status": 200, "response": [ - "1f8b0800000000000003000000ffff", - "a4cd4b0ac3201446e1bdfc63093eeabde2564a066a14524a5234814071ef1d771008e48c3f38cf2f5e6d5dea27c1430f1202f304af49a0e6b6bf3778c843a18b13e8ae42fb07e5bde8fcc3973ed1a8421482492ab3b3864c918e6d50911f597374b64c4489d1c71f000000ffff030088253f6b23010000" + "1f8b0800000000000003a4cecb0a83301484e1779975905ccc3921af525ce40a15d1a22d08d27777ad102874d603dfff38306ecbbcbe123c742721f0ccf0da0aac65fb4c6f78c85dfe37c257341cba38aa7de49f82a251952804935461670d992a1ddba022f7457374b666a2c46dc7dd8386130000ffff", + "0300de34dcb823010000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:29 GMT", + "Mon, 16 Oct 2023 13:45:05 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -112,7 +115,7 @@ "Connection", "close", "CF-Cache-Status", - "DYNAMIC", + "HIT", "Access-Control-Allow-Origin", "*", "Cache-Control", @@ -125,12 +128,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273fff09f14207-EWR", + "8170bd7ebe340f75-EWR", "Content-Encoding", "gzip" ], @@ -160,12 +165,12 @@ ], "status": 200, "response": [ - "1f8b0800000000000003000000ffff", - "74ca490a84301005d0bbfc7590caa465ae222ed45481d2748b0308e2dd7b2de85bbfe6c4b4febecb3c20c1150483312379325864dd3f1b12e8b0b8cc7374f52dd20b8e6a3df72a1244596220ae69d03eb0968e6265735949ee3caef60f0000ffff03007d74784592000000" + "1f8b080000000000000374ca490a84301005d0bbfc7590caa465ae222ed45481d2748b0308e2dd7b2de85bbfe6c4b4febecb3c20c1150483312379325864dd3f1b12e8b0b8cc7374f52dd20b8e6a3df72a1244596220ae69d03eb0968e6265735949ee3caef60f0000ffff", + "03007d74784592000000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:29 GMT", + "Mon, 16 Oct 2023 13:45:05 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -186,12 +191,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "802740005cd81996-EWR", + "8170bd7fcab6436f-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Bogus.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Bogus.json index 58cff75e0d..47fecdaf3a 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Bogus.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Bogus.json @@ -28,12 +28,12 @@ ], "status": 200, "response": [ - "1f8b08000000000000038aae56ca2acecf2b2a4856b25232d23350d251ca4c51b232d2512a4a2d2ecd2951b25232a83054aad5c1aece18459d018500a73526e8ce8905000000ffff", - "030092dedb6db8000000" + "1f8b0800000000000003000000ffff", + "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b232d2512a4a2d2ecd2951b25232a83054aad5c1aece844875c628ea0c28044ab5b100000000ffff0300eceed6f8b8000000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:28 GMT", + "Mon, 16 Oct 2023 13:45:03 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -54,12 +54,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273ff65e231977-EWR", + "8170bd74c9ad42a0-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Not_Wrapped.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Not_Wrapped.json index 047ea6dbd2..8e5e44dc66 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Not_Wrapped.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Not_Wrapped.json @@ -24,11 +24,11 @@ "status": 200, "response": [ "1f8b0800000000000003000000ffff", - "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b232d3512a4a2d2ecd2951b25232a83054aad5c1aece14459d018540a93616000000ffff03000d1cac0690000000" + "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b232d5512a4a2d2ecd2951b25232a830a01028d5ea60b7c60cc51a43a5da5800000000ffff03003935a92490000000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:28 GMT", + "Mon, 16 Oct 2023 13:45:03 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -49,12 +49,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273ff75a70c348-EWR", + "8170bd7618b81996-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Wrapped.json b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Wrapped.json index 5899e2cf69..4465b0d82e 100644 --- a/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Wrapped.json +++ b/platforms/evm/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Wrapped.json @@ -23,12 +23,12 @@ ], "status": 200, "response": [ - "1f8b08000000000000038aae56ca2acecf2b2a4856b25232d23350d251ca4c51b232d7512a4a2d2ecd2951b25232a830a00c182ad5ea60b7c602c51a43a5da5800000000ffff", - "030003e0381590000000" + "1f8b0800000000000003000000ffff", + "8aae56ca2acecf2b2a4856b25232d23350d251ca4c51b2b2d0512a4a2d2ecd2951b25232a83054aad5c1aece1c459d0165c050a93616000000ffff0300b9027d6890000000" ], "rawHeaders": [ "Date", - "Wed, 06 Sep 2023 14:02:28 GMT", + "Mon, 16 Oct 2023 13:45:03 GMT", "Content-Type", "application/json", "Transfer-Encoding", @@ -49,12 +49,14 @@ "86400", "x-multirpc-response-type", "1", + "X-Robots-Tag", + "noindex, nofollow", "Vary", "Accept-Encoding", "Server", "cloudflare", "CF-RAY", - "80273ff869e24207-EWR", + "8170bd772bbb0f64-EWR", "Content-Encoding", "gzip" ], diff --git a/platforms/evm/__tests__/unit/platform.test.ts b/platforms/evm/__tests__/unit/platform.test.ts index 67cd3876b4..d96dbe4570 100644 --- a/platforms/evm/__tests__/unit/platform.test.ts +++ b/platforms/evm/__tests__/unit/platform.test.ts @@ -57,11 +57,9 @@ describe('EVM Platform Tests', () => { describe('Get Chain', () => { test('No conf', () => { - // no issues just grabbing the chain const p = EvmPlatform.setConfig(network, {}); expect(p.conf).toEqual({}); - const c = p.getChain(EVM_CHAINS[0]); - expect(c).toBeTruthy(); + expect(() => p.getChain(EVM_CHAINS[0])).toThrow(); }); test('With conf', () => { @@ -80,17 +78,16 @@ describe('EVM Platform Tests', () => { // expect getRpc to throw an error since we havent provided // the conf to figure out how to connect expect(() => p.getRpc(EVM_CHAINS[0])).toThrow(); - expect(() => p.getChain(EVM_CHAINS[0]).getRpc()).toThrow(); }); test('With conf', () => { const p = EvmPlatform.setConfig(network, { - [EVM_CHAINS[0]]: { - rpc: 'http://localhost:8545', - }, + [EVM_CHAINS[0]]: configs[EVM_CHAINS[0]], }); + const C = p.getChain(EVM_CHAINS[0]); + console.log(C); expect(() => p.getRpc(EVM_CHAINS[0])).not.toThrow(); - expect(() => p.getChain(EVM_CHAINS[0]).getRpc()).not.toThrow(); + expect(() => C.getRpc()).not.toThrow(); }); }); }); diff --git a/platforms/evm/src/platform.ts b/platforms/evm/src/platform.ts index 3689ad8199..741349d911 100644 --- a/platforms/evm/src/platform.ts +++ b/platforms/evm/src/platform.ts @@ -59,8 +59,8 @@ export module EvmPlatform { } export function getRpc(chain: ChainName): ethers.Provider { - const rpcAddress = conf[chain]!.rpc; - return ethers.getDefaultProvider(rpcAddress); + if (chain in conf) return ethers.getDefaultProvider(conf[chain]!.rpc); + throw new Error('No configuration available for chain: ' + chain); } export function getChain(chain: ChainName): EvmChain { diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge.json index b1b593f121..ca06e8e45b 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge.json @@ -10,13 +10,13 @@ }, "status": 200, "response": [ - "1f8b0800000000000403ab56ca2acecf2b2a4856b25232d23350d2512a4a2d2ecd2901724d532bb34b4c428bddca2c022cfcbc5242825c0b220dcbaa0abd0ba3bccb520abc4b930d4dcc53ca8dfc2c5380fa3253807a4c2cd20cd3920c53748d138d8d754d0c922c752d938d8c754dd3122d920c0d4c4d4d2ccd946ab900d468280376000000" + "1f8b0800000000000403ab56ca2acecf2b2a4856b25232d23350d2512a4a2d2ecd2901724d532bb34b4c428bddca2c022cfcbc5242825c0b220dcbaa0abd0ba3bccb520abc4b930d4dcc53ca8dfc2c5380fa3253807a92932c8c538dd352758d139352754d0c0d927413cdcc5280dc3463d394b4a4b424d354a55a2e00192de94276000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:14:14 GMT", + "Mon, 16 Oct 2023 14:01:06 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -24,15 +24,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "38", + "39", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "98", + "99", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-334", + "-360", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Native.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Native.json index 8debe01602..f1cfc4106d 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Native.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Native.json @@ -15,13 +15,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004030dc94b0e40301000d0bd63ccba2363fa779bb6464204695989bbf3b6ef81b51d7b3d0b8cc03d81822aedde2e189974e4400a96e93fc7368996803c584643d16348da61c8c2c694d947cef0761fab45ee114f000000" + "1f8b08000000000004030dc9310e80200c00c0dd6774a6a61410e4375520d11835a093f1ef7aeb3db0b663afe70c11b827505073bbb70b22931939908225fde74a2993268794d9a2f5ec5106cac8124482d66c9285b7fb00c34560224f000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:21 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -33,11 +33,11 @@ "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "84", + "78", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-328", + "-374", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -84,13 +84,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004031d8dc1ae82301444f77ec65d0be162eba52ecd8bb2706362d4b82ba53caa0d252d2889e1dfadee26993967de700faef3bd820de469064bf03a8c7680cd1b94eb063dfda2eccd59fb605c177798224b7316b7c1ba58e7c869c505d1bc84a7b4a3fec29575ead1cad04660b7c3f2e6c743ddecb793a77b5f4c411cfbc3dfb37cbd4e97d015c3ed8a7baf8fed355aad0cc3595a536fbf8e529bff36bea02832e20cb339de983a6a99aaaa35352a110229615cb3a4e02b9928260973c9909a35cc8b0fc38f950ae3000000" + "1f8b08000000000004031d8dc16e83301044effd8c3d07641b1b9cdcdaaaa82a1587564aa2dc1cd62e2e164e31a44411ff5ed3db4833f3de1dbe83ef874b033b6029810d0c3a4c6e84dd1d1adf8f7afe8fea62f77a08d6f77147539aa7b488dbe07cac19e3841329e8b281ab72935ecf67e79bae55a18d07595627fc1c8feae5d164a78a5e45fdfb5c87ed4176b7c3fc618fe5fb54bd953fdd5cdf22d5a930ee95b3f8b4325eb5fd6a570bc96956b08c2f516331623931194673221031e18c6e13853c4f243f1b591881c250581efe000659a1b6e3000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:21 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -98,15 +98,15 @@ "x-ratelimit-method-limit", "25", "x-ratelimit-method-remaining", - "24", + "22", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "83", + "77", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-330", + "-377", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Token.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Token.json index e8a8c32268..6b0fefdd43 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Token.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_TokenBridge_Transactions_Token_Transfer_Transactions_Transfer_Token.json @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8f316f83301484f7fe8c3743848d6d02528710aab4a86a53293443d5c13606d202064c086ac47faf9bb16f3ae9dd7dbabbc297d1edd0498800af3c706050e65c8f105d41ea7654f34df2eef4ae0673d2adf5a115222b4cacd7d4dabe31a2814fc320581c98787d567fe19c8f1ca20f88cbcdbfdbfe3c62deef634a32bcbf54488bfc350daa0235f3fc746fa9821bc5087c3aa06625cf2317b54516bc36ca819a379d1e460311423e216bcf017d69d5607b5df4d024872c659be3fe65faa6e1b47b13c9b44b9b5e2487bc3c969b5e3ec7db3213b79dedf8d0695941e433b4d8eea7dc424818e68851ea7a8ce52ea152b9c263d4556b3fc48592fedac3b0dcfd02b35dffc138010000" + "1f8b08000000000004035d8f4b6f83301084effd197b06848d794a3de451a545554ba5d01caa1e6c63082d60c0bcd488ff1e27c7ee69a49d9dd9ef023f4a367dcb21026cd960402fd4580d105d80cb6610cb5dd2b6fc14bd2a65a37dc8429e857ced5595d46b8c894decc045ab0113ad46713bcee84021fa826db1f937bbbf674cbb64eb921427f3194996bdc7fe3947f5b2bc3cea544695f0087c1b2016c1c781b24a47e6b452c2808ad6adec070511420e21816d809c1bd1ebbf66d9d7fb631a7b9b53f236fdbae174f860fbe910d71ddb1fb3e2546c3afebadd1529bb7336c3532bf91922c7439aa5a55cd738eeaa31caecc619e4cce5616822e63826f1336406d8b74dcc794010ceb39038b03e5c01b1d3212443010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -30,15 +30,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "25", + "21", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "82", + "76", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-330", + "-378", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -87,13 +87,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8f316f83301484f7fe8c3743141b8301a903842a2daa5a2a8566a83ad8c690b4800103418df8ef7533f64d27bdbb4f7757f8d2aa1d3a0121e0cd162c18a49eea11c22b08d58e72b949d69ddfe5a0cfaa353eb441648389f1ea5a9937462e75dc80d2d58299d593fc0b176c64107e405c45ff6ef7f388599fc52ec971763921c58bd7949e4ad42ccbd3bda172a6a547e0d302b948318d8cd70659b25a4b0b6ad6746a183584083984f85b0bd4a59583e9755143931cf2d48b8ed9cbfced06f3fe8d27f33e6d7a9e1c8aea5845bd788e7755ce6f3bdbf1a153e204a1e3a1d5743f1706e24ae12054201bfbdcb749e063db9784d99e24a44482522f7061bdfb0551f7809e38010000" + "1f8b08000000000004035d8f4d6f83300c86effb193e032221a4056987b64cddd0b431a9ac87698724848f2d102094a255fdefcb7a9c4f96fcfab19f0b7c19dd8dbd8018b0e78303a3342735417c01a1bb492eb796f5cdbb1c4da33b9b431ea21e5ad9ac51da8e31263ef1d721ba3a303375927fcb059b18c41fb0ad36ff6af7f388d9906d4392e3ec5c23cd8bd7745597a85d96a77b4be5cc484ae0d301b948719a185716593265a4038ab5bd1e2703314201216bdf017deee468ff3aebb14d0e794a37c7ec65fe0ea379ffc693799fb6034f0e4575ac368378deeeaa9cdf3cbbe9a1d7a28638a0c8baf44cd8334178b51a4d61796245022c30767dc1a94b70e4bb9cac991b215aa2b2608804215cef7e01516a5a9643010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:06 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -101,15 +101,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "24", + "20", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "81", + "75", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-330", + "-380", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -158,13 +158,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8f4f4f834014c4ef7e8c7706d25d768192788062aac4684d5a7b301edec2f2478105965262d3efeedaa3ef34c99bf965e6025f5a75639f4108d4598105a3d4a76682f00299ea26b9dc24f6f5bb1c75ad3ae3230e610e65c6ab1b65de9470dfe56bdfbf5a306373927fe11c2784f003e232fa779b9f478ac32ee6ec4077e78a2891bfa67e559076599eee0d55a0961e834f0be422b3d384a231c8021b2d2d68b0edd53869080971190b5616a8732747d3ebacc636d91f522f3aee5ee66fbe9eb76f2299b7693b88649f97c7321ab2e778531ec46d67373df42aab20743d7235ddebdc4070455d9abbd25e17996f33ced14656a01d9020288487827b14ae77bf4db7374438010000" + "1f8b08000000000004035d8f4d4f83401086effe8c3943c37ef19578688ba936463129f6603cec2e0bad2e2c65292536fc77d71e9dd324f3ce33f35ce1cb9ab6ef24a480170178d02b7bd603a45790a61dd4746b79777c57bd3d9ad6e5d002850b14b9acd5c68d31a6010d6286660f46aecfea6fb9e40387f40356f5f25fad7f1e313fe52b460b9c5f0ec888f2751b1d2ad44cd3d3bda30a6e5548e1d3033529791eb8d00e59716d95079a379de9070b294284d238f0c05c5ad5bbbf2ea66fb25db10d97fbfc65fc66c9b87913d9b8d9362791edca7a5f2f4ff279b5ae0b71f36c8787cec803a42444cea5e3d29d216c761ac7d2f154190a1533e11316519f9218f949c4623fac484031269c2401cc77bf805cee0143010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:06 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -172,15 +172,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "23", + "19", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "80", + "74", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-332", + "-379", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -227,13 +227,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004031d8db16e83301445f77ec69b03e21953db8ca84a18b244aad2289bb19d606a6164438214f1ef75ba5de9de73ee0b86e8c73029a881e405ec2098b8b819ea17283fce66fd8f72b26713a2f563da618e3427346da3f3a92658b1b2128c6d3b7848b79837dc39af7e7b19fb04ecf7d85ec372d4b743b306364c7c8de2341dbf1eedf3f9fd13473e5f2f7808e6d45f92d5c9389fa5b3ba793b5a63ef7d7a41c10b56512cb6746375d272c199229a67aaa434a3c874263eb1cb3a658ca04c2121256c1f7f46f7a199e3000000" + "1f8b08000000000004031d8dc16e83301044effd8c3d07641b63ecdcdaaa280a1187564aa2dc1cd814170b271852a2887fafe96da499f7e6093fde75fdb58235b098c00a7af4a31d60fd84ca75034eff515fcd1e7b6f5c177634a622a659d87aeb42cd18279cc894ce2bb86b3be2029fadabda46fb2600322f4ef5d770d41faf97e454d07b5afebe975e1d64fb384c9fe698efc6629bdfdaa97c04abd57ed86b6beab7c5b141f3dd2c2f44d02463099fc38da9835628ced439c1a856a28a384a8c542a7984995622d35c117e81f9e50ff84afe3fe3000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:21 GMT", + "Mon, 16 Oct 2023 14:01:06 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -241,15 +241,15 @@ "x-ratelimit-method-limit", "25", "x-ratelimit-method-remaining", - "23", + "21", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "79", + "73", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-331", + "-379", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Create_Attestation.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Create_Attestation.json index 6b303dac4f..8c125edac9 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Create_Attestation.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Create_Attestation.json @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004031d8fcb6e83301045f7fd8c5903c2c636819d2b25e9268d5295aa6ad585019b470946d840aa887fafc36674a4b97374e70eadd1fd381490020e42f0609466ea2ca47728746fe56d4331341f72348dee5d0e05880498b8ace9b45b634463ca9288ad1ecca29be4e3b8145640fa0d7ce19c9f797be69903ceabc3fe991f2f1b3f86b3e4c24846e0c7037993c56445de3985129d911e74e23ae8d11a485148e304871ee8a597a3ebb1e8f18abff411ff6625990f9ff5dcd64994652f3461e2ef4d55177caadad7d3bbadb7bf7abb1f7451431a31b4baae4de924798c15dac53b5f94acf48950a19f2315f98aa2245798122628ac4fff6a43ad7728010000" + "1f8b08000000000004031d8f4b6f83301084effd197b06641c631e37574ad20b951295aa6ad4c3020e8f128cb0815411ffbd0e97d5483b3bfbcd035aadfa71282001ea117060947aea0c240f28546fe47d9338349f72d48deaadcff77ceef9a1f5ea4ed935a58c3012b1787560c66e92cfe3120d427201b10821d2569c45668510d561ff2a8ea74d3f874dc9514bcee0c7017997c56430ef6cc4153b2d1de8f036a8d168487c128431250ea8a597a3e558d478a3dfea487fb392cd87af7a6eeb7897656f41ccf1ef7cad4e34addaf7f4c3d45bafdeec0755d490ecb86fd9072cec1bca568bdd94360f59c031cc994bf2287719f2d2c53c0e5c0ccb92518211e312d6977f7ebbf77133010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 15:53:30 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -30,15 +30,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "39", + "22", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "98", + "81", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-407", + "-373", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -85,13 +85,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004031d8d4b8f82301845f7fe8c6f2d84963edd0de32bb39ab8a8eb0245aa0d6d28a889e1bf5bdddde4de73ee0baed10f63686003382f600da389b39b60f382c60f93797ea30e5699315a3fa41dca11c93149dbe87caa31a29c3259b2650d77ed66f3816be79b5baf639f80dfc31f55f74745793c8710480855aff951ec959cd9ff4fb71b0eea5a5db6069dcec9ea749c9476b6ad3e8ea3b1973ebd20290a497949967463dba49545cd5083bb8c225167a4355d26cb426698d7920a2c3ac3282cab37908a5da1e3000000" + "1f8b08000000000004031d8dcb6ec2301444f7fd8cbb26917d9d27bb0624906817b088daa5ed5c6a8389511c0a2acabfe37437d2cc39f38453f0fd70d5b0044c192c60a07073232c9fa07d3fd2e33fcaab6d6908d6f771c7535ea4bc8cdbe07cac113396b12a67d3027ea5bbd10c2be7f5d9c86022b052fbf5deb4e365953f4ec7f7efbb6e10dbddfa5e71750e7fe1ebe393d470d874a6e9a2d5c930b6d2d9ae991d5bb23f667e610517250a31c51bdb45ed51504da865220aac920c6b95c8521549ae19d58c899c630dd3db0b18159d3ce3000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 15:53:30 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -103,11 +103,11 @@ "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "97", + "80", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-410", + "-372", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Submit_Attestation.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Submit_Attestation.json index 2e973b52b2..5929011cbe 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Submit_Attestation.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Create_Token_Attestation_Transactions_Submit_Attestation.json @@ -14,13 +14,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004031d8dcb6ec2301444f7fd8cbb26916dfc88d935a50575557561d68e7321062bb6e2845642f9f79aee469a39671e70cd719c92831db09ac00626cc4b9861f70017c7197fffa34ddee0947d1ccb8ed694d78c976d0eb1d48c0a25a4deca7503771b167cc25d88ee36d83c14e0edf029ccfda7152a9f524a3ca576b0ead87c18bdc8afd7f3fb7830d7f6b247fa7d2ad660f36c6cf07dfb741cd15f86f2427543b4505bbe961bdf17ada0da910655c5a462156f04afacec586595ee143ad2911e617df903e7629c17e3000000" + "1f8b08000000000004031d8dcb6ec2301444f7fd8cbb26911f491cb3232051a9ed822ea276e9c76d6d30318a434145f9f73add8d3473ce3ce098e2305e0cac819504563062ba8609d60f307198f0fe1fd5c5f738261f87bca3256d4a2af23685986bc62a5291b626f30a7e54b8e202eb10cdc9a9e432b0d587ddc1f5d3795bdf8f5f9bcf9be918eb5f76b796ea53fa4d1faf6fa8c7f7bd759dcdd6a0d2d4abe06db7389ed17fbbe58534940bc6f99c6fbccd5a8b0cdb46c8a2129c179524a6d05ad785b435c7560aa625c2fcf40769775965e3000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 15:53:29 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -32,11 +32,11 @@ "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "96", + "79", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-410", + "-372", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getOriginalAsset_Real_Wrapped.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getOriginalAsset_Real_Wrapped.json index e967adaa30..23b01b6e00 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getOriginalAsset_Real_Wrapped.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getOriginalAsset_Real_Wrapped.json @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8f4f4f834014c4ef7e8c7706c22ebba5907880d6541ba33529f6603cec3f28bab0c0524a6cfadd5d7bf49d267933bfcc5ce0cb9a76e804a48083103c18943de911d20b08d38e6abe49d6d5ef6ab0b5699d0f0588049838afd5c6bd31a271449338be7a30317d527f61c94606e907e455f6ef563f8f98f5bb9c9202efce4764b87cddc6c71235f3fc74efa89c59b520f0e9819a95388d8c6b872c99b6ca03cd9ace0ca38514a1889065e88139b76a70bdce6668d6fb62bbc80ebb97e99b26d3e68dafa7cdb6e9f97a2fab4395f5e2395f5505bfed6cc787ce8823a4d1025d5df75a3a884c0409cb25f751c4a44f4a4c7d2e97d44f62a9288e14472a82ebdd2f2175bfb938010000" + "1f8b08000000000004035d8fc16e83300c86ef7b0c9fa122211040daa12d5337346d9dd4ae8769072704e8060408a56855df7d598ff3c9927f7ff677812fa3dba19390005d78e0c0a0cca91e21b980d4eda8e65b8bddf15d0de6a85b9b230b122e08b759536b3ba69479cc8b587c7560c2faa4fe96731c11920f5895cb7fb5fe79a4d86f5701dbd3edb9225ae4af19af0ad2ccf3d3bda50a342a64f0e9809a953c8d286a8b2cb036ca811a9b4e0fa38184109fb1c873409f5b35d8bfce7a68d2dd3e0b9787edcbf41dc4d3e64da4d3266b7a91eef2f2502e7bf9bc5a977b71f36cc7874ecb0a123f24d6a54369cff8c1d56a1c73cb0b78815121d1953c8c5c16c7be2b3847576194c74c502b2de17af70bd629c58e43010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -30,15 +30,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "37", + "34", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "96", + "93", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-317", + "-364", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -87,13 +87,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8fcd6e83301084ef7d8c3d03c2c6fc4a3d24a14a1b556d2a25cda1eac1360ba4050c3621a851debd6e8eddd3483bf369e6025f4675ba979001f57c7040a3393523641790aa1b71be49de1fdf519ba3eaac8f7884799459af69947d5312c64198c6d1d581893727fc0b177ce4907dc0b25afcbbd5cf23e5c37619b23ddd9e6ba244f1ba89eb92b4f3fc746fa9821b8c187c3a8033cad3c8456391256f0c3ad0f0b6577a349011123096f80ea87387daf63a2bdde6bbfd265a1cb62fd377984eeb37914feb4d3b887c5754876a31c8e7e5aada8bdbce6e7ce895ac210b2272b5dd8f85859482d00203e906041397218fdd24a5c42d92140396c8c88f095cef7e0130e650e838010000" + "1f8b08000000000004035d8f4d4f84301086effe8c3903a1a5b040e20116b34a8c62b2b807e3a185f2a14081f21537fc77eb1e9dd34ce69de79df70a5f5274639f810fd830418391cbb999c0bf4226ba896fb796f6f53b1f652d3aa54306720c74505ad908b5c69898c47489b76bb0d066e67fc7399d28f81f1096c1bf3afe3c623a24a14d529cac15122c7f8d0f5581da6d7bba5754462577087c6ac0379ecd13658d4216b4915c8386b6bd1827093e421621aea981583b3eaabf5631b6d1398d9de092bc2cdfb6b79cde58b49ce27660d1392f2f653064cfe1b14cd92d67373df422abc0b71ca4b2f434533696bdab1875ae78a4a0cc71bd5cc7d824ba9a3cddb56ca4f30259c8f3b0eb9202f6bb5faf59a25343010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:19 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -101,15 +101,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "36", + "33", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "95", + "92", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-318", + "-364", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getWrappedAsset_Real_Wrapped.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getWrappedAsset_Real_Wrapped.json index 2b0d75330a..5007b30d6d 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getWrappedAsset_Real_Wrapped.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_getWrappedAsset_Real_Wrapped.json @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8f4b4f84301485f7fe8cbb0642a1d081c4050c669418c5647016c6450be5a14081f28a13febb7596ded549ee395fceb9c29714ddd867e0836598a0c1c8e5dc4ce05f2113ddc4b79ba47dfdce47598b4ef99081b06161e5958d506f0b39c4763c42760d16daccfc2f9cd38982ff016119fcbbe3cfa345872474706a256b8504cb5f635215a8ddb6a77b4565547217c3a7067ce3d93c51d62864411bc9356868db8b7192e02364637c3035106bc747d56b15631b9dd3d80d2ec9cbf2ed78cbe98d45cb296e07169df3f2520643f61c1ecb94dd7676d3432fb20a7cdb45bbea5ee70a62a3a2305d6ceb8c7a8e8e73c6748a48a1bb1c1d6c8b13ee3a04f6bb5fee14a92c38010000" + "1f8b08000000000004035d8f4d6f83300c86effb193e4345207c146907da4eddd0b47552590fd30e0e24942d104a528a56f1df97f5389f2cf9f5633f57f8d2aa1bfa1252f0171e3830707d9606d22b94aa337cbab5d837ef7cd08dea6c8e2c48b420b1cd6aa9ecd8f7a947bd842e6707469467feb75ca141483f605567ff6afdf3e8e369b70a69e1ef2e47a258f59ac74741da697abab754869a47143e1de0132fcf0699b4488152730724b6bd1a8c86949080d2c473405d3a3ed8bf2e6a6837fb228fb2c3ee65fc0e97e3f68d6dc66dde9ed8665fd5873a3b95cfab755db09b67671e7a551e210d22625d7a2ced99209cad4653595e1c7b68b5982b1847978622761311309710214848038f6002f3dd2f8eb8b48c43010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:06 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -30,15 +30,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "28", + "27", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "87", + "86", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-326", + "-370", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -87,13 +87,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8fc16e83301044effd8c3d43143b366e907a08a14a1b556d2a85e650f560c342d21a0c98006ac4bfc7cdb17b1a69679e662ef06d4dd5d62984406773f0a0457bd61d8417484dd5e17893b23e7d606b4fa6723e32236c4699f35a6ddc9b122e167c29c4e4412ff519ffc299ec24849f1015ab7fb7fe7da2b2d9459c2574371c8951d9db561c73528ee3f383a32a693160f0e5018e989e3ba9b443e6525bf440cbb2366d67212464c1d8fddc033354d8ba5e8369cb789f6c83d561f7dafff065bf795771bfd9968d8af7597128564dfa12ad8b44dd7656dd636dd223848b804caefb297310b14421a8e27eae58e033c4cc9728b82f05cd682052c29982e9ee0a857b494538010000" + "1f8b08000000000004035d8fcd6e83301084ef7d8c3d03b2c1fc4a3d8450a58daa36954273a87a581b076801134c086a94778f9363f734d2ceceec77861fadbaa1179080eb10b06090fad88c909c41a86e94f35d625f7fca41d7aa333eead0c0a1a1f1ea4699b5eb32c248c4e28b05133647793b2e704448be202d17ff66f9f7ece26193fa2c7737a78a2a5ebcafc36a4fdb797e7934a91cb50c187c5b2067298e23f2c644eeb1d1d28206db5e0da38684528fb18858a04e9d1ccc5f2735b4d9365f078bdde66dfaf5e369f5c1b369b56e0f3cdb16e5ae5c1cc46bba2c737ee7ecc6a75e890a122fa086a547616a3cff6230eae2c6197122220fed3090c2663e8f6d1421b1a52b222e624e028a7079b802879f02e943010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -101,15 +101,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "27", + "24", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "86", + "83", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-327", + "-373", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -158,13 +158,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8f4f4f834014c4ef7e8c778686b75dfe261eda62aac42826c51e8c87dd65a128b0c0022536fdeeae3dfa4e93bc995f662ef0a5553b740222202b072c18a49eea11a20b08d58e72b949d655ef72d0956a8d0f574857841aafae95791374fdb51bfafed58299d593fc0be76c64107dc0b6dcfcbbddcf23617dba756946d2f30915cf5f13ff5460b32c4ff786ca99961e854f0be422c534325e1b64c16a2d2da859d3a961d41021ae290d1c0bd4b99583e9755643131fb2c4db1cd397f9db0de7fd1b8fe77dd2f43c3ee4e5b1dcf4e279bb2b337edbd98e0f9d122788d61e5e4df72a3710493c870b52d8014a6653c1b91d3854d8143d217c1f118310ae77bfb8ad73e338010000" + "1f8b08000000000004035d8f4d4f83401086effe8c3943c32c0ba5241efa61aac4684d8a3d180fbbcb94a2c0024b81d8f4bfbbf6e89c2699779e99e7025f46d75da3200636f3c0818eccb9ec21be80d2754fd3ad154df14e9d29746d7338c37086739b35a5b663c6b8c7bd882fae0e0ca23cd3df72267a01f107acf2e5bf5aff3c32d1ee56014fd96e3ca196d96b323f1db19aa6a77b4b95c250c8e1d3019a489d7b214b8b3c8ad29003a5a81addf50662449ff3c873408f3575f6af5177d5669f26e1f2b07b19be83c5b07d939b619b54addcecb3fc902f5bf5bc5ae7a9bc79d6fd43a3d509623f44ebd20865cff8c1d56a1499e589003385482e638bd0e52c92ae9091ef46142a8c28202911ae77bfc75c2b3e43010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:21 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -172,15 +172,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "26", + "23", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "85", + "82", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-327", + "-372", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Bogus.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Bogus.json index c219808691..d7c8f6578a 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Bogus.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Bogus.json @@ -7,7 +7,7 @@ "method": "getAccountInfo", "jsonrpc": "2.0", "params": [ - "8d2vQhtPUzpo9V8QUJhmZ8SDaAebk18GZQQ8qQ8wq8gQ", + "3Ybta6RqJ8rfVo6LBikbgermhGZUNoj52X6ZLUeQYHTM", { "encoding": "base64", "commitment": "confirmed" @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004031dca4b0ac3201485e1799771c751a2516f75219dfb2a584483c65008d97ba5b3f373be0b3ebd96b67b30c0e90a0bb4d8473ec05ce06b39e2f73fed9e5eb1f554cb748c3241b998b6e73a6fce246e5223de0b9c368f08a68c9c67a530393ae52c578144ad9108a7dec4ad9c11bbb967b43e04890eeec70fe18f474f8a000000" + "1f8b08000000000004031dca410ac3201085e17d8f31eb282a63b41ea47b3553b088068da11072f74a77efe77d177c7a2d6d8fe04071010b34ea231fe02e88b51cf4fd4fbfa717b59e6a994e72b97269a6edb9ce5b2914282c3eef054e9f07812b23e759699bdc1aab7dd096c5d5104383c4bcde247ba30a18b5a4401aeec70f2c25ecb68a000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:19 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -30,15 +30,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "35", + "32", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "94", + "91", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-319", + "-368", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Not_Wrapped.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Not_Wrapped.json index bca0581aa7..0c88a77575 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Not_Wrapped.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Not_Wrapped.json @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004031dca4b0ac3201485e1799771c7517c5c23ba90cea3b9058b68d0580a217baf74767ece77c1bbd7d28e081e1417b040a33ef209fe8258cb49dfffdc8ef4a4d6532dd3492e912b9cb6e73a6f258dd5c6597b2ff0d9f220f065e43c2bed933b637721826281e28ba196c48240c5568bce0921519b15eec70f1d9b48bf8a000000" + "1f8b08000000000004031dca4b0ac3201485e1799771c751546ee263219dabbd018b68d0580a217baf74767ece77c1bbd7d28e080e1417b040a33ef209ee8258cb49dffff4477a52eba996e924971b977ada9eebbc954281c2a0bd17f8f83c085c1939cf4aafc983b27a2323590c16196a1159f076678a02aee8f5be1a0bf7e307b6a9534b8a000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -30,15 +30,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "34", + "31", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "93", + "90", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-321", + "-367", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Wrapped.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Wrapped.json index 252e475ac8..47ad52ec0e 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Wrapped.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_hasWrappedAsset_Real_Wrapped.json @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8fcd6e83301084ef7d8c3d03c2c6e080d4437eaab4a86a5329690e550fb6d9002d60c04050a3bc7bdd1cbba79176e6d3cc05be8c6efa564102d4f3c1811ecd580d905c40e966c0f926455bbe636f4add581ff108f328b35e5369fba624e44118737e756012d5887fe14c0c02920f58e5cb7fb7fe79a4a2dbad4276a0bb7341b4cc5e535e9c483dcf4ff7962a85c188c1a70338a31a07212b8b3c89caa00395a85bdd0f06124202c616be03fadc606f7b9d755f6ff687345a1e772fd377184fdb37b999b669ddc9cd3ecb8ff9b253cfab757e90b79dcdf0d06a55401244e46abb9799852c48902127991bf213ba4c05e84a89b14b255728a44f298fe17af70b16bf48cf38010000" + "1f8b08000000000004035d8fc16e83300c86ef7b0c9f0111085090768076ea564d5b2795f530ed900443d902a109a56855df7d598ff3c9927f7ff677812fa37a3d08c820f07c7040a339c911b20b08d58f38df5a36b4efa84dab7a9b231e893d92d8ac91ca8e8380fad45fd0f4eac0c4e409ff962b3632c83ea068f27fb5fc790cd8715b44b40cb6e70351bc7add24879a74f3fc746fa99c198c297c3a80338ad3c8b8b4c89a49830e48d60d4a8f063242424a17be03eadca3b67f9d95ee56bb7213e7fbedcbf41da5d3fa8dafa6f5a63bf2d5ae6af64d7e14cfc5b229f9cdb31f1f06250e908531b12e0313f64c185dad465b595e8d2c09314297077ee4521e2edcb4aab8cb9171ac1351c7490ad7bb5fe2abaa7d43010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -30,15 +30,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "33", + "30", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "92", + "89", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-323", + "-369", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -87,13 +87,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8f4b4f83401485f7fe8cbb86a6f3e295b88062aac4684d5abb302e668629540706184a894dffbb6397ded549ee395fceb9c09735edd04948002f96e0c1a0ec498f905c409a7654f34df2eef8ae067b34adf3a105a20b4c9dd76ae3de18b190b0380caf1e4c5c9fd45fb8e42387e403b22afd77ab9f47ccfb4dc6e80e6fce3532a27c2dc2fa809a797eba7754c1ad0a287c7aa066254f2317da210f5c5be581e64d6786d1428210a1345a7a60cead1a5cafb3199a7cbb2b8274bf7999be593caddf443ead8ba617f9b6acf655dacbe76c55edc46d673b3e7446d69090005d5df763e9204446886019f99844cca788635f281efb8449be5461a06284e07af70b01c99fd438010000" + "1f8b08000000000004035d8f4d4fc3300c86effc0c9fdb2969d34f89c3baa2c184a0482b3b200e49937483b4e992aeab98f6df093be29325bf7eece7025f56f7666820876081c00323ec498d905fa0d1fd28e65b4b87c3bb30f6a07b97c30b1c2f70e2b25669370e0282084a4976f560a2ea24fe96391d29e41f50b4cb7fb5fa790ce8b12a225207d5798f35e3af9b642f7137cf4ff78ecaa81531814f0fc42c9ad3489972484995151e28da0dda8c16728c434252e4813ef7c2b8bfceda74e5b6dec4cb5df5327d47d9b47e63e5b4de7447566e79bb6b97c7e6b958b535bb79f6e3c3a09b3de4618c9dcb401b77268cae4ee3c01d2f0cd384a401f3432e904f12cefc9465d2975290882381248ee17af70b5b76912643010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -101,15 +101,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "32", + "29", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "91", + "88", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-324", + "-368", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", @@ -158,13 +158,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d90c16e83301044effd8c3d038ac16082d4032455daa86a5329690e550fb63184d660623b0435e2dfe3e4d83d8db4b34f337b811fa33add73c8200c66e08116e6242d6417e0aab362bc4bda379f429b4675ce87028483103baf91caad431493289e13327930507912b7e3925a0ad9171475fe6f167fcf213d6e8a18efc2cdf980142bdfd7e450a1761c5f1e1d955123120cdf1e8851f093a54c3a6445a5111e48daf64a5b03194211c6e9cc0375ee8476b9ce4ab7cbed6e9de4fbcddbf01bcf87d5075b0eab757b64cb6d59efebfcc85f8b45bd63f79e9d7dea153f4016256872d99bf2f60422184324f11d3af2314d133f6582f829a6614911e6bc62303d5c01bd5c7f2438010000" + "1f8b08000000000004035d8f4d4f83401086effe8c390361613f288987b6982a315a93d61e8c87dd65f95060e92ea5c4a6ffddb547e734c9bcf3cc3c17f8b2ba37838414a220040f8cb2a77684f40252f7a39a6f2d1f9a77656ca37b974301a201622e6b5bedc65184431c267871f560e2ed49fd2d177ce4907ec0aa5afeabf5cf63c48fdb15c1fb687bae9116c56bceea1275f3fc74efa8825b45317c7aa066254f2317ad4396bcb5ca8396778336a38514a118e324f4409f7b65dc5f676dba6cb7cfe9f2b07d99bec962dabc896cdae4dd5164bba23a54cba37c5eadabbdb879f6e3c3a0650d694c917319b874676272751a4de17812b145c228f1192a221fc782f81c09e40b4c438213c2302de17af70b055130ea43010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:17:20 GMT", + "Mon, 16 Oct 2023 14:01:07 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -172,15 +172,15 @@ "x-ratelimit-method-limit", "40", "x-ratelimit-method-remaining", - "31", + "28", "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "90", + "87", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-323", + "-370", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Bogus.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Bogus.json index 23d10c8e80..8d6fdf2df1 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Bogus.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Bogus.json @@ -7,7 +7,7 @@ "method": "getAccountInfo", "jsonrpc": "2.0", "params": [ - "FfFqCnyvxoQrMXWWB4o7FrVUXy8MrhWsJDddHhvSMyhK", + "GVZhGCZkKJLnMVSRmhwMo6kNaaoThqjuNn76yXQLHq7w", { "encoding": "base64", "commitment": "confirmed" @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004031dca4d0ac3201404e07d8ff1d651f4a931f520dd1b7fc0221a349642c8dd2bdd0c33cc77c1bbd7d20e0706903258a0853ef209e60257cb19beff6a8ff40aada75aa6e3944b8a72da9eebbc912b2d9492ea5ee063f30860cac879aee427f72ef2c8bc2202774de4ca9058b93f676c5e7b81628b2bdc8f1f56efdd7e8a000000" + "1f8b08000000000004031dca4b0ac3201485e1799771c751ae7a31e2423ab73ec0221a349642c8de2b9d9d9ff35df01eadf6c38305c91136e871cc7282bdc0b77ac6ef7fba233f631fb9d5e504179a8b7dd951dabaa524243464ee0d3eaecc08b6ce5256e5b0b826ad76911453e412a38082bd642086c9934f0eb50e06eec70f8c45517b8a000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:14:14 GMT", + "Mon, 16 Oct 2023 14:01:06 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -34,11 +34,11 @@ "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "97", + "98", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-334", + "-361", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Not_Wrapped.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Not_Wrapped.json index ad9ef3075e..97ed7ff719 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Not_Wrapped.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Not_Wrapped.json @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004031dca410e83201085e17d8f316b210567503948f7488784868011314d8c772fe9eefd79df059f5af2be79b0a0e51306d8b9b67480bdc0977cf0f73fdd165fbcd75872774a2a941abbada9f45b2b9a4622a47b80d3a5c660734ba9577c776e0c6b0a8a45080b0a347a142b19147e991869d66a9d1ddc8f1f515b49ff8a000000" + "1f8b08000000000004031dca4b0ac3201485e1799771c751d4dcaa71219d5b1f60110d1a432164ef95cececff92ef8f45adaeec080a00c1668a18f7c80b9c0d57284ef7fda3dbd42eba996e938e59272356dcf75de422043a671bb17386d1e014c1939cf4a7e7269dd2a95458251ad049517e42dad26727b72bfc5108566703f7e38df08bb8a000000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:14:15 GMT", + "Mon, 16 Oct 2023 14:01:06 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -34,11 +34,11 @@ "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "96", + "97", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-334", + "-361", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Wrapped.json b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Wrapped.json index 3eb753a7d6..70e5e0b5aa 100644 --- a/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Wrapped.json +++ b/platforms/solana/__tests__/integration/fixtures/TokenBridge_Tests_Get_Wrapped_Asset_Details_isWrappedAsset_Real_Wrapped.json @@ -16,13 +16,13 @@ }, "status": 200, "response": [ - "1f8b08000000000004035d8f4b4f84301485f7fe8cbb0642a1e595b880c18c12a3980ccec2b828a53c142850608813febb7596ded549ee395fceb9c29714fd343008c0324cd060e272696708aec0443ff3ed26e9d0bcf34936a2573e64206c585879652bd4db42c4b509c164d760a5edc2ffc2059d29041f1055e1bf3bfc3c5a744c2382332bbdd448e4c56be2d625eab6ede95e51732ab983e15303be71b6cc346f15b2a4ade41ab4b41bc4344b0810b231f64c0dc4a5e793ea751153179fb2c409cfe9cbfa4dfcf5f896c7eb31e9c63c3e15d5b90a47f61c1daa2cbfedece78741b01a02db41bbeade140ac25cbbf449c975db2344c725c5ba67babeee148821dbf49d9250d8ef7e01676a45a538010000" + "1f8b08000000000004035d8f4d6f83300c86effb193e032221408ab4433fa66e68da3aa95d0fd30e4e08940d0810a06855fffbb21ee79325bf7eece7025f46377d2b2101eaf9e040afcc580d905c40ea6650f3adc5b67c57bd29756373c4239147629b3595b6634a99cf7cce16570726ac46f5b79ce180907cc0aa58feabf5cf23c56eb70ad981eece27a245f69ac6a79cd4f3fc746fa9028d8a187c3aa06625c701456591395646395061ddea7e3090101230c67d07f4b951bdfdebacfb7ab33fa4d1f2b87b99bec3c5b47d139b699bd69dd8ecb3e2582c3bf9bc5a170771f36c868756cb13244144ac4b8bd29e09c2abd52833cb6382c6b9e4b18b8ca1cb68c05c1ed3c8a539a28a38954470b8defd02ebd4c93243010000" ], "rawHeaders": [ "content-type", "application/json; charset=utf-8", "date", - "Tue, 05 Sep 2023 13:14:14 GMT", + "Mon, 16 Oct 2023 14:01:06 GMT", "x-rpc-node", "pit37", "x-ratelimit-tier", @@ -34,11 +34,11 @@ "x-ratelimit-rps-limit", "100", "x-ratelimit-rps-remaining", - "95", + "96", "x-ratelimit-endpoint-limit", "unlimited", "x-ratelimit-endpoint-remaining", - "-334", + "-363", "x-ratelimit-conn-limit", "40", "x-ratelimit-conn-remaining", diff --git a/platforms/solana/__tests__/integration/tokenBridge.test.ts b/platforms/solana/__tests__/integration/tokenBridge.test.ts index 42cb0dad4a..89c15a507a 100644 --- a/platforms/solana/__tests__/integration/tokenBridge.test.ts +++ b/platforms/solana/__tests__/integration/tokenBridge.test.ts @@ -50,7 +50,7 @@ nockBack.fixtures = __dirname + '/fixtures'; let nockDone: () => void; beforeEach(async () => { - nockBack.setMode('lockdown'); + nockBack.setMode('update'); const fullTestName = expect.getState().currentTestName?.replace(/\s/g, '_'); const { nockDone: nd } = await nockBack(`${fullTestName}.json`, { // Remove the `id` from the request body after preparing it but before @@ -84,12 +84,12 @@ afterEach(async () => { describe('TokenBridge Tests', () => { const p: Platform<'Solana'> = SolanaPlatform.setConfig(network, configs); + let tb: TokenBridge<'Solana'>; test('Create TokenBridge', async () => { const rpc = p.getRpc('Solana'); const contracts = new SolanaContracts(configs); - tb = await SolanaTokenBridge.fromProvider(rpc, contracts); expect(tb).toBeTruthy(); }); diff --git a/platforms/solana/__tests__/unit/platform.test.ts b/platforms/solana/__tests__/unit/platform.test.ts index 25d87d5785..662a6f5fc1 100644 --- a/platforms/solana/__tests__/unit/platform.test.ts +++ b/platforms/solana/__tests__/unit/platform.test.ts @@ -38,22 +38,11 @@ describe('Solana Platform Tests', () => { }); }); - //describe('Get Automatic Token Bridge', () => { - // test('Fails until implemented', async () => { - // const p = SolanaPlatform.setConfig({ - // [SOLANA_CHAINS[0]]: configs[SOLANA_CHAINS[0]], - // }); - // expect(() => p.getAutomaticTokenBridge(fakeRpc)).rejects.toThrow(); - // }); - //}); - describe('Get Chain', () => { test('No conf', () => { - // no issues just grabbing the chain const p = SolanaPlatform.setConfig(network, {}); expect(p.conf).toEqual({}); - const c = p.getChain(SOLANA_CHAINS[0]); - expect(c).toBeTruthy(); + expect(() => p.getChain(SOLANA_CHAINS[0])).toThrow(); }); test('With conf', () => { @@ -72,14 +61,12 @@ describe('Solana Platform Tests', () => { // expect getRpc to throw an error since we havent provided // the conf to figure out how to connect expect(() => p.getRpc(SOLANA_CHAINS[0])).toThrow(); - expect(() => p.getChain(SOLANA_CHAINS[0]).getRpc()).toThrow(); + expect(() => p.getChain(SOLANA_CHAINS[0])).toThrow(); }); test('With conf', () => { const p = SolanaPlatform.setConfig(network, { - [SOLANA_CHAINS[0]]: { - rpc: 'http://localhost:8545', - }, + [SOLANA_CHAINS[0]]: configs[SOLANA_CHAINS[0]], }); expect(() => p.getRpc(SOLANA_CHAINS[0])).not.toThrow(); expect(() => p.getChain(SOLANA_CHAINS[0]).getRpc()).not.toThrow();