File tree 5 files changed +7
-19
lines changed
5 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export TF_VAR_DOCKERHUB_ACCOUNT=$DOCKERHUB_ACCOUNT
29
29
export TF_VAR_FORK_MNEMONIC=$FORK_MNEMONIC
30
30
export TF_VAR_INFURA_API_KEY=$INFURA_API_KEY
31
31
export TF_VAR_API_KEY=$FORK_API_KEY
32
+ export TF_VAR_CHAIN_ID=$CHAIN_ID
32
33
33
34
# If given a repository name, use it to construct and set/override the backend key.
34
35
# Otherwise use the key as specified in the terraform.
Original file line number Diff line number Diff line change 1
1
dest
2
2
node_modules
3
3
.cache
4
- .env
4
+ .env *
5
5
* .log
6
6
* .swp
7
7
.tsbuildinfo
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ data "terraform_remote_state" "aztec2_iac" {
35
35
}
36
36
37
37
locals {
38
- api_prefix = var. API_PREFIX == " " ? " /${ var . DEPLOY_TAG } /aztec-faucet" : " /${ var . DEPLOY_TAG } /aztec-faucet/${ var . API_PREFIX } "
38
+ api_prefix = " /${ var . DEPLOY_TAG } /aztec-faucet/${ var . API_KEY } "
39
+ rpc_url = " https://${ var . DEPLOY_TAG } -mainnet-fork.aztec.network:8545/${ var . API_KEY } "
39
40
}
40
41
41
42
@@ -110,11 +111,7 @@ resource "aws_ecs_task_definition" "aztec-faucet" {
110
111
},
111
112
{
112
113
"name": "RPC_URL",
113
- "value": "${ var . RPC_URL } "
114
- },
115
- {
116
- "name": "API_KEY",
117
- "value": "${ var . API_KEY } "
114
+ "value": "${ local . rpc_url } "
118
115
},
119
116
{
120
117
"name": "API_PREFIX",
Original file line number Diff line number Diff line change @@ -2,23 +2,12 @@ variable "DEPLOY_TAG" {
2
2
type = string
3
3
}
4
4
5
- variable "RPC_URL" {
6
- type = string
7
- default = " testnet"
8
- }
9
-
10
5
variable "API_KEY" {
11
6
type = string
12
7
}
13
8
14
- variable "API_PREFIX" {
15
- type = string
16
- default = " "
17
- }
18
-
19
9
variable "CHAIN_ID" {
20
10
type = string
21
- default = 31337
22
11
}
23
12
24
13
variable "FAUCET_PRIVATE_KEY" {
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ export function getConfigEnvVars(): SequencerClientConfig {
43
43
REGISTRY_CONTRACT_ADDRESS ,
44
44
INBOX_CONTRACT_ADDRESS ,
45
45
CONTRACT_DEPLOYMENT_EMITTER_ADDRESS ,
46
+ OUTBOX_CONTRACT_ADDRESS ,
46
47
} = process . env ;
47
48
48
49
const publisherPrivateKey : Hex = SEQ_PUBLISHER_PRIVATE_KEY
@@ -53,7 +54,7 @@ export function getConfigEnvVars(): SequencerClientConfig {
53
54
rollupAddress : ROLLUP_CONTRACT_ADDRESS ? EthAddress . fromString ( ROLLUP_CONTRACT_ADDRESS ) : EthAddress . ZERO ,
54
55
registryAddress : REGISTRY_CONTRACT_ADDRESS ? EthAddress . fromString ( REGISTRY_CONTRACT_ADDRESS ) : EthAddress . ZERO ,
55
56
inboxAddress : INBOX_CONTRACT_ADDRESS ? EthAddress . fromString ( INBOX_CONTRACT_ADDRESS ) : EthAddress . ZERO ,
56
- outboxAddress : EthAddress . ZERO ,
57
+ outboxAddress : OUTBOX_CONTRACT_ADDRESS ? EthAddress . fromString ( OUTBOX_CONTRACT_ADDRESS ) : EthAddress . ZERO ,
57
58
contractDeploymentEmitterAddress : CONTRACT_DEPLOYMENT_EMITTER_ADDRESS
58
59
? EthAddress . fromString ( CONTRACT_DEPLOYMENT_EMITTER_ADDRESS )
59
60
: EthAddress . ZERO ,
You can’t perform that action at this time.
0 commit comments