Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Betanet0829 #3040

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
42a5799
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Jul 26, 2024
e45286c
Merge branch 'master' of https://github.com/ecadlabs/taquito
hui-an-yang Aug 29, 2024
d158d52
add betanet0829 protocol hash and chainID
hui-an-yang Aug 29, 2024
3af295e
test: configured integration test run on betanet0829
hui-an-yang Aug 29, 2024
eabe38d
test: update integration-test files for betanet
hui-an-yang Aug 30, 2024
b17eab1
ci: update betanet script name
hui-an-yang Sep 6, 2024
592ae27
Merge branch 'master' of https://github.com/ecadlabs/taquito into bet…
hui-an-yang Sep 6, 2024
cd127ce
feat: add ConstantsResponseProto021 to ConstantsResponse
hui-an-yang Sep 6, 2024
2ccc4ee
feat: removed endorsement compatiblity but kept rpc types and readPro…
hui-an-yang Sep 6, 2024
5eb8e6e
feat: getPendingOperations add param source and operationHash and rem…
hui-an-yang Sep 6, 2024
9d0ea10
Merge branch 'master' of https://github.com/ecadlabs/taquito into bet…
hui-an-yang Sep 6, 2024
0b84f10
test: update estimation-tests assertion
hui-an-yang Sep 6, 2024
38f286a
test: improve failing-noop and staking tests
hui-an-yang Sep 9, 2024
1cd66b4
feat: add getSpendable rpc endpoint
hui-an-yang Sep 9, 2024
750fe59
feat: add getBalanceAndFrozenBonds and getSpendableAndFrozenBonds rpc…
hui-an-yang Sep 9, 2024
4bb8341
docs: update rpc nodes doc
hui-an-yang Sep 9, 2024
d7a21e0
test: update estimation-tests assertion
hui-an-yang Sep 9, 2024
f3246bd
test: update estimation-tests assertion
hui-an-yang Sep 9, 2024
fefa6ea
Merge branch 'master' of https://github.com/ecadlabs/taquito into bet…
hui-an-yang Sep 19, 2024
4495c2e
ci: updated ci script with rpc_url
hui-an-yang Sep 19, 2024
a84eebd
test: updated testing for weeklynet
hui-an-yang Sep 20, 2024
89be44e
Merge branch 'master' of https://github.com/ecadlabs/taquito into bet…
hui-an-yang Oct 17, 2024
461b41f
Merge branch 'master' of https://github.com/ecadlabs/taquito into bet…
hui-an-yang Nov 13, 2024
203a9c3
test: imporved staking tests
hui-an-yang Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
include:
- testnet: parisnet
testnet_uppercase: PARISNET
rpc_url: https://parisnet.ecadinfra.com
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -58,7 +59,32 @@ jobs:
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
version: 1.32.2
- run: npm -w integration-tests run test:${{ matrix.testnet }} -- --maxWorkers=4
- id: run-tests
run: npm -w integration-tests run test:${{ matrix.testnet }} -- --maxWorkers=4
env:
# Ternary operator workaround
TEZOS_RPC_${{ matrix.testnet_uppercase }}: ${{ github.event.pull_request.head.repo.fork && format('https://{0}.ecadinfra.com', matrix.testnet) || null }}
TEZOS_RPC_${{ matrix.testnet_uppercase }}: ${{ github.event.pull_request.head.repo.fork && matrix.rpc_url || null }}
integration-tests-testnet-quebecA-secret-key:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
include:
- testnet: betanet
testnet_uppercase: BETANET
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/hydrogen
- run: npm ci
- run: npm run build
- if: ${{ !github.event.pull_request.head.repo.fork }}
name: Tailscale
uses: tailscale/github-action@v1
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
version: 1.32.2
- run: npm -w integration-tests run test:betanet-secret-key
env:
RUN_${{ matrix.testnet_uppercase }}_WITH_SECRET_KEY: true
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"b58cdecode",
"b58cencode",
"beaconwallet",
"BETANET",
"bigmap",
"BIGMAPCONTRACT",
"bigmaps",
Expand Down
2 changes: 1 addition & 1 deletion docs/consensus_key.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Consensus Keys
author: Davis Sawali & Hui-An Yang
---

