Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solana payouts more explicit log #423

Merged
merged 2 commits into from Nov 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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