From 9498a1fb7cfa65874ded7380a285769c47649372 Mon Sep 17 00:00:00 2001 From: Spring Chiu Date: Fri, 8 Sep 2023 00:20:48 +0800 Subject: [PATCH 1/3] feat-issue-123: add rpc url env to replace default rpc url --- README.md | 15 +++++++++++++++ packages/js/__tests__/jsonrpc.ava.js | 10 ++++++++++ packages/js/dist/account/account-manager.d.ts.map | 2 +- packages/js/dist/account/account-manager.js | 3 +-- packages/js/dist/account/account-manager.js.map | 2 +- packages/js/dist/jsonrpc.js | 4 ++-- packages/js/dist/jsonrpc.js.map | 2 +- packages/js/dist/utils.d.ts.map | 2 +- packages/js/dist/utils.js | 10 +++++++++- packages/js/dist/utils.js.map | 2 +- packages/js/package.json | 3 ++- packages/js/src/account/account-manager.ts | 3 +-- packages/js/src/jsonrpc.ts | 4 ++-- packages/js/src/utils.ts | 9 ++++++++- 14 files changed, 55 insertions(+), 16 deletions(-) create mode 100644 packages/js/__tests__/jsonrpc.ava.js diff --git a/README.md b/README.md index 60ed0a83..3ac32a5e 100644 --- a/README.md +++ b/README.md @@ -292,3 +292,18 @@ Pro Tips * specify which port to run on * and more! + +Env variables +======== +```text +NEAR_CLI_MAINNET_RPC_SERVER_URL +NEAR_CLI_TESTNET_RPC_SERVER_URL +``` +Clear them in case you want to get back to the default RPC server. + +Example: + +```shell +export NEAR_CLI_MAINNET_RPC_SERVER_URL= +``` +here is a testcase: [jsonrpc.ava.js](./packages/js/__tests__/jsonrpc.ava.js) diff --git a/packages/js/__tests__/jsonrpc.ava.js b/packages/js/__tests__/jsonrpc.ava.js new file mode 100644 index 00000000..5a1c9b23 --- /dev/null +++ b/packages/js/__tests__/jsonrpc.ava.js @@ -0,0 +1,10 @@ +import test from "ava"; +import {JsonRpcProvider} from ".."; + +test("check url", async (t) => { + const provider = JsonRpcProvider.fromNetwork("mainnet"); + if (process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) { + console.log("use rpc", process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL); + t.is(provider.connection.url, process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL.toString()); + } +}); diff --git a/packages/js/dist/account/account-manager.d.ts.map b/packages/js/dist/account/account-manager.d.ts.map index 17d3f787..0741580d 100644 --- a/packages/js/dist/account/account-manager.d.ts.map +++ b/packages/js/dist/account/account-manager.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"account-manager.d.ts","sourceRoot":"","sources":["../../src/account/account-manager.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,aAAa,CAAC;AACvC,OAAO,EAAC,IAAI,EAAC,MAAM,YAAY,CAAC;AAEhC,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,EAAyC,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAC,MAAM,UAAU,CAAC;AAEpJ,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,eAAe,EAAC,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAC,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAE1D,8BAAsB,cAAe,YAAW,kBAAkB;IAI9D,SAAS,CAAC,MAAM,EAAE,MAAM;IAH1B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IACzC,OAAO,CAAC,KAAK,CAAC,CAAc;gBAEhB,MAAM,EAAE,MAAM;IAG1B,MAAM,CAAC,MAAM,CACX,MAAM,EAAE,MAAM,GACb,cAAc;IAWX,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAI1D,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW;IAI1C,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW;IAS1C,SAAS,CACb,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,I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,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAatD,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAU1E,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAQnD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAKjE,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;CAG9C;AAED,qBAAa,cAAe,SAAQ,cAAc;IAC1C,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC;IAQ/B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAI7D,IAAI,uBAAuB,IAAI,MAAM,CAEpC;IAED,IAAI,eAAe,IAAI,QAAQ,CAK9B;IAED,IAAI,WAAW,IAAI,MAAM,CAExB;CACF;AAED,qBAAa,kBAAmB,SAAQ,WAAW;IAErC,OAAO,CAAC,QAAQ,CAAC,OAAO;IADpC,OAAO,CAAC,MAAM,CAAS;gBACM,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,GAAG,MAAM,EAAE,QAAQ,EAAE,YAAY,GAAG,MAAM;IAIpH,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAK1C;;;;OAIG;IACG,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAQ9D"} \ No newline at end of file diff --git a/packages/js/dist/account/account-manager.js b/packages/js/dist/account/account-manager.js index 3c9c0a18..21478934 100644 --- a/packages/js/dist/account/account-manager.js +++ b/packages/js/dist/account/account-manager.js @@ -149,7 +149,6 @@ class AccountManager { } try { const start = Date.now(); - // @ts-expect-error access shouldn't be protected const outcome = await account.signAndSendTransaction({ receiverId: tx.receiverId, actions: tx.actions, returnError: true }); const end = Date.now(); if (oldKey) { @@ -197,7 +196,7 @@ class AccountManager { return this.config.network; } get connection() { - return new nearAPI.Connection(this.networkId, this.provider, this.signer); + return new nearAPI.Connection(this.networkId, this.provider, this.signer, `jsvm.${this.networkId}`); } } exports.AccountManager = AccountManager; diff --git a/packages/js/dist/account/account-manager.js.map b/packages/js/dist/account/account-manager.js.map index e1fc2a97..767fcf86 100644 --- a/packages/js/dist/account/account-manager.js.map +++ b/packages/js/dist/account/account-manager.js.map @@ -1 +1 @@ -{"version":3,"file":"account-manager.js","sourceRoot":"","sources":["../../src/account/account-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,iDAAmC;AACnC,qDAAuC;AACvC,2CAAgC;AAChC,oCAAkE;AAClE,oCAAoJ;AACpJ,sDAAiD;AACjD,gDAA2C;AAC3C,wCAA2C;AAC3C,8DAAwD;AACxD,uCAAkC;AAElC,mCAAuC;AAGvC,MAAsB,cAAc;IAGlC,YACY,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAH1B,oBAAe,GAAgB,IAAI,GAAG,EAAE,CAAC;IAItC,CAAC;IAEJ,MAAM,CAAC,MAAM,CACX,MAAc;QAEd,MAAM,EAAC,OAAO,EAAC,GAAG,MAAM,CAAC;QACzB,QAAQ,OAAO,EAAE;YACf,KAAK,SAAS;gBACZ,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;YACpC,KAAK,SAAS;gBACZ,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;YACpC,OAAO,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAiB,oCAAoC,CAAC,CAAC;SACrG;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,SAAiB;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAC9C,CA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IAAI,CAAC,UAAU,CAAC,CAAC;SAC/C;QAED,OAAO,eAAe,CAAC;IACzB,CAAC;CACF;AA7BD,gDA6BC"} \ No newline at end of file +{"version":3,"file":"account-manager.js","sourceRoot":"","sources":["../../src/account/account-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,iDAAmC;AACnC,qDAAuC;AACvC,2CAAgC;AAChC,oCAAkE;AAClE,oCAAoJ;AACpJ,sDAAiD;AACjD,gDAA2C;AAC3C,wCAA2C;AAC3C,8DAAwD;AACxD,uCAAkC;AAElC,mCAAuC;AAGvC,MAAsB,cAAc;IAGlC,YACY,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAH1B,oBAAe,GAAgB,IAAI,GAAG,EAAE,CAAC;IAItC,CAAC;IAEJ,MAAM,CAAC,MAAM,CACX,MAAc;QAEd,MAAM,EAAC,OAAO,EAAC,GAAG,MAAM,CAAC;QACzB,QAAQ,OAAO,EAAE;YACf,KAAK,SAAS;gBACZ,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;YACpC,KAAK,SAAS;gBACZ,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;YACpC,OAAO,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAiB,oCAAoC,CAAC,CAAC;SACrG;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,SAAiB;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU,CAAC,SAAiB;QAC1B,OAAO,IAAI,iBAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;IAED,gBAAgB,CAAC,SAAiB;QAChC,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;YACtB,OAAO,IAAI,CAAC,UA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I,CAAC,MAAM,CAAC,OAAO,CACpB,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;IAC9D,CAAC;CACF;AA3BD,wCA2BC;AAED,MAAa,kBAAmB,SAAQ,yBAAW;IAEjD,YAA6B,OAAuB,EAAE,MAA6B,EAAE,QAA+B;QAClH,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QADG,YAAO,GAAP,OAAO,CAAgB;QAD5C,WAAM,GAAG,KAAK,CAAC;IAGvB,CAAC;IAED,aAAa;QACX,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/D,OAAO,KAAK,CAAC,aAAa,EAAE,CAAC;IAC/B,CAAC;IAED,aAAa,CAAC,aAAqB;QACjC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,OAAO,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,QAAQ,CAAC,OAAiB;QAC9B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7E,IAAI,eAAe,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;YAC5C,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC/C;QAED,OAAO,eAAe,CAAC;IACzB,CAAC;CACF;AA7BD,gDA6BC"} \ No newline at end of file diff --git a/packages/js/dist/jsonrpc.js b/packages/js/dist/jsonrpc.js index d26742b0..3b98b305 100644 --- a/packages/js/dist/jsonrpc.js +++ b/packages/js/dist/jsonrpc.js @@ -26,8 +26,8 @@ class JsonRpcProvider extends types_1.JSONRpc { } static fromNetwork(network) { switch (network) { - case 'mainnet': return exports.MainnetRpc; - case 'testnet': return exports.TestnetRpc; + case 'mainnet': return process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL ? JsonRpcProvider.from(process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) : exports.MainnetRpc; + case 'testnet': return process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL ? JsonRpcProvider.from(process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) : exports.TestnetRpc; default: throw new TypeError('Invalid network only mainnet or testnet'); } } diff --git a/packages/js/dist/jsonrpc.js.map b/packages/js/dist/jsonrpc.js.map index 132f7971..e6b815bd 100644 --- a/packages/js/dist/jsonrpc.js.map +++ b/packages/js/dist/jsonrpc.js.map @@ -1 +1 @@ -{"version":3,"file":"jsonrpc.js","sourceRoot":"","sources":["../src/jsonrpc.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,mCAA8B;AAC9B,2CAAgC;AAChC,6DAAiE;AAEjE,mCAA2P;AAE3P,MAAM,UAAU,GAA6B,EAAC,QAAQ,EAAE,YAAY,EAAC,CAAC;AACtE;;;GAGG;AACH,MAAa,eAAgB,SAAQ,eAAO;IAG1C;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAC,MAAkC;QAC5C,MAAM,GAAG,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC;QACjE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;YAC5B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,eAAe,CAAC,EAAC,GAAG,EAAC,CAAC,CAAC,CAAC;SACrD;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,OAAgB;QACjC,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C,GAAG,EAAE,QAAQ,CAAC;YAC/B,KAAK,EAAE,eAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC;SACpC,CAAC,CAAC,CAAC;IACN,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,YAAY,CAAC,SAAiB,EAAE,MAA2B,EAAE,UAAuD;QACxH,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAkB;YACjD,YAAY,EAAE,YAAY;YAC1B,GAAG,CAAC,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAC,QAAQ,EAAE,YAAY,EAAC,CAAC;YAC3C,UAAU,EAAE,SAAS;YACrB,aAAa,EAAE,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;SACtD,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CAAC,OAAgB;QACtC,OAAO,IAAI,CAAC,WAAW,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;;AA3KH,0CA4KC;AA3KyB,yBAAS,GAAiC,IAAI,GAAG,EAAE,CAAC;AA6KjE,QAAA,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,wBAAgB,CAAC,CAAC;AACpD,QAAA,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,wBAAgB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/js/dist/utils.d.ts.map b/packages/js/dist/utils.d.ts.map index 1c59b25f..1cec7cd8 100644 --- a/packages/js/dist/utils.d.ts.map +++ b/packages/js/dist/utils.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAO9B,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,YAAY,CAAC;AACr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BAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,MAAM,CAE7D;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE,GAAG,GAAG,CAM5C;AAID,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE,GAAG,IAAI,CAM9C"} \ No newline at end of file diff --git a/packages/js/dist/utils.js b/packages/js/dist/utils.js index d44f8b8f..83597d9a 100644 --- a/packages/js/dist/utils.js +++ b/packages/js/dist/utils.js @@ -75,9 +75,17 @@ function isTopLevelAccount(accountId) { } exports.isTopLevelAccount = isTopLevelAccount; function configFromDomain(network) { + let rpcAddr = `https://archival-rpc.${network}.near.org`; + if (network === 'mainnet' && process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) { + rpcAddr = process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL; + } + else if (network === 'testnet' && process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) { + rpcAddr = process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL; + } + console.log(); return { network, - rpcAddr: `https://archival-rpc.${network}.near.org`, + rpcAddr, walletUrl: `https://wallet.${network}.near.org`, helperUrl: `https://helper.${network}.near.org`, explorerUrl: `https://explorer.${network}.near.org`, diff --git a/packages/js/dist/utils.js.map b/packages/js/dist/utils.js.map index e3ec5858..91a30da8 100644 --- a/packages/js/dist/utils.js.map +++ b/packages/js/dist/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA8B;AAC9B,iDAAmC;AACnC,uCAAyB;AACzB,2CAA6B;AAC7B,qDAAuC;AACvC,0DAA+B;AAC/B,gDAAwB;AACxB,2CAAqC;AAGxB,QAAA,QAAQ,GAAG,iBAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAEzC,SAAgB,OAAO,CAAC,MAAc;IACpC,O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AAC;AAND,8BAMC"} \ No newline at end of file diff --git a/packages/js/package.json b/packages/js/package.json index d2dd63dc..12af148f 100644 --- a/packages/js/package.json +++ b/packages/js/package.json @@ -40,7 +40,8 @@ "test:sandbox": "yarn build && ava --verbose", "test:sandbox:ci": "yarn build && NEAR_WORKSPACES_DEBUG=true ava --verbose", "test": "ava --verbose && yarn test:testnet", - "clean:accounts": "ts-node ./scripts/delete-accounts.ts" + "clean:accounts": "ts-node ./scripts/delete-accounts.ts", + "test:jsonrpc:env": " NEAR_CLI_MAINNET_RPC_SERVER_URL=https://near-mainnet.api.pagoda.co/rpc/v1 ava __tests__/jsonrpc.ava.js" }, "files": [ "dist/", diff --git a/packages/js/src/account/account-manager.ts b/packages/js/src/account/account-manager.ts index f336f815..2cc9485e 100644 --- a/packages/js/src/account/account-manager.ts +++ b/packages/js/src/account/account-manager.ts @@ -157,7 +157,6 @@ export abstract class AccountManager implements NearAccountManager { try { const start = Date.now(); - // @ts-expect-error access shouldn't be protected const outcome: FinalExecutionOutcome = await account.signAndSendTransaction({receiverId: tx.receiverId, actions: tx.actions, returnError: true}); const end = Date.now(); if (oldKey) { @@ -217,7 +216,7 @@ export abstract class AccountManager implements NearAccountManager { } protected get connection(): nearAPI.Connection { - return new nearAPI.Connection(this.networkId, this.provider, this.signer); + return new nearAPI.Connection(this.networkId, this.provider, this.signer, `jsvm.${this.networkId}`); } } diff --git a/packages/js/src/jsonrpc.ts b/packages/js/src/jsonrpc.ts index dcb4e39d..efa7414f 100644 --- a/packages/js/src/jsonrpc.ts +++ b/packages/js/src/jsonrpc.ts @@ -29,8 +29,8 @@ export class JsonRpcProvider extends JSONRpc { static fromNetwork(network: Network): JsonRpcProvider { switch (network) { - case 'mainnet': return MainnetRpc; - case 'testnet': return TestnetRpc; + case 'mainnet': return process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL? JsonRpcProvider.from(process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) : MainnetRpc; + case 'testnet': return process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL? JsonRpcProvider.from(process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) : TestnetRpc; default: throw new TypeError('Invalid network only mainnet or testnet'); } } diff --git a/packages/js/src/utils.ts b/packages/js/src/utils.ts index d5c199e3..2770c178 100644 --- a/packages/js/src/utils.ts +++ b/packages/js/src/utils.ts @@ -57,9 +57,16 @@ export function isTopLevelAccount(accountId: string): boolean { } function configFromDomain(network: 'testnet' | 'mainnet'): ClientConfig { + let rpcAddr = `https://archival-rpc.${network}.near.org`; + if (network === 'mainnet' && process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) { + rpcAddr = process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL; + } else if (network === 'testnet' && process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) { + rpcAddr = process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL; + } + console.log(); return { network, - rpcAddr: `https://archival-rpc.${network}.near.org`, + rpcAddr, walletUrl: `https://wallet.${network}.near.org`, helperUrl: `https://helper.${network}.near.org`, explorerUrl: `https://explorer.${network}.near.org`, From 5a02a550bebb147998b1f87921a9b9568b38dafa Mon Sep 17 00:00:00 2001 From: Spring Chiu Date: Mon, 11 Sep 2023 12:55:08 +0800 Subject: [PATCH 2/3] feat-issue-123: fix ci run failed with incorrect dependecy version --- packages/js/dist/account/account-manager.d.ts.map | 2 +- packages/js/dist/account/account-manager.js | 3 ++- packages/js/dist/account/account-manager.js.map | 2 +- packages/js/dist/utils.d.ts.map | 2 +- packages/js/dist/utils.js | 1 - packages/js/dist/utils.js.map | 2 +- packages/js/src/account/account-manager.ts | 3 ++- packages/js/src/utils.ts | 1 - 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/js/dist/account/account-manager.d.ts.map b/packages/js/dist/account/account-manager.d.ts.map index 0741580d..17d3f787 100644 --- a/packages/js/dist/account/account-manager.d.ts.map +++ b/packages/js/dist/account/account-manager.d.ts.map @@ -1 +1 @@ -{"version":3,"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OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAKjE,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;CAG9C;AAED,qBAAa,cAAe,SAAQ,cAAc;IAC1C,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC;IAQ/B,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAI7D,IAAI,uBAAuB,IAAI,MAAM,CAEpC;IAED,IAAI,eAAe,IAAI,QAAQ,CAK9B;IAED,IAAI,WAAW,IAAI,MAAM,CAExB;CACF;AAED,qBAAa,kBAAmB,SAAQ,WAAW;IAErC,OAAO,CAAC,QAAQ,CAAC,OAAO;IADpC,OAAO,CAAC,MAAM,CAAS;gBACM,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,GAAG,MAAM,EAAE,QAAQ,EAAE,YAAY,GAAG,MAAM;IAIpH,aAAa,IAAI,IAAI;IAKrB,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAK1C;;;;OAIG;IACG,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAQ9D"} \ No newline at end of file diff --git a/packages/js/dist/account/account-manager.js b/packages/js/dist/account/account-manager.js index 21478934..3c9c0a18 100644 --- a/packages/js/dist/account/account-manager.js +++ b/packages/js/dist/account/account-manager.js @@ -149,6 +149,7 @@ class AccountManager { } try { const start = Date.now(); + // @ts-expect-error access shouldn't be protected const outcome = await account.signAndSendTransaction({ receiverId: tx.receiverId, actions: tx.actions, returnError: true }); const end = Date.now(); if (oldKey) { @@ -196,7 +197,7 @@ class AccountManager { return this.config.network; } get connection() { - return new nearAPI.Connection(this.networkId, this.provider, this.signer, `jsvm.${this.networkId}`); + return new nearAPI.Connection(this.networkId, this.provider, this.signer); } } exports.AccountManager = AccountManager; diff --git a/packages/js/dist/account/account-manager.js.map b/packages/js/dist/account/account-manager.js.map index 767fcf86..e1fc2a97 100644 --- a/packages/js/dist/account/account-manager.js.map +++ b/packages/js/dist/account/account-manager.js.map @@ -1 +1 @@ -{"version":3,"file":"account-manager.js","sourceRoot":"","sources":["../../src/account/account-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,iDAAmC;AACnC,qDAAuC;AACvC,2CAAgC;AAChC,oCAAkE;AAClE,oCAAoJ;AACpJ,sDAAiD;AACjD,gDAA2C;AAC3C,wCAA2C;AAC3C,8DAAwD;AACxD,uCAAkC;AAElC,mCAAuC;AAGvC,MAAsB,cAAc;IAGlC,YACY,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QAH1B,oBAAe,GAAgB,IAAI,GAAG,EAAE,CAAC;IAItC,CAAC;IAEJ,MAAM,CAAC,MAAM,CACX,MAAc;QAEd,MAAM,EAAC,OAAO,EAAC,GAAG,MAAM,CAAC;QACzB,QAAQ,OAAO,EAAE;YACf,KAAK,SAAS;gBACZ,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;YACpC,KAAK,SAAS;gBACZ,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;YACpC,OAAO,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAiB,oCAAoC,CAAC,CAAC;SACrG;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,SAAiB;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU,CAAC,SAAiB;QAC1B,OAAO,IAAI,iBAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACtC,CAAC;IAED,gBAAgB,CAAC,SAAiB;QAChC,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,KAAK,C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,GAAG,IAAI,OAAO,CAAC,SAAS,CAAC,6BAA6B,CAClE,IAAI,CAAC,MAAM,CAAC,OAAO,CACpB,CAAC;QACF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;IAC9D,CAAC;CACF;AA3BD,wCA2BC;AAED,MAAa,kBAAmB,SAAQ,yBAAW;IAEjD,YAA6B,OAAuB,EAAE,MAA6B,EAAE,QAA+B;QAClH,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QADG,YAAO,GAAP,OAAO,CAAgB;QAD5C,WAAM,GAAG,KAAK,CAAC;IAGvB,CAAC;IAED,aAAa;QACX,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/D,OAAO,KAAK,CAAC,aAAa,EAAE,CAAC;IAC/B,CAAC;IAED,aAAa,CAAC,aAAqB;QACjC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,OAAO,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,QAAQ,CAAC,OAAiB;QAC9B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7E,IAAI,eAAe,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;YAC5C,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC/C;QAED,OAAO,eAAe,CAAC;IACzB,CAAC;CACF;AA7BD,gDA6BC"} \ No newline at end of file +{"version":3,"file":"account-manager.js","sourceRoot":"","sources":["../../src/account/account-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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C;AAED,MAAa,kBAAmB,SAAQ,yBAAW;IAEjD,YAA6B,OAAuB,EAAE,MAA6B,EAAE,QAA+B;QAClH,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QADG,YAAO,GAAP,OAAO,CAAgB;QAD5C,WAAM,GAAG,KAAK,CAAC;IAGvB,CAAC;IAED,aAAa;QACX,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/D,OAAO,KAAK,CAAC,aAAa,EAAE,CAAC;IAC/B,CAAC;IAED,aAAa,CAAC,aAAqB;QACjC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,OAAO,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,QAAQ,CAAC,OAAiB;QAC9B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7E,IAAI,eAAe,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE;YAC5C,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;SAC/C;QAED,OAAO,eAAe,CAAC;IACzB,CAAC;CACF;AA7BD,gDA6BC"} \ No newline at end of file diff --git a/packages/js/dist/utils.d.ts.map b/packages/js/dist/utils.d.ts.map index 1cec7cd8..abc8454e 100644 --- a/packages/js/dist/utils.d.ts.map +++ b/packages/js/dist/utils.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAO9B,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,YAAY,EAAE,OAAO,EAAE,Y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AAE,MAAM,SAAI,GAAG,MAAM,CAE7D;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE,GAAG,GAAG,CAM5C;AAID,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE,GAAG,IAAI,CAM9C"} \ No newline at end of file diff --git a/packages/js/dist/utils.js b/packages/js/dist/utils.js index 83597d9a..e0b48ab0 100644 --- a/packages/js/dist/utils.js +++ b/packages/js/dist/utils.js @@ -82,7 +82,6 @@ function configFromDomain(network) { else if (network === 'testnet' && process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) { rpcAddr = process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL; } - console.log(); return { network, rpcAddr, diff --git a/packages/js/dist/utils.js.map b/packages/js/dist/utils.js.map index 91a30da8..a9cc028b 100644 --- a/packages/js/dist/utils.js.map +++ b/packages/js/dist/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA8B;AAC9B,iDAAmC;AACnC,uCAAyB;AACzB,2CAA6B;AAC7B,qDAAuC;AACvC,0DAA+B;AAC/B,gDAAwB;AACxB,2CAAqC;AAGxB,QAAA,QAAQ,GAAG,iBAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAEzC,SAAgB,OAAO,CAAC,MAAc;IACpC,OAAO,iBAAI,CAAC,KAAK,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC7C,CAAC;AAFD,0BAEC;AAED,SAAgB,aAAa;IAC3B,OAAO,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,EAAE,CAAC;AACnD,CAAC;AAFD,sCAEC;AAED,SAAgB,IAAI,CAAC,CAAkB;IACrC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAA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/src/account/account-manager.ts b/packages/js/src/account/account-manager.ts index 2cc9485e..f336f815 100644 --- a/packages/js/src/account/account-manager.ts +++ b/packages/js/src/account/account-manager.ts @@ -157,6 +157,7 @@ export abstract class AccountManager implements NearAccountManager { try { const start = Date.now(); + // @ts-expect-error access shouldn't be protected const outcome: FinalExecutionOutcome = await account.signAndSendTransaction({receiverId: tx.receiverId, actions: tx.actions, returnError: true}); const end = Date.now(); if (oldKey) { @@ -216,7 +217,7 @@ export abstract class AccountManager implements NearAccountManager { } protected get connection(): nearAPI.Connection { - return new nearAPI.Connection(this.networkId, this.provider, this.signer, `jsvm.${this.networkId}`); + return new nearAPI.Connection(this.networkId, this.provider, this.signer); } } diff --git a/packages/js/src/utils.ts b/packages/js/src/utils.ts index 2770c178..706d58e7 100644 --- a/packages/js/src/utils.ts +++ b/packages/js/src/utils.ts @@ -63,7 +63,6 @@ function configFromDomain(network: 'testnet' | 'mainnet'): ClientConfig { } else if (network === 'testnet' && process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) { rpcAddr = process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL; } - console.log(); return { network, rpcAddr, From a9e510d0766c9bc853e172bc8f019c59ab898375 Mon Sep 17 00:00:00 2001 From: Spring Chiu Date: Mon, 11 Sep 2023 13:23:35 +0800 Subject: [PATCH 3/3] chore: lint --- packages/js/__tests__/jsonrpc.ava.js | 13 ++++++++----- packages/js/dist/jsonrpc.d.ts.map | 2 +- packages/js/dist/jsonrpc.js | 8 ++++++-- packages/js/dist/jsonrpc.js.map | 2 +- packages/js/dist/transaction.d.ts.map | 2 +- packages/js/dist/transaction.js | 4 +++- packages/js/dist/transaction.js.map | 2 +- packages/js/dist/utils.d.ts.map | 2 +- packages/js/dist/utils.js.map | 2 +- packages/js/src/jsonrpc.ts | 5 +++-- packages/js/src/transaction.ts | 1 + packages/js/src/utils.ts | 1 + 12 files changed, 28 insertions(+), 16 deletions(-) diff --git a/packages/js/__tests__/jsonrpc.ava.js b/packages/js/__tests__/jsonrpc.ava.js index 5a1c9b23..1e826f42 100644 --- a/packages/js/__tests__/jsonrpc.ava.js +++ b/packages/js/__tests__/jsonrpc.ava.js @@ -1,10 +1,13 @@ -import test from "ava"; -import {JsonRpcProvider} from ".."; +import process from 'process'; -test("check url", async (t) => { - const provider = JsonRpcProvider.fromNetwork("mainnet"); +import test from 'ava'; + +import {JsonRpcProvider} from '..'; + +test('check url', t => { + const provider = JsonRpcProvider.fromNetwork('mainnet'); if (process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) { - console.log("use rpc", process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL); + console.log('use rpc', process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL); t.is(provider.connection.url, process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL.toString()); } }); diff --git a/packages/js/dist/jsonrpc.d.ts.map b/packages/js/dist/jsonrpc.d.ts.map index 29ebbbb9..66d89559 100644 --- a/packages/js/dist/jsonrpc.d.ts.map +++ b/packages/js/dist/jsonrpc.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"jsonrpc.d.ts","sourceRoot":"","sources":["../src/jsonrpc.ts"],"names":[],"mappings":";AACA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAG9B,OAAO,EAAC,OAAO,EAAC,MAAM,UAAU,CAAC;AACjC,OAAO,EAAC,OAAO,EAAoB,WAAW,EAAE,kBAAkB,EAAE,cAAc,EAAE,UAAU,EAAmB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAoB,KAAK,EAAoB,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAG3P;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,OAAO;IAC1C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAA2C;IAE5E;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG;QAAC,OAAO,EAAE,MAAM,CAAA;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AAO,CAAA;KAAC,GAAG;QAAC,QAAQ,EAAE,QAAQ,CAAA;KAAC,GAAG,OAAO,CAAC,UAAU,CAAC;IAK/K;;;;;;;OAOG;IACG,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,GAAE;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAC,GAAG;QAAC,QAAQ,EAAE,QAAQ,CAAA;KAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAUhK;;;;;;;OAOG;IACG,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,EAAE,UAAU,CAAC,EAAE;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAC,GAAG;QAAC,QAAQ,EAAE,QAAQ,CAAA;KAAC,GAAG,OAAO,CAAC,KAAK,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IAStK;;;;;;;OAOG;IACG,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,EAAE,UAAU,CAAC,EAAE;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAC,GAAG;QAAC,QAAQ,EAAE,QAAQ,CAAA;KAAC,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAWjJ;;;;;OAKG;IACG,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC;CAG1D;AAED,eAAO,MAAM,UAAU,iBAAyC,CAAC;AACjE,eAAO,MAAM,UAAU,iBAAyC,CAAC"} \ No newline at end of file diff --git a/packages/js/dist/jsonrpc.js b/packages/js/dist/jsonrpc.js index 3b98b305..6a2a0aae 100644 --- a/packages/js/dist/jsonrpc.js +++ b/packages/js/dist/jsonrpc.js @@ -1,8 +1,12 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.MainnetRpc = exports.TestnetRpc = exports.JsonRpcProvider = void 0; // eslint-disable unicorn/no-object-as-default-parameter const buffer_1 = require("buffer"); +const process_1 = __importDefault(require("process")); const near_units_1 = require("near-units"); const transaction_1 = require("near-api-js/lib/transaction"); const types_1 = require("./types"); @@ -26,8 +30,8 @@ class JsonRpcProvider extends types_1.JSONRpc { } static fromNetwork(network) { switch (network) { - case 'mainnet': return process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL ? JsonRpcProvider.from(process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) : exports.MainnetRpc; - case 'testnet': return process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL ? JsonRpcProvider.from(process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) : exports.TestnetRpc; + case 'mainnet': return process_1.default.env.NEAR_CLI_MAINNET_RPC_SERVER_URL ? JsonRpcProvider.from(process_1.default.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) : exports.MainnetRpc; + case 'testnet': return process_1.default.env.NEAR_CLI_TESTNET_RPC_SERVER_URL ? JsonRpcProvider.from(process_1.default.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) : exports.TestnetRpc; default: throw new TypeError('Invalid network only mainnet or testnet'); } } diff --git a/packages/js/dist/jsonrpc.js.map b/packages/js/dist/jsonrpc.js.map index e6b815bd..2c9657f9 100644 --- a/packages/js/dist/jsonrpc.js.map +++ b/packages/js/dist/jsonrpc.js.map @@ -1 +1 @@ -{"version":3,"file":"jsonrpc.js","sourceRoot":"","sources":["../src/jsonrpc.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,mCAA8B;AAC9B,2CAAgC;AAChC,6DAAiE;AAEjE,mCAA2P;AAE3P,MAAM,UAAU,GAA6B,EAAC,QAAQ,EAAE,YAAY,EAAC,CAAC;AACtE;;;GAGG;AACH,MAAa,eAAgB,SAAQ,eAAO;IAG1C;;;;OAIG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AAQ,CAAC,QAAQ,CAAC;SACtD,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CAAC,OAAgB;QACtC,OAAO,IAAI,CAAC,WAAW,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;;AA3KH,0CA4KC;AA3KyB,yBAAS,GAAiC,IAAI,GAAG,EAAE,CAAC;AA6KjE,QAAA,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,wBAAgB,CAAC,CAAC;AACpD,QAAA,UAAU,GAAG,eAAe,CAAC,IAAI,CAAC,wBAAgB,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/js/dist/transaction.d.ts.map b/packages/js/dist/transaction.d.ts.map index fa368ee1..64facd6c 100644 --- a/packages/js/dist/transaction.d.ts.map +++ b/packages/js/dist/transaction.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../src/transaction.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAE9B,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AACxB,OAAO,EAAC,IAAI,EAAC,MAAM,YAAY,CAAC;AAChC,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EACL,MAAM,EACN,SAAS,EACT,SAAS,EAUT,EAAE,EAEF,OAAO,EACP,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB,8BAAsB,WAAW;IAC/B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAM;IAChC,OAAO,CAAC,kBAAkB,CAAS;IACnC,OAAO,CAAC,eAAe,CAAC,CAAO;gBAEnB,MAAM,EAAE,YAAY,GAAG,MAAM,EAAE,QAAQ,EAAE,YA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/D,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,EAAE,GAAG,IAAI;IAMnC,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,cAAc,IAAI,IAAI,CAEzB;IAED,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC;CACjE"} \ No newline at end of file diff --git a/packages/js/dist/transaction.js b/packages/js/dist/transaction.js index 40efc816..fb27aa83 100644 --- a/packages/js/dist/transaction.js +++ b/packages/js/dist/transaction.js @@ -63,7 +63,9 @@ class Transaction { this.actions.push((0, types_1.deployContract)(code)); return this; } - functionCall(methodName, args, { gas = types_1.DEFAULT_FUNCTION_CALL_GAS, attachedDeposit = utils_1.NO_DEPOSIT, } = {}) { + functionCall(methodName, args, { + // @typescript-eslint/no-unsafe-assignment + gas = types_1.DEFAULT_FUNCTION_CALL_GAS, attachedDeposit = utils_1.NO_DEPOSIT, } = {}) { this.actions.push((0, types_1.functionCall)(methodName, args, (0, utils_1.parseGas)(gas), (0, utils_1.parseNEAR)(attachedDeposit))); return this; } diff --git a/packages/js/dist/transaction.js.map b/packages/js/dist/transaction.js.map index 82f271d5..a8cde530 100644 --- a/packages/js/dist/transaction.js.map +++ b/packages/js/dist/transaction.js.map @@ -1 +1 @@ -{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../src/transaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,gDAAkC;AAElC,2CAAgC;AAEhC,mCAiBiB;AACjB,qDAAsD;AACtD,mCAAwD;AAExD,MAAsB,WAAW;IAO/B,YAAY,MAA6B,EAAE,QAA+B;QAJjE,YAAO,GAAa,EAAE,CAAC;QACxB,uBAAkB,GAAG,KAAK,CAAC;QAIjC,IAAI,CAAC,QAAQ,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC;QACvE,IAAI,CAAC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IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,sBAAc,EAAC,IAAI,CAAC,CAAC,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,YAAY,CACV,UAAkB,EAClB,IAA0C,EAC1C,EACE,GAAG,GAAG,iCAAyB,EAC/B,eAAe,GAAG,kBAAU,MAC0B,EAAE;QAE1D,IAAI,CAAC,OAAO,CAAC,IAAI,CACf,IAAA,oBAAY,EAAC,UAAU,EAAE,IAAI,EAAE,IAAA,gBAAQ,EAAC,GAAG,CAAC,EAAE,IAAA,iBAAS,EAAC,eAAe,CAAC,CAAC,CAC1E,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,KAAK,CAAC,MAAmB,EAAE,SAA6B;QACtD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,aAAK,EAAC,IAAI,UAAE,CAAC,MAAM,CAAC,EAAE,iBAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;QACpE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,QAAQ,CAAC,MAAmB;QAC1B,IAAI,CAAC,eAAe,GAAG,IAAA,iBAAS,EAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,gBAAQ,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,IAAI,cAAc;QAChB,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACjC,CAAC;IAED,IAAI,cAAc;;QAChB,OAAO,MAAA,IAAI,CAAC,eAAe,mCAAI,iBAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;CAGF;AAtFD,kCAsFC"} \ No newline at end of file +{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../src/transaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,gDAAkC;AAElC,2CAAgC;AAEhC,mCAiBiB;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,CAAC;IACjC,CAAC;IAED,IAAI,cAAc;;QAChB,OAAO,MAAA,IAAI,CAAC,eAAe,mCAAI,iBAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;CAGF;AAvFD,kCAuFC"} \ No newline at end of file diff --git a/packages/js/dist/utils.d.ts.map b/packages/js/dist/utils.d.ts.map index abc8454e..1cec7cd8 100644 --- a/packages/js/dist/utils.d.ts.map +++ b/packages/js/dist/utils.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAO9B,OAAO,EAAC,GAAG,EAAE,IAAI,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE,EAAC,MAAM,SAAS,CAAC;AAE1E,eAAO,MAAM,QAAQ,MAAmB,CAAC;AAEzC,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,wBAAgB,aAAa,IAAI,OAAO,CAEvC;AAED,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,UAQtC;AAGD,wBAAgB,eAAe,CAAC,MAAM,SAAS,EAAE,UAAU,SAAK,EAAE,YAAY,SAAK,GAAG,MAAM,CAG3F;AAED,wBAAgB,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,GAAG,MAAM,CAEtD;AAED,eAAO,MAAM,UAAU,MAAe,CAAC;AAEvC,wBAAsB,YAAY,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAU1E;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAE5D;AAmBD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAC,OAAO,EAAE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AAE,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAU1E;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAE5D;AAoBD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAC,OAAO,EAAE,MAAM,CAAA;CAAC,GAAG,YAAY,CActF;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAI9D;AAED,eAAO,MAAM,mBAAmB,qCAAqC,CAAC;AAEtE;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,SAAS,GAAG,SAAS,CAczD;AAED,wBAAgB,YAAY,IAAI,QAAQ,CAIvC;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,MAAM,CAE7D;AAID,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE,GAAG,GAAG,CAM5C;AAID,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE,GAAG,IAAI,CAM9C"} \ No newline at end of file diff --git a/packages/js/dist/utils.js.map b/packages/js/dist/utils.js.map index a9cc028b..06fd15f1 100644 --- a/packages/js/dist/utils.js.map +++ b/packages/js/dist/utils.js.map @@ -1 +1 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA8B;AAC9B,iDAAmC;AACnC,uCAAyB;AACzB,2CAA6B;AAC7B,qDAAuC;AACvC,0DAA+B;AAC/B,gDAAwB;AACxB,2CAAqC;AAGxB,QAAA,QAAQ,GAAG,iBAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAEzC,SAAgB,OAAO,CAAC,MAAc;IACpC,OAAO,iBAAI,CAAC,KAAK,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,QAAQ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O,CAAC,KAAK,QAAQ,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QAC5D,OAAO,iBAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACtB;IAED,OAAO,iBAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtB,CAAC;AAND,8BAMC"} \ No newline at end of file diff --git a/packages/js/src/jsonrpc.ts b/packages/js/src/jsonrpc.ts index efa7414f..e352f58f 100644 --- a/packages/js/src/jsonrpc.ts +++ b/packages/js/src/jsonrpc.ts @@ -1,5 +1,6 @@ // eslint-disable unicorn/no-object-as-default-parameter import {Buffer} from 'buffer'; +import process from 'process'; import {NEAR} from 'near-units'; import {stringifyJsonOrBytes} from 'near-api-js/lib/transaction'; import {Records} from './record'; @@ -29,8 +30,8 @@ export class JsonRpcProvider extends JSONRpc { static fromNetwork(network: Network): JsonRpcProvider { switch (network) { - case 'mainnet': return process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL? JsonRpcProvider.from(process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) : MainnetRpc; - case 'testnet': return process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL? JsonRpcProvider.from(process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) : TestnetRpc; + case 'mainnet': return process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL ? JsonRpcProvider.from(process.env.NEAR_CLI_MAINNET_RPC_SERVER_URL) : MainnetRpc; + case 'testnet': return process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL ? JsonRpcProvider.from(process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) : TestnetRpc; default: throw new TypeError('Invalid network only mainnet or testnet'); } } diff --git a/packages/js/src/transaction.ts b/packages/js/src/transaction.ts index b7780387..2d8e04fa 100644 --- a/packages/js/src/transaction.ts +++ b/packages/js/src/transaction.ts @@ -80,6 +80,7 @@ export abstract class Transaction { methodName: string, args: Record | Uint8Array, { + // @typescript-eslint/no-unsafe-assignment gas = DEFAULT_FUNCTION_CALL_GAS, attachedDeposit = NO_DEPOSIT, }: {gas?: BN | string; attachedDeposit?: BN | string} = {}, diff --git a/packages/js/src/utils.ts b/packages/js/src/utils.ts index 706d58e7..3dd5a7d3 100644 --- a/packages/js/src/utils.ts +++ b/packages/js/src/utils.ts @@ -63,6 +63,7 @@ function configFromDomain(network: 'testnet' | 'mainnet'): ClientConfig { } else if (network === 'testnet' && process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL) { rpcAddr = process.env.NEAR_CLI_TESTNET_RPC_SERVER_URL; } + return { network, rpcAddr,