The "consensus key" feature allows bakers to use a different key, called the consensus key. It will allow for baking and signing consensus operations (i.e. preattestation/preendorsements and attestation/endorsements). For more detailed information on consensus keys, refer to [this documentation](https://tezos.gitlab.io/protocols/015_lima.html?highlight=update%20consensus%20key#consensus-key)
The "consensus key" feature allows bakers to use a different key, called the consensus key. It will allow for baking and signing consensus operations (i.e. preattestation and attestation). For more detailed information on consensus keys, refer to [this documentation](https://tezos.gitlab.io/protocols/015_lima.html?highlight=update%20consensus%20key#consensus-key)

Starting from Lima protocol, these 2 new operations will be available:

Expand Down
106 changes: 53 additions & 53 deletions docs/rpc_nodes_integration_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ Remove `./rpc-nodes.spec.ts` from `"testPathIgnorePatterns"` in the package.json
✓ 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 v1 will retrieve the pending operations in mempool with property applied (397 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/
```
Expand All @@ -72,56 +71,57 @@ Remove `./rpc-nodes.spec.ts` from `"testPathIgnorePatterns"` in the package.json

```
Test calling all methods from RPC node: http://localhost:20000
✓ Verify that rpcClient.getBlockHash returns the head block hash (13 ms)
✓ Verify that rpcClient.getLiveBlocks returns the ancestors of the head block (18 ms)
✓ Verify that rpcClient.getBalance for knownBaker returns the spendable balance excluding frozen bonds (13 ms)
✓ Verify that rpcClient.getFullBalance for knownBaker returns the full balance (8 ms)
✓ Verify that rpcClient.getStakedBalance for knownBaker returns the staked balance (10 ms)
✓ Verify that rpcClient.getUnstakedFinalizableBalance for knownBaker returns the unstaked finalizable balance (11 ms)
✓ Verify that rpcClient.getUnstakedFrozenBalance for knownBaker returns the unstaked frozen balance (7 ms)
✓ Verify that rpcClient.getUnstakeRequests for knownBaker returns the unstaked requests (8 ms)
✓ Verify that rpcClient.getStorage for knownContract returns the data of a contract (10 ms)
✓ Verify that rpcClient.getScript for know contract returns the code and data of a contract (11 ms)
✓ Verify that rpcClient.getNormalizedScript for known contract returns the script of the contract and normalize it using the requested unparsing mode (15 ms)
✓ Verify that rpcClient.getContract returns the complete status of a contract (12 ms)
✓ Verify that rpcClient.getManagerKey for known baker returns the manager key of the contract (11 ms)
✓ Verify that rpcClient.getDelegate for known baker returns the delegate of the contract (8 ms)
✓ Verify that rpcClient.getBigMapExpr for encoded expression returns the value associated with a key in a big map (93 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 (10 ms)
✓ Verify that rpc.getVotingInfo for known baker returns voting information about a delegate from RPC (7 ms)
✓ Verify that rpcClient.getConstants returns all constants from RPC (10 ms)
✓ Verify that rpcClient.getBlock returns all the information about a block (10 ms)
✓ Verify that rpcClient.getBlockHeader returns whole block header (9 ms)
✓ Verify that rpcClient.getBlockMetadata returns all metadata associated to the block (6 ms)
✓ Verify that rpcClient.getBakingRights retrieves the list of delegates allowed to bake a block (12 ms)
✓ Verify that rpcClient.getAttestationRights retrieves the list of delegates allowed to attest a block (11 ms)
✓ Verify that rpcClient.getBallotList returns ballots casted so far during a voting period (6 ms)
✓ Verify that rpcClient.getBallots returns sum of ballots casted so far during a voting period (5 ms)
✓ Verify that rpcClient.getCurrentPeriod returns current period kind (6 ms)
✓ Verify that rpcClient.getCurrentProposal returns current proposal under evaluation (7 ms)
✓ Verify that rpcClient.getCurrentQuorum returns current expected quorum (8 ms)
✓ Verify that rpcClient.getVotesListings returns list of delegates with their voting weight, in number of rolls (7 ms)
✓ Verify that rpcClient.getProposals returns list of proposals with number of supporters (6 ms)
✓ Verify that rpcClient.forgeOperations forges an operation and returns the unsigned bytes (13 ms)
✓ Verify that rpcClient.injectOperation injects an operation in node and broadcast it (7 ms)
✓ Verify that rpcClient.preapplyOperations simulates the validation of an operation (29 ms)
✓ Verify that rpcClient.getEntrypoints for known contract returns list of entrypoints of the contract (21 ms)
✓ Verify that rpcClient.getChainId returns chain ID (6 ms)
✓ Verify that rpcClient.runOperation runs an operation without signature checks (13 ms)
✓ Verify that rpcClient.simulateOperation simulates an operation without signature checks (13 ms)
✓ Verify that rpcClient.runView executes tzip4 views (27 ms)
✓ Verify that rpcClient.runScriptView executes michelson view (22 ms)
✓ Verify that rpcClient.getSuccessorPeriod will get the voting period of next block (7 ms)
✓ Verify that rpcClient.getSaplingDiffById will access the value associated with a sapling state ID (17 ms)
✓ Verify that rpcClient.getSaplingDiffByContract will access the value associated with a sapling state (9 ms)
✓ Verify that rpcClient.getProtocols will list past and present Tezos protocols (6 ms)
✓ Verify that rpcClient.getStorageUsedSpace will retrieve the used space of a contract storage (8 ms)
✓ Verify that rpcClient.getStoragePaidSpace will retrieve the paid space of a contract storage (7 ms)
✓ Verify that rpcClient.ticketBalance will retrieve the specified ticket owned by the given contract (7 ms)
✓ Verify that rpcClient.allTicketBalances will retrieve all tickets owned by the given contract (10 ms)
✓ Verify that rpcClient.getAdaptiveIssuanceLaunchCycle will retrieve launch cycle null for http://localhost:20000 (6 ms)
✓ Verify that rpcClient.getPendingOperations v1 will retrieve the pending operations in mempool with property applied (313 ms)
✓ Verify that rpcClient.getPendingOperations v2 will retrieve the pending operations in mempool with property validated (323 ms)
○ skipped Verify that rpcClient.getAdaptiveIssuanceLaunchCycle will retrieve launch cycle 6 for 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)
```
6 changes: 1 addition & 5 deletions example/example-streamer-custom-retry-logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,12 @@ async function example() {
and: [{ source: 'tz2TSvNTh2epDMhZHrw73nV9piBX7kLZ9K9m' }, { kind: 'attestation' }]
}

const bakerEndorsementFilter = {
and: [{ source: 'tz2TSvNTh2epDMhZHrw73nV9piBX7kLZ9K9m' }, { kind: 'endorsement' }]
}

const bakerDelegation = {
and: [{ destination: 'tz2TSvNTh2epDMhZHrw73nV9piBX7kLZ9K9m' }, { kind: 'delegation' }]
}

tezos.stream.subscribeOperation({
or: [bakerAttestationFilter, bakerEndorsementFilter, bakerDelegation]
or: [bakerAttestationFilter, bakerDelegation]
})
}

Expand Down
6 changes: 1 addition & 5 deletions example/example-streamer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@ async function example() {
and: [{ source: 'tz1bQMn5xYFbX6geRxqvuAiTywsCtNywawxH' }, { kind: 'attestation' }]
}

const bakerEndorsementFilter = {
and: [{ source: 'tz1bQMn5xYFbX6geRxqvuAiTywsCtNywawxH' }, { kind: 'endorsement' }]
}

const bakerDelegation = {
and: [{ destination: 'tz1bQMn5xYFbX6geRxqvuAiTywsCtNywawxH' }, { kind: 'delegation' }]
}

const sub = tezos.stream.subscribeOperation({
or: [bakerAttestationFilter, bakerEndorsementFilter, bakerDelegation]
or: [bakerAttestationFilter, bakerDelegation]
})

sub.on('data', console.log)
Expand Down
Loading
Loading