@@ -8,82 +8,81 @@ import (
8
8
)
9
9
10
10
type Config struct {
11
- Risc0ServerEndpoint string `env:"RISC0_SERVER_ENDPOINT"`
12
- Halo2ServerEndpoint string `env:"HALO2_SERVER_ENDPOINT"`
13
- ZKWasmServerEndpoint string `env:"ZKWASM_SERVER_ENDPOINT"`
14
- WasmServerEndpoint string `env:"WASM_SERVER_ENDPOINT"`
15
- ChainEndpoint string `env:"CHAIN_ENDPOINT"`
16
- ProjectContractAddress string `env:"PROJECT_CONTRACT_ADDRESS,optional"`
17
- DatabaseDSN string `env:"DATABASE_DSN"`
18
- BootNodeMultiAddr string `env:"BOOTNODE_MULTIADDR"`
19
- ProverContractAddress string `env:"PROVER_CONTRACT_ADDRESS,optional"`
20
- ProverPrivateKey string `env:"PROVER_PRIVATE_KEY ,optional"`
21
- IoTeXChainID int `env:"IOTEX_CHAINID"`
22
- SchedulerEpoch uint64 `env:"SCHEDULER_EPOCH"`
23
- IPFSEndpoint string `env:"IPFS_ENDPOINT"`
24
- ProjectFileDirectory string `env:"PROJECT_FILE_DIRECTORY,optional"`
25
- ProjectCacheDirectory string `env:"PROJECT_CACHE_DIRECTORY,optional"`
26
- LogLevel int `env:"LOG_LEVEL,optional"`
27
- SequencerPubKey string `env:"SEQUENCER_PUBKEY,optional"`
28
- env string `env:"-"`
11
+ Risc0ServerEndpoint string `env:"RISC0_SERVER_ENDPOINT"`
12
+ Halo2ServerEndpoint string `env:"HALO2_SERVER_ENDPOINT"`
13
+ ZKWasmServerEndpoint string `env:"ZKWASM_SERVER_ENDPOINT"`
14
+ WasmServerEndpoint string `env:"WASM_SERVER_ENDPOINT"`
15
+ ChainEndpoint string `env:"CHAIN_ENDPOINT"`
16
+ ProjectContractAddress string `env:"PROJECT_CONTRACT_ADDRESS,optional"`
17
+ DatabaseDSN string `env:"DATABASE_DSN"`
18
+ BootNodeMultiAddr string `env:"BOOTNODE_MULTIADDR"`
19
+ ProverContractAddress string `env:"PROVER_CONTRACT_ADDRESS,optional"`
20
+ ProverOperatorPrivateKey string `env:"PROVER_OPERATOR_PRIVATE_KEY ,optional"`
21
+ IoTeXChainID int `env:"IOTEX_CHAINID"`
22
+ SchedulerEpoch uint64 `env:"SCHEDULER_EPOCH"`
23
+ IPFSEndpoint string `env:"IPFS_ENDPOINT"`
24
+ ProjectFileDirectory string `env:"PROJECT_FILE_DIRECTORY,optional"`
25
+ ProjectCacheDirectory string `env:"PROJECT_CACHE_DIRECTORY,optional"`
26
+ LogLevel int `env:"LOG_LEVEL,optional"`
27
+ SequencerPubKey string `env:"SEQUENCER_PUBKEY,optional"`
28
+ env string `env:"-"`
29
29
}
30
30
31
31
var (
32
32
defaultConfig = & Config {
33
- Risc0ServerEndpoint : "risc0:4001" ,
34
- Halo2ServerEndpoint : "halo2:4001" ,
35
- ZKWasmServerEndpoint : "zkwasm:4001" ,
36
- WasmServerEndpoint : "wasm:4001" ,
37
- ChainEndpoint : "https://babel-api.testnet.iotex.io" ,
38
- ProjectContractAddress : "0x2339644f65c371Ca36b335A7eC3EB8AD8CBd5F51 " ,
39
- DatabaseDSN : "postgres://test_user:test_passwd@postgres:5432/test?sslmode=disable" ,
40
- BootNodeMultiAddr : "/dns4/bootnode-0.testnet.iotex.one/tcp/4689/ipfs/12D3KooWFnaTYuLo8Mkbm3wzaWHtUuaxBRe24Uiopu15Wr5EhD3o" ,
41
- ProverContractAddress : "0x2B9BC8eC74E7F2526045eb13fFa37b10e0d40464 " ,
42
- ProverPrivateKey : "did:key:z6MkmF1AgufHf8ASaxDcCR8iSZjEsEbJMp7LkqyEHw6123" ,
43
- IoTeXChainID : 2 ,
44
- SchedulerEpoch : 20 ,
45
- IPFSEndpoint : "ipfs.mainnet.iotex.io" ,
46
- LogLevel : int (slog .LevelDebug ),
47
- SequencerPubKey : "0x04df6acbc5b355aabfb2145b36b20b7942c831c245c423a20b189fab4cf3a3dba3d564080841f2eb4890c118ca5e0b80b25f81269621c5e28273a962996c109afa" ,
33
+ Risc0ServerEndpoint : "risc0:4001" ,
34
+ Halo2ServerEndpoint : "halo2:4001" ,
35
+ ZKWasmServerEndpoint : "zkwasm:4001" ,
36
+ WasmServerEndpoint : "wasm:4001" ,
37
+ ChainEndpoint : "https://babel-api.testnet.iotex.io" ,
38
+ ProjectContractAddress : "0x57872cF4b6D02053D5486F6882062c41a0F5C26a " ,
39
+ DatabaseDSN : "postgres://test_user:test_passwd@postgres:5432/test?sslmode=disable" ,
40
+ BootNodeMultiAddr : "/dns4/bootnode-0.testnet.iotex.one/tcp/4689/ipfs/12D3KooWFnaTYuLo8Mkbm3wzaWHtUuaxBRe24Uiopu15Wr5EhD3o" ,
41
+ ProverContractAddress : "0x5B1AE92ed4a819C0B0e957a67F8dc39c0aC17Dfc " ,
42
+ ProverOperatorPrivateKey : "did:key:z6MkmF1AgufHf8ASaxDcCR8iSZjEsEbJMp7LkqyEHw6123" ,
43
+ IoTeXChainID : 2 ,
44
+ SchedulerEpoch : 20 ,
45
+ IPFSEndpoint : "ipfs.mainnet.iotex.io" ,
46
+ LogLevel : int (slog .LevelDebug ),
47
+ SequencerPubKey : "0x04df6acbc5b355aabfb2145b36b20b7942c831c245c423a20b189fab4cf3a3dba3d564080841f2eb4890c118ca5e0b80b25f81269621c5e28273a962996c109afa" ,
48
48
}
49
49
50
50
defaultDebugConfig = & Config {
51
- Risc0ServerEndpoint : "localhost:4001" ,
52
- Halo2ServerEndpoint : "localhost:4002" ,
53
- ZKWasmServerEndpoint : "localhost:4003" ,
54
- WasmServerEndpoint : "localhost:4004" ,
55
- ChainEndpoint : "https://babel-api.testnet.iotex.io" ,
56
- ProjectContractAddress : "0x2339644f65c371Ca36b335A7eC3EB8AD8CBd5F51" ,
57
- DatabaseDSN : "postgres://test_user:test_passwd@localhost:5432/test?sslmode=disable" ,
58
- BootNodeMultiAddr : "/dns4/bootnode-0.testnet.iotex.one/tcp/4689/ipfs/12D3KooWFnaTYuLo8Mkbm3wzaWHtUuaxBRe24Uiopu15Wr5EhD3o" ,
59
- ProverContractAddress : "0x2B9BC8eC74E7F2526045eb13fFa37b10e0d40464" ,
60
- ProverPrivateKey : "dbfe03b0406549232b8dccc04be8224fcc0afa300a33d4f335dcfdfead861c85" ,
61
- IoTeXChainID : 2 ,
62
- SchedulerEpoch : 20 ,
63
- IPFSEndpoint : "ipfs.mainnet.iotex.io" ,
64
- ProjectFileDirectory : "../../test/project" ,
65
- ProjectCacheDirectory : "./project_cache" ,
66
- LogLevel : int (slog .LevelDebug ),
67
- SequencerPubKey : "0x04df6acbc5b355aabfb2145b36b20b7942c831c245c423a20b189fab4cf3a3dba3d564080841f2eb4890c118ca5e0b80b25f81269621c5e28273a962996c109afa" ,
51
+ Risc0ServerEndpoint : "localhost:4001" ,
52
+ Halo2ServerEndpoint : "localhost:4002" ,
53
+ ZKWasmServerEndpoint : "localhost:4003" ,
54
+ WasmServerEndpoint : "localhost:4004" ,
55
+ ChainEndpoint : "https://babel-api.testnet.iotex.io" ,
56
+ ProjectContractAddress : "0x57872cF4b6D02053D5486F6882062c41a0F5C26a" ,
57
+ DatabaseDSN : "postgres://test_user:test_passwd@localhost:5432/test?sslmode=disable" ,
58
+ BootNodeMultiAddr : "/dns4/bootnode-0.testnet.iotex.one/tcp/4689/ipfs/12D3KooWFnaTYuLo8Mkbm3wzaWHtUuaxBRe24Uiopu15Wr5EhD3o" ,
59
+ ProverContractAddress : "0x5B1AE92ed4a819C0B0e957a67F8dc39c0aC17Dfc" ,
60
+ ProverOperatorPrivateKey : "dbfe03b0406549232b8dccc04be8224fcc0afa300a33d4f335dcfdfead861c85" ,
61
+ IoTeXChainID : 2 ,
62
+ SchedulerEpoch : 20 ,
63
+ IPFSEndpoint : "ipfs.mainnet.iotex.io" ,
64
+ ProjectCacheDirectory : "./project_cache" ,
65
+ LogLevel : int (slog .LevelDebug ),
66
+ SequencerPubKey : "0x04df6acbc5b355aabfb2145b36b20b7942c831c245c423a20b189fab4cf3a3dba3d564080841f2eb4890c118ca5e0b80b25f81269621c5e28273a962996c109afa" ,
68
67
}
69
68
70
69
defaultTestConfig = & Config {
71
- Risc0ServerEndpoint : "localhost:14001" ,
72
- Halo2ServerEndpoint : "localhost:14002" ,
73
- ZKWasmServerEndpoint : "localhost:14003" ,
74
- WasmServerEndpoint : "localhost:14004" ,
75
- ChainEndpoint : "https://babel-api.testnet.iotex.io" ,
76
- ProjectContractAddress : "" ,
77
- DatabaseDSN : "postgres://test_user:test_passwd@localhost:15432/test?sslmode=disable" ,
78
- BootNodeMultiAddr : "/dns4/bootnode-0.testnet.iotex.one/tcp/4689/ipfs/12D3KooWFnaTYuLo8Mkbm3wzaWHtUuaxBRe24Uiopu15Wr5EhD3o" ,
79
- ProverContractAddress : "" ,
80
- ProverPrivateKey : "" ,
81
- IoTeXChainID : 2 ,
82
- SchedulerEpoch : 20 ,
83
- IPFSEndpoint : "ipfs.mainnet.iotex.io" ,
84
- ProjectFileDirectory : "./testdata" ,
85
- LogLevel : int (slog .LevelDebug ),
86
- SequencerPubKey : "0x04df6acbc5b355aabfb2145b36b20b7942c831c245c423a20b189fab4cf3a3dba3d564080841f2eb4890c118ca5e0b80b25f81269621c5e28273a962996c109afa" ,
70
+ Risc0ServerEndpoint : "localhost:14001" ,
71
+ Halo2ServerEndpoint : "localhost:14002" ,
72
+ ZKWasmServerEndpoint : "localhost:14003" ,
73
+ WasmServerEndpoint : "localhost:14004" ,
74
+ ChainEndpoint : "https://babel-api.testnet.iotex.io" ,
75
+ ProjectContractAddress : "" ,
76
+ DatabaseDSN : "postgres://test_user:test_passwd@localhost:15432/test?sslmode=disable" ,
77
+ BootNodeMultiAddr : "/dns4/bootnode-0.testnet.iotex.one/tcp/4689/ipfs/12D3KooWFnaTYuLo8Mkbm3wzaWHtUuaxBRe24Uiopu15Wr5EhD3o" ,
78
+ ProverContractAddress : "" ,
79
+ ProverOperatorPrivateKey : "" ,
80
+ IoTeXChainID : 2 ,
81
+ SchedulerEpoch : 20 ,
82
+ IPFSEndpoint : "ipfs.mainnet.iotex.io" ,
83
+ ProjectFileDirectory : "./testdata" ,
84
+ LogLevel : int (slog .LevelDebug ),
85
+ SequencerPubKey : "0x04df6acbc5b355aabfb2145b36b20b7942c831c245c423a20b189fab4cf3a3dba3d564080841f2eb4890c118ca5e0b80b25f81269621c5e28273a962996c109afa" ,
87
86
}
88
87
)
89
88
0 commit comments