Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ecadlabs/taquito into wc-…
Browse files Browse the repository at this point in the history
…modal
  • Loading branch information
hui-an-yang committed Jan 7, 2025
2 parents 0abb34d + fa8b6f0 commit 8b6152a
Show file tree
Hide file tree
Showing 200 changed files with 3,861 additions and 8,759 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/bundle_webpack.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Bundle Webpack

on:
pull_request:
push:
branches:
- master
Expand All @@ -17,7 +18,7 @@ jobs:
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/iron
node-version: lts/Hydrogen
- run: npm ci
- run: npm run build
- run: npm -w packages/taquito-local-forging run build-webpack
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/iron
node-version: lts/Hydrogen
- run: echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- run: echo "PACKAGE_VERSION=`node -p "require('./packages/taquito/package.json').version"`" >> $GITHUB_ENV
- run: echo "BRANCH_NAME=$(git branch --show-current)" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_test_dapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/iron
node-version: lts/Hydrogen
- run: npm ci
- run: npm run build
- run: npm -w taquito-test-dapp-vite run build
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
fail-fast: false
matrix:
node:
- 'lts/iron'
- '22'
- 'lts/Hydrogen'
- 'lts/Iron'
- 'lts/Jod'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -45,11 +46,15 @@ jobs:
include:
- testnet: parisnet
testnet_uppercase: PARISNET
rpc_url: https://rpc.pariscnet.teztnets.com/
- testnet: quebecnet
testnet_uppercase: QUEBECNET
rpc_url: https://rpc.quebecnet.teztnets.com/
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/iron
node-version: lts/Hydrogen
- run: npm ci
- run: npm run build
- if: ${{ !github.event.pull_request.head.repo.fork }}
Expand All @@ -58,7 +63,8 @@ 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 }}
2 changes: 1 addition & 1 deletion .github/workflows/mondaynet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/iron
node-version: lts/Hydrogen
- run: npm ci
- run: npm run build
- id: originate-contracts-mondaynet
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20
v18
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Taquito currently supports the following versions of Node.js®:
| ---------------- | ---------- |
| v14 LTS ||
| v16 LTS/Gallium ||
| v18 LTS/Hydrogen | |
| v18 LTS/Hydrogen | |
| v20 LTS/Iron ||
| v22 ||

