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

docs: Add 3rd party RPC endpoints #279

Merged
merged 3 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion clients/go/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var Networks = map[uint64]NetworkParams{
0x5aff: {
Name: "testnet",
ChainID: *big.NewInt(0x5aff),
DefaultGateway: "https://testnet.sapphire.oasis.dev",
DefaultGateway: "https://testnet.sapphire.oasis.io",
RuntimeID: "0x000000000000000000000000000000000000000000000000a6d1e3ebf60dff6c",
},
0x5afe: {
Expand Down
2 changes: 1 addition & 1 deletion clients/js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,6 @@ Use that for unsigned queries instead.

## See Also

- [Oasis Testnet Faucet](https://faucet.testnet.oasis.dev/)
- [Oasis Testnet Faucet](https://faucet.testnet.oasis.io/)
- [Creating dapps for Sapphire](https://docs.oasis.io/dapp/sapphire/quickstart)
- [How to Transfer ROSE into an EVM ParaTime](https://docs.oasis.io/general/manage-tokens/how-to-transfer-rose-into-paratime/)
2 changes: 1 addition & 1 deletion clients/js/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const mainnetParams = {

const testnetParams = {
chainId: 0x5aff,
defaultGateway: 'https://testnet.sapphire.oasis.dev/',
defaultGateway: 'https://testnet.sapphire.oasis.io/',
runtimeId:
'0x000000000000000000000000000000000000000000000000a6d1e3ebf60dff6c',
};
Expand Down
2 changes: 1 addition & 1 deletion clients/js/test/compat.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ describe('fetchPublicKeyByChainId', () => {
await expectFetch(0x5afe, 'https://sapphire.oasis.io', {
fetch: fetchImpl as unknown as typeof fetch,
});
await expectFetch(0x5aff, 'https://testnet.sapphire.oasis.dev', {
await expectFetch(0x5aff, 'https://testnet.sapphire.oasis.io', {
fetch: fetchImpl as unknown as typeof fetch,
});
});
Expand Down
4 changes: 2 additions & 2 deletions contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ const config: HardhatUserConfig = {
},
networks: {
'emerald-testnet': {
url: 'https://testnet.emerald.oasis.dev',
url: 'https://testnet.emerald.oasis.io',
chainId: 0xa515,
accounts: process.env.EMERALD_TESTNET_PRIVATE_KEY
? [process.env.EMERALD_TESTNET_PRIVATE_KEY]
: [],
},
'sapphire-testnet': {
url: 'https://testnet.sapphire.oasis.dev',
url: 'https://testnet.sapphire.oasis.io',
chainId: 0x5aff,
accounts: process.env.SAPPHIRE_TESTNET_PRIVATE_KEY
? [process.env.SAPPHIRE_TESTNET_PRIVATE_KEY]
Expand Down
2 changes: 1 addition & 1 deletion docs/browser.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ repository.

:::

[block explorer]: https://testnet.explorer.sapphire.oasis.dev/tx/0x3303dea5d48291d1564cad573f21fc71fcbdc2b862e17e056287fd9207e3bc53
[block explorer]: https://explorer.oasis.io/testnet/sapphire/tx/0x3303dea5d48291d1564cad573f21fc71fcbdc2b862e17e056287fd9207e3bc53
[guide-transaction-calls]: guide.mdx#transactions--calls
[Hardhat boilerplate repo]: https://github.com/NomicFoundation/hardhat-boilerplate
[Hardhat boilerplate]: https://hardhat.org/tutorial/boilerplate-project
Expand Down
2 changes: 1 addition & 1 deletion docs/gasless.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ Use the newly deployed:
- address of your account for `--owner-address`

```shell
npx gsn relayer-run --relayHubAddress 0xc4423AB6133B06e4e60D594Ac49abE53374124b3 --managerStakeTokenAddress 0x6Ed21672c0c26Daa32943F7b1cA1f1d0ABdbac66 --ownerAddress '0xfA3AC9f65C9D75EE3978ab76c6a1105f03156204' --ethereumNodeUrl 'https://testnet.sapphire.oasis.dev' --workdir .
npx gsn relayer-run --relayHubAddress 0xc4423AB6133B06e4e60D594Ac49abE53374124b3 --managerStakeTokenAddress 0x6Ed21672c0c26Daa32943F7b1cA1f1d0ABdbac66 --ownerAddress '0xfA3AC9f65C9D75EE3978ab76c6a1105f03156204' --ethereumNodeUrl 'https://testnet.sapphire.oasis.io' --workdir .
```

### Fund and Register GSN Relay Server
Expand Down
6 changes: 3 additions & 3 deletions docs/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ParaTime][how-to-deposit-rose] chapter to learn more.

[overview chapter]: https://github.com/oasisprotocol/docs/blob/main/docs/general/oasis-network/README.mdx
[how-to-deposit-rose]: https://github.com/oasisprotocol/docs/blob/main/docs/general/manage-tokens/how-to-transfer-rose-into-paratime.mdx
[Testnet faucet]: https://faucet.testnet.oasis.dev/
[Testnet faucet]: https://faucet.testnet.oasis.io/

## Testnet and Mainnet

Expand Down Expand Up @@ -122,8 +122,8 @@ it'll work just fine.
Sapphire is programmable using any language that targets the EVM, such as Solidity
or Vyper. If you prefer to use an Ethereum framework like Hardhat or Foundry, you
can also use those with Sapphire; all you need to do is set your Web3 gateway URL.
You can find the details of the Oasis Sapphire Web3 gateway
[here](https://github.com/oasisprotocol/docs/blob/main/docs/dapp/sapphire/README.mdx#web3-gateway).
You can find the details of the Oasis Sapphire Web3 endpoints
[here](https://github.com/oasisprotocol/docs/blob/main/docs/dapp/sapphire/README.mdx#rpc-endpoints).

### Transactions & Calls

Expand Down
4 changes: 2 additions & 2 deletions docs/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ index 414e974..49c95f9 100644
+ networks: {
+ 'sapphire-testnet': {
+ // This is Testnet! If you want Mainnet, add a new network config item.
+ url: "https://testnet.sapphire.oasis.dev",
+ url: "https://testnet.sapphire.oasis.io",
+ accounts: process.env.PRIVATE_KEY
+ ? [process.env.PRIVATE_KEY]
+ : [],
Expand All @@ -101,7 +101,7 @@ Now for the fun part. We need to configure the Sapphire network and get some tok
Hit up the one and only [Oasis Testnet faucet] and select "Sapphire".
Submit the form and be on your way.

[Oasis Testnet faucet]: https://faucet.testnet.oasis.dev
[Oasis Testnet faucet]: https://faucet.testnet.oasis.io

### Get the Contract

Expand Down
6 changes: 3 additions & 3 deletions examples/hardhat-boilerplate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pnpm install
```

You will need some TEST tokens in order to deploy the smart contract. Head to
https://faucet.testnet.oasis.dev/ and request some.
https://faucet.testnet.oasis.io/ and request some.

Next, run this to deploy your contract on Sapphire Testnet:

Expand All @@ -31,8 +31,8 @@ pnpm start
```

Open [http://localhost:3000/](http://localhost:3000/) in a browser to see your
Dapp. You will need to have [Metamask](https://metamask.io) installed and
connected to `https://testnet.sapphire.oasis.dev/` endpoint with chain ID
dApp. You will need to have [Metamask](https://metamask.io) installed and
connected to `https://testnet.sapphire.oasis.io/` endpoint with chain ID
`23295`.

[Hardhat boilerplate code]: https://hardhat.org/tutorial
2 changes: 1 addition & 1 deletion examples/hardhat-boilerplate/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = {
chainId: 0x5afe,
},
'sapphire-testnet': {
url: "https://testnet.sapphire.oasis.dev",
url: "https://testnet.sapphire.oasis.io",
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: [],
Expand Down
2 changes: 1 addition & 1 deletion examples/hardhat/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const config: HardhatUserConfig = {
chainId: 0x5afe
},
'sapphire-testnet': {
url: 'https://testnet.sapphire.oasis.dev',
url: 'https://testnet.sapphire.oasis.io',
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: [],
Expand Down
2 changes: 1 addition & 1 deletion examples/onchain-signer/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const config: HardhatUserConfig = {
accounts,
},
'sapphire-testnet': {
url: 'https://testnet.sapphire.oasis.dev',
url: 'https://testnet.sapphire.oasis.io',
chainId: 0x5aff,
accounts,
},
Expand Down
2 changes: 1 addition & 1 deletion integrations/graph/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
restart: always
build: .
environment:
RPC: 'https://testnet.sapphire.oasis.dev'
RPC: 'https://testnet.sapphire.oasis.io'
graph-node:
image: graphprotocol/graph-node
ports:
Expand Down
8 changes: 4 additions & 4 deletions runtime/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading