Skip to content

Commit

Permalink
Beacon v4.3.1 (#3087)
Browse files Browse the repository at this point in the history
* chore: upgrade beacon to v4.3.1

* test: mock @airgap/beacon-ui dependency

* chore: dependencies update to fix  vulnerabilities

* test: updated estimation assertions

* chore(releng) bump version to 20.1.1

* docs: udpated release note for v20.1.1
  • Loading branch information
hui-an-yang authored Dec 6, 2024
1 parent 9db9a95 commit 2a55d6f
Show file tree
Hide file tree
Showing 50 changed files with 981 additions and 633 deletions.
16 changes: 8 additions & 8 deletions apps/taquito-test-dapp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "taquito-test-dapp-vite",
"private": true,
"version": "20.1.0",
"version": "20.1.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -24,13 +24,13 @@
"vite": "^5.3.5"
},
"dependencies": {
"@airgap/beacon-sdk": "^4.2.2",
"@airgap/beacon-types": "^4.2.2",
"@taquito/beacon-wallet": "^20.1.0",
"@taquito/core": "^20.1.0",
"@taquito/taquito": "^20.1.0",
"@taquito/utils": "^20.1.0",
"@taquito/wallet-connect": "^20.1.0",
"@airgap/beacon-sdk": "^4.3.1",
"@airgap/beacon-types": "^4.3.1",
"@taquito/beacon-wallet": "^20.1.1",
"@taquito/core": "^20.1.1",
"@taquito/taquito": "^20.1.1",
"@taquito/utils": "^20.1.1",
"@taquito/wallet-connect": "^20.1.1",
"buffer": "^6.0.3",
"svelte-modals": "^2.0.0-beta.2",
"svelte-select": "^5.8.3",
Expand Down
31 changes: 31 additions & 0 deletions docs/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,37 @@ title: Versions
author: Jev Bjorsell
---

# Taquito v20.1.1
## Summary

### Beacon version Update
Updated Beacon version to v4.3.1 #3087

### ECAD Infra Tezos RPC addresses update
Updated network addresses for mainnet, ghostnet, parisnet, and quebecnet from Old format: https://${network_name}.ecadinfra.com to New format: https://${network_name}.tezos.ecadinfra.com #3090

- Mappings
Below are the mappings for the updated RPC addresses for all current networks:

Old Address | New Address
-- | --
https://mainnet.ecadinfra.com | https://mainnet.tezos.ecadinfra.com
https://ghostnet.ecadinfra.com | https://ghostnet.tezos.ecadinfra.com
https://parisnet.ecadinfra.com | https://parisnet.tezos.ecadinfra.com
https://quebecnet.ecadinfra.com | https://quebecnet.tezos.ecadinfra.com

- Action Required
Update all scripts, configurations, and codebases using the old RPC addresses to point to the new format.
Validate that your systems and services using these RPC endpoints continue to function as expected after the update.

- Deprecation Notice
The old addresses are considered deprecated, but will remain active until further notice. Users are strongly encouraged to transition to the new format as soon as possible to avoid potential disruptions in the future.

- Reference
For more information, visit [ECAD Infra's website](https://www.ecadinfra.com/).
--------
Please ensure your systems are updated promptly to avoid any disruptions. If you have any questions or encounter issues, feel free to contact the ECAD Infra team or open a new issue in this repository.

# Taquito v20.1.0

**Breaking changes:**
Expand Down
22 changes: 11 additions & 11 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@taquito/example",
"private": true,
"version": "20.1.0",
"version": "20.1.1",
"scripts": {
"example": "node -r ts-node/register --preserve-symlinks example-node.ts",
"example:activation": "node -r ts-node/register --preserve-symlinks example-activate.ts",
Expand Down Expand Up @@ -42,16 +42,16 @@
},
"dependencies": {
"@ledgerhq/hw-transport-node-hid": "^6.29.5",
"@taquito/ledger-signer": "^20.1.0",
"@taquito/local-forging": "^20.1.0",
"@taquito/michel-codec": "^20.1.0",
"@taquito/michelson-encoder": "^20.1.0",
"@taquito/rpc": "^20.1.0",
"@taquito/sapling": "^20.1.0",
"@taquito/signer": "^20.1.0",
"@taquito/taquito": "^20.1.0",
"@taquito/tzip16": "^20.1.0",
"@taquito/utils": "^20.1.0",
"@taquito/ledger-signer": "^20.1.1",
"@taquito/local-forging": "^20.1.1",
"@taquito/michel-codec": "^20.1.1",
"@taquito/michelson-encoder": "^20.1.1",
"@taquito/rpc": "^20.1.1",
"@taquito/sapling": "^20.1.1",
"@taquito/signer": "^20.1.1",
"@taquito/taquito": "^20.1.1",
"@taquito/tzip16": "^20.1.1",
"@taquito/utils": "^20.1.1",
"bignumber.js": "^9.1.2"
},
"devDependencies": {
Expand Down
72 changes: 36 additions & 36 deletions integration-tests/__tests__/contract/estimation-tests.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
const estimate = await LowAmountTez.estimate.transfer({ to: await Tezos.signer.publicKeyHash(), amount: 0.019 });
expect(estimate.gasLimit).toEqual(101);
expect(estimate.storageLimit).toEqual(0);
expect(estimate.suggestedFeeMutez).toEqual(188);
expect(estimate.suggestedFeeMutez).toEqual(190);
expect(estimate.burnFeeMutez).toEqual(0);
expect(estimate.minimalFeeMutez).toEqual(168);
expect(estimate.totalCost).toEqual(168);
expect(estimate.usingBaseFeeMutez).toEqual(168);
expect(estimate.minimalFeeMutez).toEqual(170);
expect(estimate.totalCost).toEqual(170);
expect(estimate.usingBaseFeeMutez).toEqual(170);
expect(estimate.consumedMilligas).toEqual(100040);
});

it('Verify .estimate.transfer with unallocated destination', async () => {
const estimate = await LowAmountTez.estimate.transfer({ to: await (await createAddress()).signer.publicKeyHash(), amount: 0.017 });
expect(estimate.gasLimit).toEqual(101);
expect(estimate.storageLimit).toEqual(277);
expect(estimate.suggestedFeeMutez).toEqual(188);
expect(estimate.suggestedFeeMutez).toEqual(190);
expect(estimate.burnFeeMutez).toEqual(69250);
expect(estimate.minimalFeeMutez).toEqual(168);
expect(estimate.totalCost).toEqual(69418);
expect(estimate.usingBaseFeeMutez).toEqual(168);
expect(estimate.minimalFeeMutez).toEqual(170);
expect(estimate.totalCost).toEqual(69420);
expect(estimate.usingBaseFeeMutez).toEqual(170);
expect(estimate.consumedMilligas).toEqual(100040);
});

Expand All @@ -69,11 +69,11 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
});
expect(estimate.gasLimit).toEqual(677);
expect(estimate.storageLimit).toEqual(591);
expect(estimate.suggestedFeeMutez).toEqual(537);
expect(estimate.suggestedFeeMutez).toEqual(539);
expect(estimate.burnFeeMutez).toEqual(147750);
expect(estimate.minimalFeeMutez).toEqual(517);
expect(estimate.totalCost).toEqual(148267);
expect(estimate.usingBaseFeeMutez).toEqual(517);
expect(estimate.minimalFeeMutez).toEqual(519);
expect(estimate.totalCost).toEqual(148269);
expect(estimate.usingBaseFeeMutez).toEqual(519);
expect(estimate.consumedMilligas).toEqual(676402);
});

