From f2a188d2e724e98a0c69eb7d632bbabde08e0053 Mon Sep 17 00:00:00 2001 From: huianyang Date: Thu, 14 Nov 2024 12:54:50 -0800 Subject: [PATCH] docs: updated palces with qena --- apps/taquito-test-dapp/src/App.svelte | 4 + apps/taquito-test-dapp/src/config.ts | 6 +- docs/rpc_nodes.md | 4 +- docs/rpc_nodes_integration_test.md | 216 ++++++++++--------- docs/wallet_API.md | 4 +- example/test.ts | 25 +++ packages/taquito-wallet-connect/src/types.ts | 2 +- 7 files changed, 149 insertions(+), 112 deletions(-) create mode 100644 example/test.ts diff --git a/apps/taquito-test-dapp/src/App.svelte b/apps/taquito-test-dapp/src/App.svelte index f1e75b5ab6..f39519378f 100644 --- a/apps/taquito-test-dapp/src/App.svelte +++ b/apps/taquito-test-dapp/src/App.svelte @@ -14,6 +14,7 @@ let availableNetworks = [ { value: "ghostnet", label: "Ghostnet", group: "current testnets" }, { value: "parisnet", label: "Parisnet", group: "current testnets" }, + // { value: "qenanet", label: "Qenanet", group: "current testnets" }, { value: "mainnet", label: "Mainnet", group: "mainnet" }, { value: "dailynet", label: "Dailynet", group: "other testnets" }, { value: "weeklynet", label: "Weeklynet", group: "other testnets" }, @@ -42,6 +43,9 @@ case "parisnet": store.updateNetworkType(NetworkType.PARISNET); break; + // case "qenanet": + // store.updateNetworkType(NetworkType.QENANET); + // break; case "custom": //TODO: input custom RPC URL showCustomNetworkInput = true; diff --git a/apps/taquito-test-dapp/src/config.ts b/apps/taquito-test-dapp/src/config.ts index 42cbec828e..ac1d84c25d 100644 --- a/apps/taquito-test-dapp/src/config.ts +++ b/apps/taquito-test-dapp/src/config.ts @@ -1,12 +1,13 @@ import { NetworkType as NetworkTypeBeacon } from "@airgap/beacon-sdk"; import { NetworkType as NetworkTypeWc } from "@taquito/wallet-connect"; -export type SupportedNetworks = NetworkTypeBeacon.MAINNET | NetworkTypeBeacon.GHOSTNET | NetworkTypeBeacon.PARISNET | NetworkTypeWc.MAINNET | NetworkTypeWc.GHOSTNET | NetworkTypeWc.PARISNET | NetworkTypeBeacon.CUSTOM; +export type SupportedNetworks = NetworkTypeBeacon.MAINNET | NetworkTypeBeacon.GHOSTNET | NetworkTypeBeacon.PARISNET | NetworkTypeWc.MAINNET | NetworkTypeWc.GHOSTNET | NetworkTypeWc.PARISNET | NetworkTypeBeacon.CUSTOM // | NetworkTypeBeacon.QENANET | NetworkTypeWc.QENANET; const rpcUrls: Record = { [NetworkTypeBeacon.MAINNET]: "https://mainnet.ecadinfra.com", [NetworkTypeBeacon.GHOSTNET]: "https://ghostnet.ecadinfra.com/", [NetworkTypeBeacon.PARISNET]: "https://rpc.pariscnet.teztnets.com/", + // [NetworkTypeBeacon.QENANET]: "https://rpc.qenacnet.teztnets.com/", [NetworkTypeBeacon.CUSTOM]: "https://ghostnet.ecadinfra.com/", }; @@ -25,6 +26,9 @@ export const getTzKtUrl = (networkType: SupportedNetworks): string | undefined = case NetworkTypeBeacon.PARISNET: case NetworkTypeWc.PARISNET: return "https://parisnet.tzkt.io"; + // case NetworkTypeBeacon.QENANET: + // case NetworkTypeWc.QENANET: + // return "https://qenanet.tzkt.io"; case NetworkTypeBeacon.CUSTOM: return undefined; } diff --git a/docs/rpc_nodes.md b/docs/rpc_nodes.md index 3f361e2fc9..b9ac2faf9a 100644 --- a/docs/rpc_nodes.md +++ b/docs/rpc_nodes.md @@ -29,7 +29,9 @@ values={[ | SmartPy | Ghostnet | https://ghostnet.smartpy.io | [Check](https://ghostnet.smartpy.io/chains/main/blocks/head/header) | | Tezos Foundation | Mainnet | https://rpc.tzbeta.net/ | [Check](https://rpc.tzbeta.net/chains/main/blocks/head/header) | | Tezos Foundation | Ghostnet | https://rpc.ghostnet.teztnets.com/ | [Check](https://rpc.ghostnet.teztnets.com/chains/main/blocks/head/header) | -| Tezos Foundation | Parisnet | https://rpc.pariscnet.teztnets.com/ | [Check](https://rpc.pariscnet.teztnets.com/chains/main/blocks/head/header) | +| Tezos Foundation | Parisnet | https://rpc.pariscnet.teztnets.com/ | [Check](https://rpc.pariscnet.teztnets.com/chains/main/blocks/head/header) | +| Tezos Foundation | Qenanet | https://rpc.qenanet.teztnets.com/ | [Check](https://rpc.qenanet.teztnets.com/chains/main/blocks/head/header) | + *If you are aware of a public node missing from our list or our information is inaccurate, please help us by submitting an issue or pull request on our GitHub page.* diff --git a/docs/rpc_nodes_integration_test.md b/docs/rpc_nodes_integration_test.md index 5ded3a746a..f77351a054 100644 --- a/docs/rpc_nodes_integration_test.md +++ b/docs/rpc_nodes_integration_test.md @@ -6,122 +6,124 @@ author: Roxane Letourneau ## Steps to run the tests 1. The RPC nodes' integration tests are disabled by default. -Remove `./rpc-nodes.spec.ts` from `"testPathIgnorePatterns"` in the package.json. +Remove `__tests__/rpc/nodes.spec.ts` from `"testPathIgnorePatterns"` in the package.json. - **parisnet**: `npm run test:parisnet rpc-nodes.spec.ts` + **qenanet**: `npm run test:qenanet __tests__/rpc/nodes.spec.ts` **When all endpoints are accessible for a node, you will obtain:** ``` - Test calling all methods from RPC node: http://parisnet.i.ecadinfra.com:8732/ - ✓ Verify that rpcClient.getBlockHash returns the head block hash (37 ms) - ✓ Verify that rpcClient.getLiveBlocks returns the ancestors of the head block (53 ms) - ✓ Verify that rpcClient.getBalance for knownBaker returns the spendable balance excluding frozen bonds (32 ms) - ✓ Verify that rpcClient.getFullBalance for knownBaker returns the spendable balance excluding frozen bonds (37 ms) - ✓ Verify that rpcClient.getStakedBalance for knownBaker returns the spendable balance excluding frozen bonds (34 ms) - ✓ Verify that rpcClient.getUnstakedFinalizableBalance for knownBaker returns the spendable balance excluding frozen bonds (37 ms) - ✓ Verify that rpcClient.getUnstakedFrozenBalance for knownBaker returns the spendable balance excluding frozen bonds (33 ms) - ✓ Verify that rpcClient.getUnstakeRequests for knownBaker returns the spendable balance excluding frozen bonds (29 ms) - ✓ Verify that rpcClient.getStorage for knownContract returns the data of a contract (35 ms) - ✓ Verify that rpcClient.getScript for know contract returns the code and data of a contract (33 ms) - ✓ Verify that rpcClient.getNormalizedScript for known contract returns the script of the contract and normalize it using the requested unparsing mode (30 ms) - ✓ Verify that rpcClient.getContract returns the complete status of a contract (30 ms) - ✓ Verify that rpcClient.getManagerKey for known baker returns the manager key of the contract (30 ms) - ✓ Verify that rpcClient.getDelegate for known baker returns the delegate of the contract (30 ms) - ✓ Verify that rpcClient.getBigMapExpr for encoded expression returns the value associated with a key in a big map (151 ms) - ✓ Verify that rpcClient.getAllDelegates returns all delegates from RPC (132 ms) - ✓ Verify that rpcClient.getDelegates for known baker returns information about a delegate from RPC (32 ms) - ✓ Verify that rpc.getVotingInfo for known baker returns voting information about a delegate from RPC (30 ms) - ✓ Verify that rpcClient.getConstants returns all constants from RPC (33 ms) - ✓ Verify that rpcClient.getBlock returns all the information about a block (46 ms) - ✓ Verify that rpcClient.getBlockHeader returns whole block header (34 ms) - ✓ Verify that rpcClient.getBlockMetadata returns all metadata associated to the block (33 ms) - ✓ Verify that rpcClient.getBakingRights retrieves the list of delegates allowed to bake a block (38 ms) - ✓ Verify that rpcClient.getAttestationRights retrieves the list of delegates allowed to attest a block (41 ms) - ✓ Verify that rpcClient.getBallotList returns ballots casted so far during a voting period (30 ms) - ✓ Verify that rpcClient.getBallots returns sum of ballots casted so far during a voting period (29 ms) - ✓ Verify that rpcClient.getCurrentPeriod returns current period kind (30 ms) - ✓ Verify that rpcClient.getCurrentProposal returns current proposal under evaluation (32 ms) - ✓ Verify that rpcClient.getCurrentQuorum returns current expected quorum (34 ms) - ✓ Verify that rpcClient.getVotesListings returns list of delegates with their voting weight, in number of rolls (32 ms) - ✓ Verify that rpcClient.getProposals returns list of proposals with number of supporters (34 ms) - ✓ Verify that rpcClient.forgeOperations forges an operation and returns the unsigned bytes (38 ms) - ✓ Verify that rpcClient.injectOperation injects an operation in node and broadcast it (28 ms) - ✓ Verify that rpcClient.preapplyOperations simulates the validation of an operation (104 ms) - ✓ Verify that rpcClient.getEntrypoints for known contract returns list of entrypoints of the contract (28 ms) - ✓ Verify that rpcClient.getChainId returns chain ID (44 ms) - ✓ Verify that rpcClient.runOperation runs an operation without signature checks (33 ms) - ✓ Verify that rpcClient.simulateOperation simulates an operation without signature checks (35 ms) - ✓ Verify that rpcClient.runView executes tzip4 views (64 ms) - ✓ Verify that rpcClient.runScriptView executes michelson view (60 ms) - ✓ Verify that rpcClient.getSuccessorPeriod will get the voting period of next block (29 ms) - ✓ Verify that rpcClient.getSaplingDiffById will access the value associated with a sapling state ID (64 ms) - ✓ Verify that rpcClient.getSaplingDiffByContract will access the value associated with a sapling state (33 ms) - ✓ Verify that rpcClient.getProtocols will list past and present Tezos protocols (32 ms) - ✓ Verify that rpcClient.getStorageUsedSpace will retrieve the used space of a contract storage (30 ms) - ✓ Verify that rpcClient.getStoragePaidSpace will retrieve the paid space of a contract storage (29 ms) - ✓ Verify that rpcClient.ticketBalance will retrieve the specified ticket owned by the given contract (28 ms) - ✓ Verify that rpcClient.allTicketBalances will retrieve all tickets owned by the given contract (39 ms) - ✓ Verify that rpcClient.getAdaptiveIssuanceLaunchCycle will retrieve launch cycle 6 for http://parisnet.i.ecadinfra.com:8732/ (29 ms) - ✓ Verify that rpcClient.getPendingOperations v2 will retrieve the pending operations in mempool with property validated (470 ms) - ○ skipped Verify that rpcClient.getAdaptiveIssuanceLaunchCycle will retrieve launch cycle null for http://parisnet.i.ecadinfra.com:8732/ + Test calling all methods from RPC node: https://rpc.qenanet.teztnets.com + ✓ Verify that rpcClient.getBlockHash returns the head block hash (50 ms) + ✓ Verify that rpcClient.getLiveBlocks returns the ancestors of the head block (51 ms) + ✓ Verify that rpcClient.getBalance for knownBaker returns the spendable balance excluding frozen bonds (51 ms) + ✓ Verify that rpcClient.getSpendable for knownBaker returns the spendable balance excluding frozen bonds (49 ms) + ✓ Verify that rpcClient.getBalanceAndFrozenBonds for knownBaker returns the full balance (51 ms) + ✓ Verify that rpcClient.getSpendableAndFrozenBonds for knownBaker returns the full balance (50 ms) + ✓ Verify that rpcClient.getFullBalance for knownBaker returns the full balance (51 ms) + ✓ Verify that rpcClient.getStakedBalance for knownBaker returns the staked balance (49 ms) + ✓ Verify that rpcClient.getUnstakedFinalizableBalance for knownBaker returns the unstaked finalizable balance (55 ms) + ✓ Verify that rpcClient.getUnstakedFrozenBalance for knownBaker returns the unstaked frozen balance (49 ms) + ✓ Verify that rpcClient.getUnstakeRequests for knownBaker returns the unstaked requests (48 ms) + ✓ Verify that rpcClient.getStorage for knownContract returns the data of a contract (50 ms) + ✓ Verify that rpcClient.getScript for know contract returns the code and data of a contract (51 ms) + ✓ Verify that rpcClient.getNormalizedScript for known contract returns the script of the contract and normalize it using the requested unparsing mode (53 ms) + ✓ Verify that rpcClient.getContract returns the complete status of a contract (52 ms) + ✓ Verify that rpcClient.getManagerKey for known baker returns the manager key of the contract (49 ms) + ✓ Verify that rpcClient.getDelegate for known baker returns the delegate of the contract (49 ms) + ✓ Verify that rpcClient.getBigMapExpr for encoded expression returns the value associated with a key in a big map (202 ms) + ✓ Verify that rpcClient.getAllDelegates returns all delegates from RPC (97 ms) + ✓ Verify that rpcClient.getDelegates for known baker returns information about a delegate from RPC (51 ms) + ✓ Verify that rpc.getVotingInfo for known baker returns voting information about a delegate from RPC (53 ms) + ✓ Verify that rpcClient.getConstants returns all constants from RPC (50 ms) + ✓ Verify that rpcClient.getBlock returns all the information about a block (50 ms) + ✓ Verify that rpcClient.getBlockHeader returns whole block header (48 ms) + ✓ Verify that rpcClient.getBlockMetadata returns all metadata associated to the block (48 ms) + ✓ Verify that rpcClient.getBakingRights retrieves the list of delegates allowed to bake a block (48 ms) + ✓ Verify that rpcClient.getAttestationRights retrieves the list of delegates allowed to attest a block (60 ms) + ✓ Verify that rpcClient.getBallotList returns ballots casted so far during a voting period (49 ms) + ✓ Verify that rpcClient.getBallots returns sum of ballots casted so far during a voting period (50 ms) + ✓ Verify that rpcClient.getCurrentPeriod returns current period kind (50 ms) + ✓ Verify that rpcClient.getCurrentProposal returns current proposal under evaluation (49 ms) + ✓ Verify that rpcClient.getCurrentQuorum returns current expected quorum (49 ms) + ✓ Verify that rpcClient.getVotesListings returns list of delegates with their voting weight, in number of rolls (49 ms) + ✓ Verify that rpcClient.getProposals returns list of proposals with number of supporters (49 ms) + ✓ Verify that rpcClient.forgeOperations forges an operation and returns the unsigned bytes (50 ms) + ✓ Verify that rpcClient.injectOperation injects an operation in node and broadcast it (48 ms) + ✓ Verify that rpcClient.preapplyOperations simulates the validation of an operation (115 ms) + ✓ Verify that rpcClient.getEntrypoints for known contract returns list of entrypoints of the contract (51 ms) + ✓ Verify that rpcClient.getChainId returns chain ID (49 ms) + ✓ Verify that rpcClient.runOperation runs an operation without signature checks (51 ms) + ✓ Verify that rpcClient.simulateOperation simulates an operation without signature checks (51 ms) + ✓ Verify that rpcClient.runView executes tzip4 views (101 ms) + ✓ Verify that rpcClient.runScriptView executes michelson view (115 ms) + ✓ Verify that rpcClient.getSuccessorPeriod will get the voting period of next block (48 ms) + ✓ Verify that rpcClient.getSaplingDiffById will access the value associated with a sapling state ID (97 ms) + ✓ Verify that rpcClient.getSaplingDiffByContract will access the value associated with a sapling state (50 ms) + ✓ Verify that rpcClient.getProtocols will list past and present Tezos protocols (47 ms) + ✓ Verify that rpcClient.getStorageUsedSpace will retrieve the used space of a contract storage (49 ms) + ✓ Verify that rpcClient.getStoragePaidSpace will retrieve the paid space of a contract storage (47 ms) + ✓ Verify that rpcClient.ticketBalance will retrieve the specified ticket owned by the given contract (48 ms) + ✓ Verify that rpcClient.allTicketBalances will retrieve all tickets owned by the given contract (50 ms) + ✓ Verify that rpcClient.getAdaptiveIssuanceLaunchCycle will retrieve launch cycle 6 for https://rpc.qenanet.teztnets.com (51 ms) + ✓ Verify that rpcClient.getPendingOperations v2 will retrieve the pending operations in mempool with property validated (265 ms) ``` **Otherwise, you will see which endpoints do not work for a specific node:** ``` Test calling all methods from RPC node: http://localhost:20000 - ✓ Verify that rpcClient.getBlockHash returns the head block hash (99 ms) - ✓ Verify that rpcClient.getLiveBlocks returns the ancestors of the head block (61 ms) - ✓ Verify that rpcClient.getBalance for knownBaker returns the spendable balance excluding frozen bonds (59 ms) - ✓ Verify that rpcClient.getSpendable for knownBaker returns the spendable balance excluding frozen bonds (96 ms) - ✓ Verify that rpcClient.getBalanceAndFrozenBonds for knownBaker returns the full balance (54 ms) - ✓ Verify that rpcClient.getSpendableAndFrozenBonds for knownBaker returns the full balance (53 ms) - ✓ Verify that rpcClient.getFullBalance for knownBaker returns the full balance (55 ms) - ✓ Verify that rpcClient.getStakedBalance for knownBaker returns the staked balance (60 ms) - ✓ Verify that rpcClient.getUnstakedFinalizableBalance for knownBaker returns the unstaked finalizable balance (53 ms) - ✓ Verify that rpcClient.getUnstakedFrozenBalance for knownBaker returns the unstaked frozen balance (52 ms) - ✓ Verify that rpcClient.getUnstakeRequests for knownBaker returns the unstaked requests (52 ms) - ✓ Verify that rpcClient.getStorage for knownContract returns the data of a contract (54 ms) - ✓ Verify that rpcClient.getScript for know contract returns the code and data of a contract (56 ms) - ✓ Verify that rpcClient.getNormalizedScript for known contract returns the script of the contract and normalize it using the requested unparsing mode (55 ms) - ✓ Verify that rpcClient.getContract returns the complete status of a contract (56 ms) - ✓ Verify that rpcClient.getManagerKey for known baker returns the manager key of the contract (52 ms) - ✓ Verify that rpcClient.getDelegate for known baker returns the delegate of the contract (53 ms) - ✓ Verify that rpcClient.getBigMapExpr for encoded expression returns the value associated with a key in a big map (288 ms) - ✓ Verify that rpcClient.getAllDelegates returns all delegates from RPC (107 ms) - ✓ Verify that rpcClient.getDelegates for known baker returns information about a delegate from RPC (55 ms) - ✓ Verify that rpc.getVotingInfo for known baker returns voting information about a delegate from RPC (57 ms) - ✓ Verify that rpcClient.getConstants returns all constants from RPC (70 ms) - ✓ Verify that rpcClient.getBlock returns all the information about a block (84 ms) - ✓ Verify that rpcClient.getBlockHeader returns whole block header (53 ms) - ✓ Verify that rpcClient.getBlockMetadata returns all metadata associated to the block (53 ms) - ✓ Verify that rpcClient.getBakingRights retrieves the list of delegates allowed to bake a block (62 ms) - ✓ Verify that rpcClient.getAttestationRights retrieves the list of delegates allowed to attest a block (61 ms) - ✓ Verify that rpcClient.getBallotList returns ballots casted so far during a voting period (53 ms) - ✓ Verify that rpcClient.getBallots returns sum of ballots casted so far during a voting period (54 ms) - ✓ Verify that rpcClient.getCurrentPeriod returns current period kind (52 ms) - ✓ Verify that rpcClient.getCurrentProposal returns current proposal under evaluation (61 ms) - ✓ Verify that rpcClient.getCurrentQuorum returns current expected quorum (52 ms) - ✓ Verify that rpcClient.getVotesListings returns list of delegates with their voting weight, in number of rolls (81 ms) - ✓ Verify that rpcClient.getProposals returns list of proposals with number of supporters (53 ms) - ✓ Verify that rpcClient.forgeOperations forges an operation and returns the unsigned bytes (59 ms) - ✓ Verify that rpcClient.injectOperation injects an operation in node and broadcast it (54 ms) - ✓ Verify that rpcClient.preapplyOperations simulates the validation of an operation (121 ms) - ✓ Verify that rpcClient.getEntrypoints for known contract returns list of entrypoints of the contract (56 ms) - ✓ Verify that rpcClient.getChainId returns chain ID (53 ms) - ✓ Verify that rpcClient.runOperation runs an operation without signature checks (57 ms) - ✓ Verify that rpcClient.simulateOperation simulates an operation without signature checks (58 ms) - ✓ Verify that rpcClient.runView executes tzip4 views (116 ms) - ✓ Verify that rpcClient.runScriptView executes michelson view (140 ms) - ✓ Verify that rpcClient.getSuccessorPeriod will get the voting period of next block (88 ms) - ✓ Verify that rpcClient.getSaplingDiffById will access the value associated with a sapling state ID (158 ms) - ✓ Verify that rpcClient.getSaplingDiffByContract will access the value associated with a sapling state (56 ms) - ✓ Verify that rpcClient.getProtocols will list past and present Tezos protocols (82 ms) - ✓ Verify that rpcClient.getStorageUsedSpace will retrieve the used space of a contract storage (52 ms) - ✓ Verify that rpcClient.getStoragePaidSpace will retrieve the paid space of a contract storage (55 ms) - ✓ Verify that rpcClient.ticketBalance will retrieve the specified ticket owned by the given contract (55 ms) - ✓ Verify that rpcClient.allTicketBalances will retrieve all tickets owned by the given contract (56 ms) - ✓ Verify that rpcClient.getAdaptiveIssuanceLaunchCycle will retrieve launch cycle 6 for https://rpc.betanet-2024-08-29.teztnets.com (52 ms) - ✓ Verify that rpcClient.getPendingOperations v2 will retrieve the pending operations in mempool with property validated (281 ms) + ✓ Verify that rpcClient.getBlockHash returns the head block hash (50 ms) + ✓ Verify that rpcClient.getLiveBlocks returns the ancestors of the head block (51 ms) + ✓ Verify that rpcClient.getBalance for knownBaker returns the spendable balance excluding frozen bonds (51 ms) + ✓ Verify that rpcClient.getSpendable for knownBaker returns the spendable balance excluding frozen bonds (49 ms) + ✓ Verify that rpcClient.getBalanceAndFrozenBonds for knownBaker returns the full balance (51 ms) + ✓ Verify that rpcClient.getSpendableAndFrozenBonds for knownBaker returns the full balance (50 ms) + ✓ Verify that rpcClient.getFullBalance for knownBaker returns the full balance (51 ms) + ✓ Verify that rpcClient.getStakedBalance for knownBaker returns the staked balance (49 ms) + ✓ Verify that rpcClient.getUnstakedFinalizableBalance for knownBaker returns the unstaked finalizable balance (55 ms) + ✓ Verify that rpcClient.getUnstakedFrozenBalance for knownBaker returns the unstaked frozen balance (49 ms) + ✓ Verify that rpcClient.getUnstakeRequests for knownBaker returns the unstaked requests (48 ms) + ✓ Verify that rpcClient.getStorage for knownContract returns the data of a contract (50 ms) + ✓ Verify that rpcClient.getScript for know contract returns the code and data of a contract (51 ms) + ✓ Verify that rpcClient.getNormalizedScript for known contract returns the script of the contract and normalize it using the requested unparsing mode (53 ms) + ✓ Verify that rpcClient.getContract returns the complete status of a contract (52 ms) + ✓ Verify that rpcClient.getManagerKey for known baker returns the manager key of the contract (49 ms) + ✓ Verify that rpcClient.getDelegate for known baker returns the delegate of the contract (49 ms) + ✓ Verify that rpcClient.getBigMapExpr for encoded expression returns the value associated with a key in a big map (202 ms) + ✓ Verify that rpcClient.getAllDelegates returns all delegates from RPC (97 ms) + ✓ Verify that rpcClient.getDelegates for known baker returns information about a delegate from RPC (51 ms) + ✓ Verify that rpc.getVotingInfo for known baker returns voting information about a delegate from RPC (53 ms) + ✓ Verify that rpcClient.getConstants returns all constants from RPC (50 ms) + ✓ Verify that rpcClient.getBlock returns all the information about a block (50 ms) + ✓ Verify that rpcClient.getBlockHeader returns whole block header (48 ms) + ✓ Verify that rpcClient.getBlockMetadata returns all metadata associated to the block (48 ms) + ✓ Verify that rpcClient.getBakingRights retrieves the list of delegates allowed to bake a block (48 ms) + ✓ Verify that rpcClient.getAttestationRights retrieves the list of delegates allowed to attest a block (60 ms) + ✓ Verify that rpcClient.getBallotList returns ballots casted so far during a voting period (49 ms) + ✓ Verify that rpcClient.getBallots returns sum of ballots casted so far during a voting period (50 ms) + ✓ Verify that rpcClient.getCurrentPeriod returns current period kind (50 ms) + ✓ Verify that rpcClient.getCurrentProposal returns current proposal under evaluation (49 ms) + ✓ Verify that rpcClient.getCurrentQuorum returns current expected quorum (49 ms) + ✓ Verify that rpcClient.getVotesListings returns list of delegates with their voting weight, in number of rolls (49 ms) + ✓ Verify that rpcClient.getProposals returns list of proposals with number of supporters (49 ms) + ✓ Verify that rpcClient.forgeOperations forges an operation and returns the unsigned bytes (50 ms) + ✓ Verify that rpcClient.injectOperation injects an operation in node and broadcast it (48 ms) + ✓ Verify that rpcClient.preapplyOperations simulates the validation of an operation (115 ms) + ✓ Verify that rpcClient.getEntrypoints for known contract returns list of entrypoints of the contract (51 ms) + ✓ Verify that rpcClient.getChainId returns chain ID (49 ms) + ✓ Verify that rpcClient.runOperation runs an operation without signature checks (51 ms) + ✓ Verify that rpcClient.simulateOperation simulates an operation without signature checks (51 ms) + ✓ Verify that rpcClient.runView executes tzip4 views (101 ms) + ✓ Verify that rpcClient.runScriptView executes michelson view (115 ms) + ✓ Verify that rpcClient.getSuccessorPeriod will get the voting period of next block (48 ms) + ✓ Verify that rpcClient.getSaplingDiffById will access the value associated with a sapling state ID (97 ms) + ✓ Verify that rpcClient.getSaplingDiffByContract will access the value associated with a sapling state (50 ms) + ✓ Verify that rpcClient.getProtocols will list past and present Tezos protocols (47 ms) + ✓ Verify that rpcClient.getStorageUsedSpace will retrieve the used space of a contract storage (49 ms) + ✓ Verify that rpcClient.getStoragePaidSpace will retrieve the paid space of a contract storage (47 ms) + ✓ Verify that rpcClient.ticketBalance will retrieve the specified ticket owned by the given contract (48 ms) + ✓ Verify that rpcClient.allTicketBalances will retrieve all tickets owned by the given contract (50 ms) + ✓ Verify that rpcClient.getAdaptiveIssuanceLaunchCycle will retrieve launch cycle 6 for https://rpc.qenanet.teztnets.com (51 ms) + ✓ Verify that rpcClient.getPendingOperations v2 will retrieve the pending operations in mempool with property validated (265 ms) ``` \ No newline at end of file diff --git a/docs/wallet_API.md b/docs/wallet_API.md index f5b1111c05..1120dc952a 100644 --- a/docs/wallet_API.md +++ b/docs/wallet_API.md @@ -88,7 +88,7 @@ Please check out the section [Subscribing to events](#subscribing-to-events) to In previous versions of Beacon, you were able to set the `network` property when doing `requestPermissions()`. This behavior was removed from Beacon, and you must now set the network when instantiating the wallet. -You can choose among `mainnet`, `parisnet`, `ghostnet` and `custom` to set up the network. Once the permissions have been configured, you can get the user's address by calling the `getPKH` method on the wallet: +You can choose among `mainnet`, `qenanet`, `parisnet`, `ghostnet` and `custom` to set up the network. Once the permissions have been configured, you can get the user's address by calling the `getPKH` method on the wallet: ```js const userAddress = await wallet.getPKH(); @@ -175,7 +175,7 @@ const wallet = new TempleWallet('MyAwesomeDapp'); The class constructor takes one parameter, the name of your dapp (this will be used later in the transaction confirmation pop-up). After the instantiation, we can connect the wallet by calling the `connect` method: ```js -await wallet.connect('mainnet' | 'parisnet' | 'ghostnet' | 'mondaynet' | 'sandbox'); +await wallet.connect('mainnet' | 'qenanet' | 'parisnet' | 'ghostnet' | 'mondaynet' | 'sandbox'); ``` (Temple used to be called Thanos and some Taquito code still uses the name Thanos.) diff --git a/example/test.ts b/example/test.ts new file mode 100644 index 0000000000..7a6182480a --- /dev/null +++ b/example/test.ts @@ -0,0 +1,25 @@ +const { TezosToolkit } = require('@taquito/taquito') +const { InMemorySigner } = require('@taquito/signer') +let ghostnet = 'https://rpc.ghostnet.teztnets.com' +let parisnet = 'https://rpc.pariscnet.teztnets.com' +let quebecnet = 'https://rpc.quebecnet.teztnets.com' +let qenanet = 'https://rpc.qenanet.teztnets.com' + +run(qenanet) + +async function run(url: string) { + let Tezos = new TezosToolkit(url) + Tezos.setSignerProvider(new InMemorySigner('spsk21y52Cp943kGnqPBSjXMC2xf1hz8QDGGih7AJdFqhxPcm1ihRN')) // tz2RqxsYQyFuP9amsmrr25x9bUcBMWXGvjuD + + let delegates = await Tezos.rpc.getAllDelegates() + console.log(delegates) + for(let i = 0; i < delegates.length; i++) { + let delegate = delegates[i] + let res = await fetch(url + `/chains/main/blocks/head/context/delegates/${delegate}/active_staking_parameters`) + let active_staking_parameters = await res.json() + if (active_staking_parameters.limit_of_staking_over_baking_millionth > 0){ + console.log(delegate) + console.log(active_staking_parameters) + } + } +} diff --git a/packages/taquito-wallet-connect/src/types.ts b/packages/taquito-wallet-connect/src/types.ts index 29870c47bd..314314229a 100644 --- a/packages/taquito-wallet-connect/src/types.ts +++ b/packages/taquito-wallet-connect/src/types.ts @@ -22,7 +22,7 @@ export enum NetworkType { WEEKLYNET = 'weeklynet', OXFORDNET = 'oxfordnet', PARISNET = 'parisnet', - // QUEBECNET = 'quebecnet', + // QENANET = 'qenanet', } export interface PermissionScopeParam {