Skip to content

Commit

Permalink
Merge pull request #116 from sotatek-dev/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Sotatek-TanHoang authored Sep 30, 2024
2 parents 9b0d390 + fcd7474 commit 0408ac9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions docker-compose.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,36 @@ services:
networks:
- myNetwork
user: node
environment:
EVM_VALIDATOR_PRIVATE_KEY : ${EVM_VALIDATOR_PRIVATE_KEY_1}

validate-evm-signature-2:
image: mina-bridge:1.0.0
command: >
sh -c "npm run console validate-eth-bridge-unlock"
tty: true
restart: always
depends_on:
- postgres
networks:
- myNetwork
user: node
environment:
EVM_VALIDATOR_PRIVATE_KEY : ${EVM_VALIDATOR_PRIVATE_KEY_2}

validate-evm-signature-3:
image: mina-bridge:1.0.0
command: >
sh -c "npm run console validate-eth-bridge-unlock"
tty: true
restart: always
depends_on:
- postgres
networks:
- myNetwork
user: node
environment:
EVM_VALIDATOR_PRIVATE_KEY : ${EVM_VALIDATOR_PRIVATE_KEY_3}
validate-mina-signature-1:
image: mina-bridge:1.0.0
command: >
Expand Down
1 change: 1 addition & 0 deletions src/constants/env.constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export enum EEnvKey {
DECIMAL_TOKEN_EVM = 'DECIMAL_TOKEN_EVM',
MINA_VALIDATOR_THRESHHOLD = 'MINA_VALIDATOR_THRESHHOLD',
MINA_VALIDATOR_PRIVATE_KEY = 'MINA_VALIDATOR_PRIVATE_KEY',
EVM_VALIDATOR_PRIVATE_KEY = 'EVM_VALIDATOR_PRIVATE_KEY',
MINA_CRAWL_SAFE_BLOCK = 'MINA_CRAWL_SAFE_BLOCK',
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/crawler/sender.evmbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class SenderEVMBridge {
}

public getWallet(): ethers.Wallet {
const privateKey = this.configService.get<string>(EEnvKey.SIGNER_PRIVATE_KEY);
const privateKey = this.configService.get<string>(EEnvKey.EVM_VALIDATOR_PRIVATE_KEY);
return new ethers.Wallet(privateKey);
}
}

0 comments on commit 0408ac9

Please sign in to comment.