Expand All @@ -84,11 +84,11 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
});
expect(estimate.gasLimit).toEqual(100);
expect(estimate.storageLimit).toEqual(0);
expect(estimate.suggestedFeeMutez).toEqual(183);
expect(estimate.suggestedFeeMutez).toEqual(185);
expect(estimate.burnFeeMutez).toEqual(0);
expect(estimate.minimalFeeMutez).toEqual(163);
expect(estimate.totalCost).toEqual(163);
expect(estimate.usingBaseFeeMutez).toEqual(163);
expect(estimate.minimalFeeMutez).toEqual(165);
expect(estimate.totalCost).toEqual(165);
expect(estimate.usingBaseFeeMutez).toEqual(165);
expect(estimate.consumedMilligas).toEqual(100000);
});

Expand All @@ -97,11 +97,11 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
const estimate = await LowAmountTez.estimate.transfer(tx);
expect(estimate.gasLimit).toEqual(1457);
expect(estimate.storageLimit).toEqual(0);
expect(estimate.suggestedFeeMutez).toEqual(396);
expect(estimate.suggestedFeeMutez).toEqual(398);
expect(estimate.burnFeeMutez).toEqual(0);
expect(estimate.minimalFeeMutez).toEqual(376);
expect(estimate.totalCost).toEqual(376);
expect(estimate.usingBaseFeeMutez).toEqual(376);
expect(estimate.minimalFeeMutez).toEqual(378);
expect(estimate.totalCost).toEqual(378);
expect(estimate.usingBaseFeeMutez).toEqual(378);
expect(estimate.consumedMilligas).toEqual(1456228);
});

