-
Notifications
You must be signed in to change notification settings - Fork 1
/
locklift.config.ts
161 lines (152 loc) · 5.72 KB
/
locklift.config.ts
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import { lockliftChai, LockliftConfig } from "locklift";
import { FactorySource } from "./build/factorySource";
import { SimpleGiver, GiverWallet, TestnetGiver } from "./giverSettings";
import "locklift-verifier";
require("dotenv").config();
import chai from "chai";
chai.use(lockliftChai);
declare global {
const locklift: import("locklift").Locklift<FactorySource>;
}
const LOCAL_NETWORK_ENDPOINT = "http://localhost/graphql";
const config: LockliftConfig = {
compiler: {
// Specify path to your TON-Solidity-Compiler
// path: "/mnt/o/projects/broxus/TON-Solidity-Compiler/build/solc/solc",
// Or specify version of compiler
version: "0.62.0",
// Specify config for extarnal contracts as in exapmple
externalContracts: {
"node_modules/broxus-ton-tokens-contracts/build": [
"TokenRoot",
"TokenWallet",
"TokenRootUpgradeable",
"TokenWalletUpgradeable",
"TokenWalletPlatform",
],
},
},
linker: {
// Specify path to your stdlib
// lib: "/mnt/o/projects/broxus/TON-Solidity-Compiler/lib/stdlib_sol.tvm",
// // Specify path to your Linker
// path: "/mnt/o/projects/broxus/TVM-linker/target/release/tvm_linker",
// Or specify version of linker
version: "0.15.48",
},
verifier: {
verifierVersion: "latest", // contract verifier binary, see https://github.com/broxus/everscan-verify/releases
apiKey: process.env.VERIFY_API_KEY || "",
secretKey: process.env.VERIFY_SECRET_KEY || "",
// license: "AGPL-3.0-or-later", <- this is default value and can be overrided
},
networks: {
local: {
// Specify connection settings for https://github.com/broxus/everscale-standalone-client/
connection: {
group: "localnet",
type: "graphql",
id: 1,
data: {
endpoints: [LOCAL_NETWORK_ENDPOINT],
latencyDetectionInterval: 1000,
local: true,
},
},
// This giver is default local-node giverV2
giver: {
// Check if you need provide custom giver
// giverFactory: (ever, keyPair, address) => new SimpleGiver(ever, keyPair, address),
address: "0:ece57bcc6c530283becbbd8a3b24d3c5987cdddc3c8b7b33be6e4a6312490415",
key: "172af540e43a524763dd53b26a066d472a97c4de37d5498170564510608250c3",
},
tracing: {
endpoint: LOCAL_NETWORK_ENDPOINT,
},
keys: {
// Use everdev to generate your phrase
// !!! Never commit it in your repos !!!
phrase: "caution wedding nation nose snow school cradle surface version answer rough achieve",
amount: 20,
},
},
"local-80": {
// Specify connection settings for https://github.com/broxus/everscale-standalone-client/
connection: {
group: "localnet",
type: "graphql",
id: 1,
data: {
endpoints: ["http://localhost/graphql"],
latencyDetectionInterval: 1000,
local: true,
},
},
// This giver is default local-node giverV2
giver: {
// Check if you need provide custom giver
giverFactory: (ever, keyPair, address) => new SimpleGiver(ever, keyPair, address),
address: "0:ece57bcc6c530283becbbd8a3b24d3c5987cdddc3c8b7b33be6e4a6312490415",
key: "172af540e43a524763dd53b26a066d472a97c4de37d5498170564510608250c3",
},
tracing: {
endpoint: "http://localhost/graphql",
},
keys: {
phrase: "another floor talent month change gorilla bronze clip august cabbage earn enact",
amount: 20,
},
},
broxusTestnet: {
// Specify connection settings for https://github.com/broxus/everscale-standalone-client/
connection: {
group: "1",
id: 1,
type: "jrpc",
data: {
endpoint: "https://jrpc-broxustestnet.everwallet.net/rpc",
},
},
// This giver is default local-node giverV2
giver: {
// Check if you need provide custom giver
giverFactory: (ever, keyPair, address) => new GiverWallet(ever, keyPair, address),
// address: "0:ece57bcc6c530283becbbd8a3b24d3c5987cdddc3c8b7b33be6e4a6312490415",
// key: "172af540e43a524763dd53b26a066d472a97c4de37d5498170564510608250c3",
phrase: "expire caution sausage spot monkey prefer dad rib vicious pepper mimic armed",
accountId: 0,
address: "0:a1c67f9d2fac7de14e3bfd0d454b9ecf4a10b683e532bf85585c7f96634fd160",
},
keys: {
// Use everdev to generate your phrase
// !!! Never commit it in your repos !!!
// phrase: "action inject penalty envelope rabbit element slim tornado dinner pizza off blood",
phrase: "expire caution sausage spot monkey prefer dad rib vicious pepper mimic armed",
amount: 20,
},
},
mainnet: {
// Specify connection settings for https://github.com/broxus/everscale-standalone-client/
connection: "mainnetJrpc",
// This giver is default Wallet
giver: {
// Check if you need provide custom giver
giverFactory: (ever, keyPair, address) => new TestnetGiver(ever, keyPair, address),
address: "0:3bcef54ea5fe3e68ac31b17799cdea8b7cffd4da75b0b1a70b93a18b5c87f723",
key: process.env.MAIN_GIVER_KEY ?? "172af540e43a524763dd53b26a066d472a97c4de37d5498170564510608250c3",
},
keys: {
// Use everdev to generate your phrase
// !!! Never commit it in your repos !!!
// phrase: "action inject penalty envelope rabbit element slim tornado dinner pizza off blood",
phrase: process.env.SEED ?? "expire caution sausage spot monkey prefer dad rib vicious pepper mimic armed",
amount: 500,
},
},
},
mocha: {
timeout: 2000000,
bail: true,
},
};
export default config;