Skip to content

Commit

Permalink
solana payouts more explicit log (#423)
Browse files Browse the repository at this point in the history
* solana payouts more explicit log

* fmt
  • Loading branch information
aalu1418 committed Nov 7, 2022
1 parent 17ce400 commit feefad3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Expand Up @@ -24,7 +24,9 @@ export default class extends Close {
const address = new PublicKey(this.args[0])
const linkPublicKey = new PublicKey(this.flags.link || process.env.LINK)
const tokenReceiver = await getAssociatedTokenAddress(linkPublicKey, signer, true)
logger.info(`This command involves a token payout. The receiver will be: ${tokenReceiver}`)
logger.info(
`This command involves a token payout. If owed tokens are unable to be paid to node operators, they will be sent to: ${tokenReceiver}`,
)

const { config, oracles } = (await program.account.state.fetch(address)) as any
const [vaultAuthority] = await PublicKey.findProgramAddress(
Expand Down
Expand Up @@ -214,7 +214,9 @@ export default class AcceptProposal extends SolanaCommand {
makeRawTransaction = async (signer: PublicKey) => {
const linkPublicKey = new PublicKey(this.flags.link || process.env.LINK)
const tokenReceiver = await getAssociatedTokenAddress(linkPublicKey, signer, true)
logger.info(`This command involves a token payout. The receiver will be: ${tokenReceiver}`)
logger.info(
`This command involves a token payout. If owed tokens are unable to be paid to node operators, they will be sent to: ${tokenReceiver}`,
)

const tx = await this.program.methods
.acceptProposal(this.contractInput.offchainDigest)
Expand Down
Expand Up @@ -74,7 +74,9 @@ export default class SetBilling extends SolanaCommand {
.map((oracle) => ({ pubkey: oracle.payee, isWritable: true, isSigner: false }))

const billingAC = new PublicKey(info.config.billingAccessController)
logger.info(`This command involves a token payout. The receiver will be: ${tokenReceiver}`)
logger.info(
`This command involves a token payout. If owed tokens are unable to be paid to node operators, they will be sent to: ${tokenReceiver}`,
)
const data = await this.program.methods
.setBilling(new BN(this.input.observationPaymentGjuels), new BN(this.input.transmissionPaymentGjuels))
.accounts({
Expand Down

0 comments on commit feefad3

Please sign in to comment.