Skip to content

Commit

Permalink
Merge pull request #39 from kaiachain/refactor/change-rpc-links
Browse files Browse the repository at this point in the history
refactor: change rpc links
  • Loading branch information
jack authored Sep 12, 2024
2 parents f96c8e7 + 7838014 commit 0557f61
Show file tree
Hide file tree
Showing 1,579 changed files with 1,613 additions and 1,613 deletions.
4 changes: 2 additions & 2 deletions documentation/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ x-tagGroups:
- mainbridge
- subbridge
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:
# kaia/account
Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- admin
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: https://localhost:8551
paths:

Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/debug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- debug
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: https://localhost:8551
paths:
# debug/logging:
Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/eth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- eth
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:

Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/governance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- governance
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:

Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/kaia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- kaia
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:
# kaia/account
Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/klay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- klay
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:
# klay/account
Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/mainbridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- mainbridge
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:

Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- net
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:

Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/personal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- personal
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:

Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/subbridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- subbridge
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:

Expand Down
4 changes: 2 additions & 2 deletions documentation/namespaces/txpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ x-tagGroups:
tags:
- txpool
servers:
- url: https://api.baobab.klaytn.net:8651
- url: https://public-en-cypress.klaytn.net
- url: https://public-en-kairos.node.kaia.io
- url: https://public-en.node.kaia.io
- url: http://localhost:8551
paths:

Expand Down
10 changes: 5 additions & 5 deletions ethers-ext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ Ethers.js Extension for Klaytn offers:
const ethers = require("ethers");
const { Wallet } = require("@kaiachain/ethers-ext");

