Skip to content

Commit

Permalink
add message to sign on ledger (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber authored Jun 11, 2024
1 parent f826131 commit e72cf97
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions commands/release-rewards.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { fileURLToPath } from 'node:url'

export const releaseRewards = async opts => {
const { contractWithSigner } = await createContract(opts)
console.error('Please sign on your ledger...')
const tx = await contractWithSigner.releaseRewards()
console.log(tx.hash)
console.log('Awaiting confirmation...')
Expand Down
1 change: 1 addition & 0 deletions commands/set-min-balance-for-transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const setMinBalanceForTransfer = async ({ minBalance, ...opts }) => {
console.log(`setting min balance for transfer to ${ethers.formatEther(minBalance)} FIL`)
console.log(`current value: ${ethers.formatEther(await contract.minBalanceForTransfer())} FIL`)

console.error('Please sign on your ledger...')
const tx = await contractWithSigner.setMinBalanceForTransfer(minBalance)
console.log(tx.hash)
}
1 change: 1 addition & 0 deletions commands/set-next-round-length.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const setNextRoundLength = async ({ blocks, ...opts }) => {
console.log(`setting next round length to ${blocks} blocks`)
console.log(`current value: ${await contract.nextRoundLength()} blocks`)

console.error('Please sign on your ledger...')
const tx = await contractWithSigner.setNextRoundLength(blocks)
console.log(tx.hash)
console.log('Awaiting confirmation...')
Expand Down
1 change: 1 addition & 0 deletions commands/set-round-reward.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const setRoundReward = async ({ reward, ...opts }) => {
console.log(`setting round reward to ${ethers.formatEther(reward)} FIL`)
console.log(`current value: ${ethers.formatEther(await contract.roundReward())} FIL`)

console.error('Please sign on your ledger...')
const tx = await contractWithSigner.setRoundReward(reward)
console.log(tx.hash)
console.log('Awaiting confirmation...')
Expand Down
1 change: 1 addition & 0 deletions commands/tick.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { createContract } from '../index.js'

export const tick = async opts => {
const { contractWithSigner } = await createContract(opts)
console.error('Please sign on your ledger...')
const tx = await contractWithSigner.tick()
console.log(tx.hash)
}

0 comments on commit e72cf97

Please sign in to comment.