API

Rewards Oracle SDK

Quick tip

If you are looking for a quick start guide, check out the Getting Started guide. We also have some react examples here.

Instructions

set_current_rewards_wrapper_v0

Accounts

NameMutabilitySignerDocs
oracleimmutno
lazy_distributorimmutno
recipientimmutno
key_to_assetimmutno
oracle_signerimmutno
lazy_distributor_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

set_current_rewards_wrapper_v1

Accounts

NameMutabilitySignerDocs
oracleimmutno
lazy_distributorimmutno
recipientimmutno
key_to_assetimmutno
oracle_signerimmutno
lazy_distributor_programimmutno
system_programimmutno

Args

NameTypeDocs
args[object Object]

set_current_rewards_wrapper_v2

Accounts

NameMutabilitySignerDocs
payerimmutno
lazy_distributorimmutno
recipientimmutno
key_to_assetimmutno
oracle_signerimmutno
lazy_distributor_programimmutno
system_programimmutno
sysvar_instructionsimmutnothe supplied Sysvar could be anything else. The Instruction Sysvar has not been implemented in the Anchor framework yet, so this is the safe approach.

Args

NameTypeDocs
args[object Object]

Accounts

KeyToAssetV0

undefined

LazyDistributorV0

undefined

RecipientV0

undefined

Types

KeySerialization

VariantFields
B58
UTF8

KeyToAssetV0

FieldType
daopubkey
assetpubkey
entity_keybytes
bump_seedu8
key_serialization[object Object]

LazyDistributorV0

FieldType
versionu16
rewards_mintpubkey
rewards_escrowpubkey
authoritypubkey
oracles[object Object]
bump_seedu8
approverpubkey

OracleConfigV0

FieldType
oraclepubkey
urlstring

RecipientV0

FieldType
lazy_distributorpubkey
assetpubkey
total_rewardsu64
current_config_versionu16
current_rewards[object Object]
bump_seedu8
reservedu64
destinationpubkey

SetCurrentRewardsWrapperArgsV0

FieldType
entity_keybytes
oracle_indexu16
current_rewardsu64

SetCurrentRewardsWrapperArgsV1

FieldType
oracle_indexu16
current_rewardsu64
Previous