Expand All @@ -114,11 +114,11 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
const estimate = await LowAmountTez.estimate.transfer(tx);
expect(estimate.gasLimit).toEqual(1571);
expect(estimate.storageLimit).toEqual(534);
expect(estimate.suggestedFeeMutez).toEqual(467);
expect(estimate.suggestedFeeMutez).toEqual(469);
expect(estimate.burnFeeMutez).toEqual(133500);
expect(estimate.minimalFeeMutez).toEqual(447);
expect(estimate.totalCost).toEqual(133947);
expect(estimate.usingBaseFeeMutez).toEqual(447);
expect(estimate.minimalFeeMutez).toEqual(449);
expect(estimate.totalCost).toEqual(133949);
expect(estimate.usingBaseFeeMutez).toEqual(449);
expect(estimate.consumedMilligas).toEqual(1570757);
});

Expand All @@ -127,11 +127,11 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
const estimate = await LowAmountTez.estimate.transfer(tx);
expect(estimate.gasLimit).toEqual(1867);
expect(estimate.storageLimit).toEqual(337);
expect(estimate.suggestedFeeMutez).toEqual(443);
expect(estimate.suggestedFeeMutez).toEqual(445);
expect(estimate.burnFeeMutez).toEqual(84250);
expect(estimate.minimalFeeMutez).toEqual(423);
expect(estimate.totalCost).toEqual(84673);
expect(estimate.usingBaseFeeMutez).toEqual(423);
expect(estimate.minimalFeeMutez).toEqual(425);
expect(estimate.totalCost).toEqual(84675);
expect(estimate.usingBaseFeeMutez).toEqual(425);
expect(estimate.consumedMilligas).toEqual(1866852);
});

Expand All @@ -140,11 +140,11 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
const estimate = await LowAmountTez.estimate.transfer(tx);
expect(estimate.gasLimit).toEqual(2393);
expect(estimate.storageLimit).toEqual(654);
expect(estimate.suggestedFeeMutez).toEqual(561);
expect(estimate.suggestedFeeMutez).toEqual(563);
expect(estimate.burnFeeMutez).toEqual(163500);
expect(estimate.minimalFeeMutez).toEqual(541);
expect(estimate.totalCost).toEqual(164041);
expect(estimate.usingBaseFeeMutez).toEqual(541);
expect(estimate.minimalFeeMutez).toEqual(543);
expect(estimate.totalCost).toEqual(164043);
expect(estimate.usingBaseFeeMutez).toEqual(543);
expect(estimate.consumedMilligas).toEqual(2392005);
// Do the actual operation
const op2 = await contract.methods.do(originate2()).send();
Expand Down Expand Up @@ -176,11 +176,11 @@ CONFIGS().forEach(({ lib, setup, knownBaker, createAddress, rpc }) => {
let estimate = await LowAmountTez.estimate.transfer({ to: await Tezos.signer.publicKeyHash(), mutez: true, amount: amt - (1382 + getRevealFee(await LowAmountTez.signer.publicKeyHash())) });
expect(estimate.gasLimit).toEqual(101);
expect(estimate.storageLimit).toEqual(0);
expect(estimate.suggestedFeeMutez).toEqual(187);
expect(estimate.suggestedFeeMutez).toEqual(189);
expect(estimate.burnFeeMutez).toEqual(0);
expect(estimate.minimalFeeMutez).toEqual(167);
expect(estimate.totalCost).toEqual(167);
expect(estimate.usingBaseFeeMutez).toEqual(167);
expect(estimate.minimalFeeMutez).toEqual(169);
expect(estimate.totalCost).toEqual(169);
expect(estimate.usingBaseFeeMutez).toEqual(169);
expect(estimate.consumedMilligas).toEqual(100040);
});

