Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Update test networks #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ npm run start-sandbox

## Interacting with Live Networks

- A test faucet key can be obtained from https://faucet.tzalpha.net/. Once saved, it can be imported inside `truffle-config.js`:
- A test faucet key can be obtained from [Faucet](https://teztnets.xyz/#protocol-teztnets). Once saved, it can be imported inside `truffle-config.js`:

```javascript

const { mnemonic, secret, password, email } = require("./faucet.json");

module.exports = {
networks: {
carthagenet: {
host: "https://carthagenet.smartpy.io",
granadanet: {
host: "https://granadanet.smartpy.io",
port: 443,
network_id: "*",
secret,
Expand All @@ -96,8 +96,8 @@ npm run start-sandbox

module.exports = {
networks: {
carthagenet: {
host: "https://carthagenet.smartpy.io",
granadanet: {
host: "https://granadanet.smartpy.io",
port: 443,
network_id: "*",
secretKey: "edsk...", // private key
Expand All @@ -108,6 +108,6 @@ npm run start-sandbox
```

```shell
truffle migrate --network carthagenet
truffle test --network carthagenet
truffle migrate --network granadanet
truffle test --network granadanet
```
12 changes: 6 additions & 6 deletions truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ module.exports = {
secretKey: alice.sk,
type: "tezos"
},
carthagenet: {
host: "https://carthagenet.smartpy.io",
mainnet: {
host: "https://mainnet.smartpy.io",
port: 443,
network_id: "*",
type: "tezos"
},
mainnet: {
host: "https://mainnet.smartpy.io",
granadanet: {
host: "https://granadanet.smartpy.io",
port: 443,
network_id: "*",
type: "tezos"
},
zeronet: {
host: "https://zeronet.smartpy.io",
hangzhounet: {
host: "https://hangzhounet.smartpy.io",
port: 443,
network_id: "*",
type: "tezos"
Expand Down