Skip to content

Commit

Permalink
chore: convert minimumRotation delay into seconds unit
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Jul 29, 2024
1 parent 6f52fc2 commit e0dece9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ Deploy the gateway package:
node sui/deploy-contract.js deploy axelar_gateway
```

Note: the `minimumRotationDelay` is in `seconds` unit. The default value is `24 * 60 * 60` (1 day).

Use `--help` flag to see other setup params that can be overridden.

- For testing convenience, you can use the secp256k1 wallet as the signer set for the gateway.
Expand Down
8 changes: 6 additions & 2 deletions sui/deploy-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,15 @@ if (require.main === module) {

const deployCmd = program
.name('deploy')
.description('Deploy SUI modules')
.description('Deploy a Sui package')
.command('deploy <contractName>')
.addOption(new Option('--signers <signers>', 'JSON with the initial signer set').env('SIGNERS'))
.addOption(new Option('--operator <operator>', 'operator for the gateway (defaults to the deployer address)').env('OPERATOR'))
.addOption(new Option('--minimumRotationDelay <minimumRotationDelay>', 'minium delay for signer rotations (in ms)').default('0'))
.addOption(
new Option('--minimumRotationDelay <minimumRotationDelay>', 'minium delay for signer rotations (in second)')
.default(24 * 60 * 60)
.parseArg((val) => parseInt(val) * 1000),
)
.addOption(new Option('--domainSeparator <domainSeparator>', 'domain separator'))
.addOption(new Option('--nonce <nonce>', 'nonce for the signer (defaults to HashZero)'))
.addOption(new Option('--previousSigners <previousSigners>', 'number of previous signers to retain').default('15'))
Expand Down

0 comments on commit e0dece9

Please sign in to comment.