Expand Down
4 changes: 2 additions & 2 deletions integration-tests/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const nairobinetSecretKey: Config =
const ghostnetEphemeral: Config =
defaultConfig({
networkName: 'GHOSTNET',
protocol: Protocols.PtParisBx,
protocol: Protocols.PsParisCZ,
defaultRpc: 'http://ecad-tezos-ghostnet-rolling-1.i.ecadinfra.com/',
knownContracts: knownContractsPtGhostnet,
signerConfig: defaultEphemeralConfig('https://keygen.ecadinfra.com/ghostnet')
Expand All @@ -166,7 +166,7 @@ const weeklynetEphemeral: Config =
defaultConfig({
networkName: 'WEEKLYNET',
protocol: Protocols.ProtoALpha,
defaultRpc: 'https://rpc.weeklynet-2024-09-04.teztnets.com',
defaultRpc: 'https://rpc.weeklynet-2024-11-27.teztnets.com',
knownContracts: knownContractsProtoALph,
signerConfig: defaultEphemeralConfig('http://key-gen-1.i.tez.ie:3010/mondaynet')
});
Expand Down
30 changes: 15 additions & 15 deletions integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@
"originate-known-contracts": "node -r ts-node/register originate-known-contracts.ts",
"originate-known-contracts-and-run-test": "node -r ts-node/register originate-known-contracts.ts && jest"
},
"version": "20.1.0",
"version": "20.1.1",
"dependencies": {
"@ledgerhq/devices": "8.4.4",
"@ledgerhq/hw-transport": "6.31.4",
"@ledgerhq/hw-transport-node-hid": "6.29.5",
"@ledgerhq/hw-transport-node-hid-noevents": "6.30.5",
"@taquito/contracts-library": "^20.1.0",
"@taquito/core": "^20.1.0",
"@taquito/http-utils": "^20.1.0",
"@taquito/local-forging": "^20.1.0",
"@taquito/michel-codec": "^20.1.0",
"@taquito/michelson-encoder": "^20.1.0",
"@taquito/remote-signer": "^20.1.0",
"@taquito/rpc": "^20.1.0",
"@taquito/sapling": "^20.1.0",
"@taquito/signer": "^20.1.0",
"@taquito/taquito": "^20.1.0",
"@taquito/tzip12": "^20.1.0",
"@taquito/tzip16": "^20.1.0",
"@taquito/utils": "^20.1.0",
"@taquito/contracts-library": "^20.1.1",
"@taquito/core": "^20.1.1",
"@taquito/http-utils": "^20.1.1",
"@taquito/local-forging": "^20.1.1",
"@taquito/michel-codec": "^20.1.1",
"@taquito/michelson-encoder": "^20.1.1",
"@taquito/remote-signer": "^20.1.1",
"@taquito/rpc": "^20.1.1",
"@taquito/sapling": "^20.1.1",
"@taquito/signer": "^20.1.1",
"@taquito/taquito": "^20.1.1",
"@taquito/tzip12": "^20.1.1",
"@taquito/tzip16": "^20.1.1",
"@taquito/utils": "^20.1.1",
"bignumber.js": "^9.1.2",
"bip39": "3.1.0",
"blakejs": "^1.2.1"
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"useNx": true,
"version": "20.1.0"
"version": "20.1.1"
}
Loading

0 comments on commit 2a55d6f

Please sign in to comment.