Expand Down
18 changes: 9 additions & 9 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.1",
"version": "21.0.0",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -15,7 +15,7 @@
"events": "^3.3.0",
"lerna": "^8.1.7",
"prettier-plugin-svelte": "^3.2.6",
"sass": "^1.80.1",
"sass": "^1.81.0",
"svelte": "^4.2.19",
"svelte-check": "^3.8.5",
"svelte-preprocess": "^6.0.2",
Expand All @@ -24,13 +24,13 @@
"vite": "^5.3.5"
},
"dependencies": {
"@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",
"@airgap/beacon-sdk": "^4.3.2-beta.0",
"@airgap/beacon-types": "^4.3.2-beta.0",
"@taquito/beacon-wallet": "^21.0.0",
"@taquito/core": "^21.0.0",
"@taquito/taquito": "^21.0.0",
"@taquito/utils": "^21.0.0",
"@taquito/wallet-connect": "^21.0.0",
"buffer": "^6.0.3",
"svelte-modals": "^2.0.0-beta.2",
"svelte-select": "^5.8.3",
Expand Down
4 changes: 4 additions & 0 deletions apps/taquito-test-dapp/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
let availableNetworks = [
{ value: "ghostnet", label: "Ghostnet", group: "current testnets" },
{ value: "parisnet", label: "Parisnet", group: "current testnets" },
{ value: "quebecnet", label: "Quebecnet", group: "current testnets" },
{ value: "mainnet", label: "Mainnet", group: "mainnet" },
{ value: "dailynet", label: "Dailynet", group: "other testnets" },
{ value: "weeklynet", label: "Weeklynet", group: "other testnets" },
Expand Down Expand Up @@ -42,6 +43,9 @@
case "parisnet":
store.updateNetworkType(NetworkType.PARISNET);
break;
case "quebecnet":
store.updateNetworkType(NetworkType.QUEBECNET);
break;
case "custom":
//TODO: input custom RPC URL
showCustomNetworkInput = true;
Expand Down
7 changes: 6 additions & 1 deletion apps/taquito-test-dapp/src/config.ts
Original file line number Diff line number Diff line change
@@ -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 | NetworkTypeBeacon.QUEBECNET | NetworkTypeWc.MAINNET | NetworkTypeWc.GHOSTNET | NetworkTypeWc.PARISNET | NetworkTypeWc.QUEBECNET | NetworkTypeBeacon.CUSTOM;

const rpcUrls: Record<SupportedNetworks, string> = {
[NetworkTypeBeacon.MAINNET]: "https://mainnet.tezos.ecadinfra.com",
[NetworkTypeBeacon.GHOSTNET]: "https://ghostnet.tezos.ecadinfra.com/",
[NetworkTypeBeacon.PARISNET]: "https://rpc.pariscnet.teztnets.com/",
[NetworkTypeBeacon.QUEBECNET]: "https://rpc.quebecnet.teztnets.com",
[NetworkTypeBeacon.CUSTOM]: "https://ghostnet.tezos.ecadinfra.com/",
};

Expand All @@ -25,6 +26,9 @@ export const getTzKtUrl = (networkType: SupportedNetworks): string | undefined =
case NetworkTypeBeacon.PARISNET:
case NetworkTypeWc.PARISNET:
return "https://parisnet.tzkt.io";
case NetworkTypeBeacon.QUEBECNET:
case NetworkTypeWc.QUEBECNET:
return "https://quebecnet.tzkt.io";
case NetworkTypeBeacon.CUSTOM:
return undefined;
}
Expand All @@ -40,4 +44,5 @@ export const contractAddress = {
ghostnet: "KT1QKmcNBcfzVTXG2kBcE6XqXtEuYYUzMcT5",
oxfordnet: "KT1GYx1KDhMQt2GJEztRh8EyYxJUPM6fnAMM",
parisnet: "KT1E43cQefjM8fq7B5pEJFJoGbRmuNibDoBC",
quebecnet: "KT1JZ3H8zMn6GXoftLpRzGUwRD4fP7mmxKqW"
};
2 changes: 2 additions & 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 Expand Up @@ -84,6 +85,7 @@
"Protofire",
"ProxfordY",
"PtNairobi",
"Quebecnet",
"refetched",
"riscv",
"rollups",
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
2 changes: 1 addition & 1 deletion docs/contract-test-collection.md
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ license: MIT

Transactions to smart contracts operate in the same fashion as transactions to an implicit account, the only difference being the `KT1...` address. You will also receive a transaction hash and have to wait for the transaction to be confirmed. Once confirmed, it can be the right time to update the user's/contract's balance, for example.

Sending a transaction to a smart contract to update its storage will be a different type of action as it implies targetting a specific entrypoint and formatting correctly the data to be sent.
Sending a transaction to a smart contract to update its storage will be a different type of action as it implies targeting a specific entrypoint and formatting correctly the data to be sent.

Fortunately, Taquito will make this operation go like a breeze! First, you need the contract abstraction created with the address of the smart contract you are targeting:

Expand Down
12 changes: 6 additions & 6 deletions docs/maps_bigmaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ Tezos.contract
//When called on a bigMap, the get method returns a promise
return myStorage['thebigmap'].get({
0: '10', //nat
1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address
1: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', //address
});
})
.then((valueBigMap) => {
Expand Down Expand Up @@ -851,7 +851,7 @@ Tezos.wallet
//When called on a bigMap, the get method returns a promise
return myStorage['thebigmap'].get({
0: '10', //nat
1: 'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx', //address
1: 'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5', //address
});
})
.then((valueBigMap) => {
Expand Down Expand Up @@ -915,9 +915,9 @@ Tezos.contract
console.log('Fetching the big map values...\n');
return storage['0'].getMultipleValues([
'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5',
'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY',
'tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr',
'tz1bwsEWCwSEXdRvnJxvegQZKeX5dj6oKEys',
'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb',
'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx',
]);
})
.then((values) => {
Expand Down Expand Up @@ -945,9 +945,9 @@ Tezos.wallet
console.log('Fetching the big map values...\n');
return storage['0'].getMultipleValues([
'tz3WXYtyDUNL91qfiCJtVUX746QpNv5i5ve5',
'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY',
'tz1PgQt52JMirBUhhkq1eanX8hVd1Fsg71Lr',
'tz1bwsEWCwSEXdRvnJxvegQZKeX5dj6oKEys',
'tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb',
'tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx',
]);
})
.then((values) => {
Expand Down
15 changes: 10 additions & 5 deletions docs/rpc_nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,26 @@ values={[

| Provider | Net | URL | Header |
|------------------|--------------|------------------------------------------|---------------------------------------------------------------------------------|
| ECAD Labs | Mainnet | https://mainnet.tezos.ecadinfra.com | [Check](https://mainnet.tezos.ecadinfra.com/chains/main/blocks/head/header) |
| ECAD Labs | Ghostnet | https://ghostnet.tezos.ecadinfra.com | [Check](https://ghostnet.tezos.ecadinfra.com/chains/main/blocks/head/header) |
| ECAD Labs | Mainnet | https://mainnet.tezos.ecadinfra.com | [Check](https://mainnet.tezos.ecadinfra.com/chains/main/blocks/head/header) |
| ECAD Labs | Ghostnet | https://ghostnet.tezos.ecadinfra.com | [Check](https://ghostnet.tezos.ecadinfra.com/chains/main/blocks/head/header) |
| SmartPy | Mainnet | https://mainnet.smartpy.io | [Check](https://mainnet.smartpy.io/chains/main/blocks/head/header) |
| 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 | Quebecnet | https://rpc.quebecnet.teztnets.com/ | [Check](https://rpc.quebecnet.teztnets.com/chains/main/blocks/head/header) |
| Tzkt | Mainnet | https://rpc.tzkt.io/mainnet/ | [Check](https://rpc.tzkt.io/mainnet/chains/main/blocks/head/header) |
| Tzkt | Ghostnet | https://rpc.tzkt.io/ghostnet | [Check](https://rpc.tzkt.io/ghostnet/chains/main/blocks/head/header) |
| Tzkt | Parisnet | https://rpc.tzkt.io/parisnet | [Check](https://rpc.tzkt.io/parisnet/chains/main/blocks/head/header) |
| Tzkt | Quebecnet | https://rpc.tzkt.io/quebecnet | [Check](https://rpc.tzkt.io/quebecnet/chains/main/blocks/head/header) |

https://api.mainnet.tzkt.io/
*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.*
</TabItem>
<TabItem value="commercialNodes">

| Provider | Details |
|------------------|---------------------------------------------|
| TzPro | https://tzpro.io/ |
| MIDL.dev | https://midl.dev/tezos-rpc/ |
| Exaion | https://node.exaion.com |

Expand Down
Loading

0 comments on commit 8b6152a

Please sign in to comment.