const provider = new ethers.JsonRpcProvider("https://public-en-baobab.klaytn.net");
const provider = new ethers.JsonRpcProvider("https://public-en-kairos.node.kaia.io");
const wallet = new Wallet("<private key>", provider);
```
- **Do**: mix ethers v5 and ethers-ext
```js
const ethers = require("ethers");
const { Wallet } = require("@kaiachain/ethers-ext");
const provider = new ethers.providers.JsonRpcProvider("https://public-en-baobab.klaytn.net");
const provider = new ethers.providers.JsonRpcProvider("https://public-en-kairos.node.kaia.io");
const wallet = new Wallet("<private key>", provider);
```
- **Do**: ethers-ext only
```js
const { Wallet, JsonRpcProvider } = require("@kaiachain/ethers-ext");
const provider = new JsonRpcProvider("https://public-en-baobab.klaytn.net");
const provider = new JsonRpcProvider("https://public-en-kairos.node.kaia.io");
const wallet = new Wallet("<private key>", provider);
```

Expand All @@ -47,13 +47,13 @@ Ethers.js Extension for Klaytn offers:
- ESM or TypeScript
```ts
import { Wallet, JsonRpcProvider } from "@kaiachain/ethers-ext";
const provider = new JsonRpcProvider("https://public-en-baobab.klaytn.net");
const provider = new JsonRpcProvider("https://public-en-kairos.node.kaia.io");
const wallet = new Wallet("<private key>", provider);
```
- CommonJS
```js
const { Wallet, JsonRpcProvider } = require("@kaiachain/ethers-ext");
const provider = new JsonRpcProvider("https://public-en-baobab.klaytn.net");
const provider = new JsonRpcProvider("https://public-en-kairos.node.kaia.io");
const wallet = new Wallet("<private key>", provider);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const senderPriv =
"0x4a72b3d09c3d5e28e8652e0111f9c4ce252e8299aad95bb219a38eb0a3f4da49";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderPriv, provider);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const senderPriv =
"0x0e4ca6d38096ad99324de0dde108587e5d7c600165ae4cd6c2462c597458c2b8";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderAddr, senderPriv, provider); // decoupled account

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const senderRoleFeePayerPriv =
"0x0e4ca6d38096ad99324de0dde108587e5d7c600165ae4cd6c2462c597458c2b8";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const txWallet = new Wallet(senderAddr, senderPriv, provider);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const senderNewPriv3 =
"0xc9668ccd35fc20587aa37a48838b48ccc13cf14dd74c8999dd6a480212d5f7ac";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet1 = new Wallet(senderAddr, senderNewPriv1, provider);
const wallet2 = new Wallet(senderAddr, senderNewPriv2, provider);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const senderPriv =
const recieverAddr = "0xc40b6909eb7085590e1c26cb3becc25368e249e9";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderPriv, provider);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const senderNewPriv =
const recieverAddr = "0xc40b6909eb7085590e1c26cb3becc25368e249e9";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const newWallet = new Wallet(senderAddr, senderNewPriv, provider); // decoupled account

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const senderRoleFeePayerPriv =
const recieverAddr = "0xc40b6909eb7085590e1c26cb3becc25368e249e9";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const txWallet = new Wallet(senderAddr, senderRoleTransactionPriv, provider);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const senderNewPriv3 =
const recieverAddr = "0xc40b6909eb7085590e1c26cb3becc25368e249e9";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet1 = new Wallet(senderAddr, senderNewPriv1, provider);
const wallet2 = new Wallet(senderAddr, senderNewPriv2, provider);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const senderPriv =
"0xc696ccd259792f2ffb87e0012e4a37ae3526a3224686225af679e3aaa2aeab0d";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderPriv, provider);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const senderNewPriv =
"0x0e4ca6d38096ad99324de0dde108587e5d7c600165ae4cd6c2462c597458c2b8";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderAddr, senderPriv, provider); // decoupled account

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const senderRoleFeePayerPriv =
"0x0e4ca6d38096ad99324de0dde108587e5d7c600165ae4cd6c2462c597458c2b8";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const updaterWallet = new Wallet(
senderAddr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const senderNewPriv3 =
"0xc9668ccd35fc20587aa37a48838b48ccc13cf14dd74c8999dd6a480212d5f7ac";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet1 = new Wallet(senderAddr, senderNewPriv1, provider);
const wallet2 = new Wallet(senderAddr, senderNewPriv2, provider);
Expand Down
4 changes: 2 additions & 2 deletions ethers-ext/example/v5/browser-html/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function switchBaobab() {
symbol: "KLAY",
decimals: 18,
},
rpcUrls: ["https://public-en-baobab.klaytn.net"],
rpcUrls: ["https://public-en-kairos.node.kaia.io"],
blockExplorerUrls: ["https://baobab.klaytnscope.com/"],
});
}
Expand Down Expand Up @@ -167,7 +167,7 @@ async function sendKlaytnSC() {
// This operation is usually done in the backend by the dApp operator.
// We do it here with hardcoded private key for demonstration purpose.
async function doSendTxAsFeePayer(signedTx) {
const httpProvider = new ethers_ext.JsonRpcProvider("https://public-en-baobab.klaytn.net");
const httpProvider = new ethers_ext.JsonRpcProvider("https://public-en-kairos.node.kaia.io");
const feePayerPriv = "0xb3cf575dea0081563fe5482de2fe4425e025502b1f4ae7e02b2540ac0a5beda1";
const feePayerWallet = new ethers_ext.Wallet(feePayerPriv, httpProvider);

Expand Down
4 changes: 2 additions & 2 deletions ethers-ext/example/v5/browser-react/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function doSignTx(account: Account, txRequest: any): Promise<any> {
// We do it here with hardcoded private key for demonstration purpose.
async function doSendTxAsFeePayer(signedTx: string) {
try {
const httpProvider = new JsonRpcProvider("https://public-en-baobab.klaytn.net");
const httpProvider = new JsonRpcProvider("https://public-en-kairos.node.kaia.io");
const feePayerPriv = "0x9435261ed483b6efa3886d6ad9f64c12078a0e28d8d80715c773e16fc000cff4";
const feePayerWallet = new Wallet(feePayerPriv, httpProvider);
console.log("feePayer", feePayerWallet.address)
Expand Down Expand Up @@ -89,6 +89,6 @@ export const baobabNetworkSpec = {
symbol: "KLAY",
decimals: 18,
},
rpcUrls: ["https://public-en-baobab.klaytn.net"],
rpcUrls: ["https://public-en-kairos.node.kaia.io"],
blockExplorerUrls: ["https://baobab.klaytnscope.com/"],
}
2 changes: 1 addition & 1 deletion ethers-ext/example/v5/contracts/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const senderPriv =
"0xc696ccd259792f2ffb87e0012e4a37ae3526a3224686225af679e3aaa2aeab0d";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderPriv, provider);

Expand Down
2 changes: 1 addition & 1 deletion ethers-ext/example/v5/contracts/read.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const ethers = require("ethers5");

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);

/* compiled in remix.ethereum.org (compiler: 0.8.18, optimizer: false)
Expand Down
2 changes: 1 addition & 1 deletion ethers-ext/example/v5/contracts/write.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const senderPriv =
"0x4a72b3d09c3d5e28e8652e0111f9c4ce252e8299aad95bb219a38eb0a3f4da49";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderPriv, provider);

Expand Down
2 changes: 1 addition & 1 deletion ethers-ext/example/v5/contracts/write_feeDelegated.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const feePayerPriv =
"0x9435261ed483b6efa3886d6ad9f64c12078a0e28d8d80715c773e16fc000cff4";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const senderWallet = new Wallet(senderPriv, provider);
const feePayerWallet = new Wallet(feePayerPriv, provider);
Expand Down
2 changes: 1 addition & 1 deletion ethers-ext/example/v5/contracts/write_txType.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const senderPriv =
"0x4a72b3d09c3d5e28e8652e0111f9c4ce252e8299aad95bb219a38eb0a3f4da49";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderPriv, provider);

Expand Down
2 changes: 1 addition & 1 deletion ethers-ext/example/v5/rpc/rpc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { JsonRpcProvider } = require("@kaiachain/ethers-ext/v5");

async function main() {
let provider = new JsonRpcProvider("https://public-en-baobab.klaytn.net/");
let provider = new JsonRpcProvider("https://public-en-kairos.node.kaia.io/");

// The full list of JSON-RPC is available at:
// https://docs.klaytn.foundation/content/dapp/json-rpc/api-references
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const senderPriv =
"0x0e4ca6d38096ad99324de0dde108587e5d7c600165ae4cd6c2462c597458c2b8";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderPriv, provider);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const senderPriv =
"0x0e4ca6d38096ad99324de0dde108587e5d7c600165ae4cd6c2462c597458c2b8";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderPriv, provider);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const senderNewPriv =
"0x0e4ca6d38096ad99324de0dde108587e5d7c600165ae4cd6c2462c597458c2b8";

const provider = new ethers.providers.JsonRpcProvider(
"https://public-en-baobab.klaytn.net"
"https://public-en-kairos.node.kaia.io"
);
const wallet = new Wallet(senderAddr, senderPriv, provider); // decoupled account

Expand Down
Loading

0 comments on commit 0557f61

Please sign in to comment.