Skip to content

Commit

Permalink
chore: update ECAD Infra RPC addresses to new format
Browse files Browse the repository at this point in the history
Replaced all occurrences of deprecated ECAD Infra RPC addresses with the new format as outlined in issue #3089. Updated addresses for mainnet, ghostnet, parisnet, and quebecnet.

Old format: https://<network>.ecadinfra.com
New format: https://<network>.tezos.ecadinfra.com

This change ensures consistency with ECAD Infra's updated RPC address structure.

Closes #3089
  • Loading branch information
jevonearth committed Nov 30, 2024
1 parent 1188bbc commit 6c4d6e4
Show file tree
Hide file tree
Showing 162 changed files with 505 additions and 505 deletions.
6 changes: 3 additions & 3 deletions apps/taquito-test-dapp/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ 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;

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

export const getRpcUrl = (networkType: SupportedNetworks): string => {
Expand Down
8 changes: 4 additions & 4 deletions docs/complex_parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ An annotation identifies every argument. Therefore we can ignore optional values
```js live noInline
// import { TezosToolkit, MichelsonMap } from '@taquito/taquito';
// import { importKey } from '@taquito/signer';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

//%data
const dataMap = new MichelsonMap();
Expand Down Expand Up @@ -129,7 +129,7 @@ The way to write the parameter when calling the function of a contract with Taqu

```js live noInline
// import { TezosToolkit, MichelsonMap } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com')
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com')
// import { importKey } from '@taquito/signer';

importKey(Tezos, secretKey)
Expand All @@ -153,7 +153,7 @@ importKey(Tezos, secretKey)

```js live noInline
// import { TezosToolkit, MichelsonMap } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com')
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com')
// import { importKey } from '@taquito/signer';

importKey(Tezos, secretKey)
Expand Down Expand Up @@ -184,7 +184,7 @@ The `address %address` and the `nat %ttl` of the `set_child_record` function are

```js live noInline
// import { TezosToolkit, MichelsonMap } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com')
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com')
// import { importKey } from '@taquito/signer';

importKey(Tezos, secretKey)
Expand Down
4 changes: 2 additions & 2 deletions docs/drain_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ In the following example, we have not revealed the account that we want to empty
:::

```js live noInline
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');
// import { getRevealFee } from "@taquito/taquito";

Tezos.signer
Expand Down Expand Up @@ -87,7 +87,7 @@ The contract we originate is a `manager contract.` It has a `do` method taking a
In the example, we estimate the transfer operation before doing it. The associated fees are deducted from the manager's address when draining the account. Thus, for the operation to be successful, the manager's address for that account must contain funds to cover the gas.

```js live noInline
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

function transferImplicit(key, mutez) {
return [
Expand Down
12 changes: 6 additions & 6 deletions docs/estimate.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ values={[

```js live noInline
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

const amount = 2;
const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY';
Expand All @@ -68,7 +68,7 @@ Tezos.estimate

```js live noInline wallet
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

const amount = 2;
const address = 'tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY';
Expand Down Expand Up @@ -109,7 +109,7 @@ The `contractCall()` member method can now be used to estimate contract calls as

```js live noInline
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');
Tezos.contract
.at('KT1BJadpDyLCACMH7Tt9xtpx4dQZVKw9cDF7')
.then((contract) => {
Expand Down Expand Up @@ -137,7 +137,7 @@ Tezos.contract

```js live noInline wallet
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

Tezos.wallet
.at('KT1BJadpDyLCACMH7Tt9xtpx4dQZVKw9cDF7')
Expand Down Expand Up @@ -178,7 +178,7 @@ values={[

```js live noInline
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

console.log(`Estimating the contract origination : `);
Tezos.estimate
Expand Down Expand Up @@ -208,7 +208,7 @@ Tezos.estimate

```js live noInline wallet
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

console.log(`Estimating the contract origination : `);
Tezos.estimate
Expand Down
16 changes: 8 additions & 8 deletions docs/inmemory_signer.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The `fromSecretKey` method takes a secret that is base58 encoded as a parameter.
```js live noInline
// import { TezosToolkit } from '@taquito/taquito'
// import { InMemorySigner } from '@taquito/signer'
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

InMemorySigner.fromSecretKey('edsk2rKA8YEExg9Zo2qNPiQnnYheF1DhqjLVmfKdxiFfu5GyGRZRnb')
.then((theSigner) => {
Expand All @@ -58,7 +58,7 @@ InMemorySigner.fromSecretKey('edsk2rKA8YEExg9Zo2qNPiQnnYheF1DhqjLVmfKdxiFfu5GyGR
```js live noInline
// import { TezosToolkit } from '@taquito/taquito'
// import { InMemorySigner } from '@taquito/signer'
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

InMemorySigner.fromSecretKey('spsk2Fiz7sGP5fNMJrokp6ynTa4bcFbsRhw58FHXbNf5ProDNFJ5Xq')
.then((theSigner) => {
Expand All @@ -78,7 +78,7 @@ When required, Taquito offers the `b58cencode` function allowing to encode the s
// import { b58cencode, prefix, Prefix } from '@taquito/utils';
// import { TezosToolkit } from '@taquito/taquito'
// import { InMemorySigner } from '@taquito/signer'
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

const b58encodedSecret = b58cencode(
'7c842c15c8b0c8fd228e6cb5302a50201f41642dd36b699003fb3c857920bc9d',
Expand Down Expand Up @@ -119,7 +119,7 @@ Here are three examples with encrypted private keys where the passphrase used is
```js live noInline
// import { TezosToolkit } from '@taquito/taquito'
// import { InMemorySigner } from '@taquito/signer'
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

InMemorySigner.fromSecretKey(
'edesk1GXwWmGjXiLHBKxGBxwmNvG21vKBh6FBxc4CyJ8adQQE2avP5vBB57ZUZ93Anm7i4k8RmsHaPzVAvpnHkFF',
Expand All @@ -139,7 +139,7 @@ InMemorySigner.fromSecretKey(
```js live noInline
// import { TezosToolkit } from '@taquito/taquito'
// import { InMemorySigner } from '@taquito/signer'
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

InMemorySigner.fromSecretKey(
'spesk24UQkAiJk8X6AufNtRv1WWPp2BAssEgmijCTQPMgUXweSKPmLdbyAjPmCG1pR2dC9P5UZZVeZcb7zVodUHZ',
Expand All @@ -159,7 +159,7 @@ InMemorySigner.fromSecretKey(
```js live noInline
// import { TezosToolkit } from '@taquito/taquito'
// import { InMemorySigner } from '@taquito/signer'
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

InMemorySigner.fromSecretKey(
'p2esk28hoUE2J88QNFj2aDX2pjzL7wcVh2g8tkEwtWWguby9M3FHUgSbzvF2Sd7wQ4Kd8crFwvto6gF3otcBuo4T',
Expand Down Expand Up @@ -188,7 +188,7 @@ With ed25519 default derivation path (Reminder Must be hardened with either h or
```js live noInline
// import { TezosToolkit } from '@taquito/taquito
// import { InMemorySigner } from '@taquito/signer'
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

// ed25519 must have all hardened paths

Expand All @@ -212,7 +212,7 @@ With a non-default derivation path non-hardened with a tz2 address
```js live noInline
// import { TezosToolkit } from '@taquito/taquito
// import { InMemorySigner } from '@taquito/signer'
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

const params = {
mnemonic: 'author crumble medal dose ribbon permit ankle sport final hood shadow vessel horn hawk enter zebra prefer devote captain during fly found despair business',
Expand Down
2 changes: 1 addition & 1 deletion docs/ledger_signer.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ _Note that this example is not intended to be a complete example of paths scanni
//import { LedgerSigner, DerivationType, HDPathTemplate } from '@taquito/ledger-signer';
//import { TezosToolkit } from '@taquito/taquito';
// import TransportWebHID from "@ledgerhq/hw-transport-webhid";
//const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
//const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

TransportWebHID.create().then((transport) => {
for (let index = 0, p = Promise.resolve(); index < 10; index++) {
Expand Down
2 changes: 1 addition & 1 deletion docs/making_transfers.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ In the following example, we transfer 0.5ꜩ from a `tz1aaYoabvj2DQtpHz74Z83fSNj

```js live noInline
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

render(`Fetching a private key...`);
fetch('https://keygen.ecadinfra.com/ghostnet/', {
Expand Down
4 changes: 2 additions & 2 deletions docs/maps_bigmaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ values={[

```js live noInline
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

Tezos.contract
.at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW')
Expand Down Expand Up @@ -933,7 +933,7 @@ Tezos.contract

```js live noInline wallet
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

Tezos.wallet
.at('KT1LPdW47Aba3kVpNMpRt7sx5yM1M4A8XmAW')
Expand Down
2 changes: 1 addition & 1 deletion docs/michelsonmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { BigNumber } from 'bignumber.js';

const contractAddress: string = 'KT1M5C76aSjpWXdoBvuzRdi3UJoC3jEzrSUW';

const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

const contract = await Tezos.contract.at(contractAddress);
const storage: MichelsonMap<string, BigNumber> = await contract.storage();
Expand Down
16 changes: 8 additions & 8 deletions docs/originate.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This requires a signer to be configured, ie:
```
import { importKey } from '@taquito/signer';
import { TezosToolkit } from '@taquito/taquito';
const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');
importKey(Tezos, "p2sk2obfVMEuPUnadAConLWk7Tf4Dt3n4svSgJwrgpamRqJXvaYcg1")
```

Expand All @@ -45,7 +45,7 @@ importKey(Tezos, "p2sk2obfVMEuPUnadAConLWk7Tf4Dt3n4svSgJwrgpamRqJXvaYcg1")
```
import { BeaconWallet } from '@taquito/beacon-wallet';
import { TezosToolkit } from '@taquito/taquito';
const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');
const option = { name: "nameOfWallet", network: { type: 'ghostnet' }, enableMetrics: true};
const wallet = new BeaconWallet(option);
Expand Down Expand Up @@ -93,7 +93,7 @@ values={[

```js live noInline
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

// const genericMultisigJSONfile = require('./generic.json')
// generic.json is referring to Michelson source code in JSON representation
Expand Down Expand Up @@ -122,7 +122,7 @@ Tezos.contract

```js live noInline wallet
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

// const genericMultisigJSONfile = require('./generic.json')
// generic.json is referring to Michelson source code in JSON representation
Expand Down Expand Up @@ -164,7 +164,7 @@ values={[

```js live noInline
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

// const genericMultisigJSONfile = require('./generic.json')
// generic.json is referring to Michelson source code in JSON representation
Expand All @@ -189,7 +189,7 @@ Tezos.contract

```js live noInline wallet
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

// const genericMultisigJSONfile = require('./generic.json')
// generic.json is referring to Michelson source code in JSON representation
Expand Down Expand Up @@ -225,7 +225,7 @@ values={[

```js live noInline
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

// const genericMultisigJSONfile = require('./generic.json')
// generic.json is referring to Michelson source code in JSON representation
Expand Down Expand Up @@ -262,7 +262,7 @@ Tezos.contract

```js live noInline wallet
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

// const genericMultisigJSONfile = require('./generic.json')
// generic.json is referring to Michelson source code in JSON representation
Expand Down
2 changes: 1 addition & 1 deletion docs/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Alternatively, you can use a `WalletProvider` to interact with a wallet. Please

```js live noInline
// import { TezosToolkit } from '@taquito/taquito';
// const Tezos = new TezosToolkit('https://ghostnet.ecadinfra.com');
// const Tezos = new TezosToolkit('https://ghostnet.tezos.ecadinfra.com');

Tezos.tz
.getBalance('tz1h3rQ8wBxFd8L9B3d7Jhaawu6Z568XU3xY')
Expand Down
4 changes: 2 additions & 2 deletions docs/rpc_nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ values={[

| Provider | Net | URL | Header |
|------------------|--------------|------------------------------------------|---------------------------------------------------------------------------------|
| ECAD Labs | Mainnet | https://mainnet.ecadinfra.com | [Check](https://mainnet.ecadinfra.com/chains/main/blocks/head/header) |
| ECAD Labs | Ghostnet | https://ghostnet.ecadinfra.com | [Check](https://ghostnet.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) |
Expand Down
2 changes: 1 addition & 1 deletion docs/rpc_package.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Methods in the RPC package map one-to-one to the corresponding Tezos RPC API end

import { RpcClient } from '@taquito/rpc';

const client = new RpcClient(' https://ghostnet.ecadinfra.com/', 'NetXLH1uAxK7CCh');
const client = new RpcClient(' https://ghostnet.tezos.ecadinfra.com/', 'NetXLH1uAxK7CCh');
```

The `RpcClient` constructor takes the URL of the node you want to use and the chain ID.
Expand Down
Loading

0 comments on commit 6c4d6e4

Please sign in to comment.