-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
54 lines (52 loc) · 1.6 KB
/
truffle-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const HDWalletProvider = require("@truffle/hdwallet-provider");
const sapphire = require("@oasisprotocol/sapphire-paratime");
const mnemonicPhrase = "refuse sport student pond weekend treat churn foot uniform bonus gaze science";
module.exports = {
contracts_directory: "./contracts",
migrations_directory: "./contracts/migrations",
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
sapphire_localnet: {
provider: () =>
sapphire.wrap(
new HDWalletProvider({
// 5 accounts are created and all are necessary for the successful running of tests.
// To startup the local sapphire network, the following command is used:
// $ ./setup_localnet.sh
mnemonic: { phrase: mnemonicPhrase },
providerOrUrl: "http://localhost:8545"
}),
),
network_id: 0x5afd,
},
sapphire_mainnet: {
provider: () =>
sapphire.wrap(
new HDWalletProvider({
privateKeys: [ process.env.PRIVATE_KEY ],
providerOrUrl: "https://sapphire.oasis.io"
})
),
network_id: 0x5afe,
},
sapphire_testnet: {
provider: () =>
sapphire.wrap(
new HDWalletProvider({
privateKeys: [ process.env.PRIVATE_KEY ],
providerOrUrl: "https://testnet.sapphire.oasis.dev"
})
),
network_id: 0x5aff,
}
},
compilers: {
solc: {
version: "0.8.13"
}
}
}