API

Treasury Management 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

initializeTreasuryManagementV0

Accounts

NameMutabilitySignerDocs
payermutyes
treasuryManagementmutno
treasuryMintimmutno
supplyMintimmutno
mintAuthorityimmutyes
circuitBreakermutno
treasurymutno
systemProgramimmutno
circuitBreakerProgramimmutno
associatedTokenProgramimmutno
tokenProgramimmutno

Args

NameTypeDocs
argsInitializeTreasuryManagementArgsV0

updateTreasuryManagementV0

Accounts

NameMutabilitySignerDocs
treasuryManagementmutno
authorityimmutyes

Args

NameTypeDocs
argsUpdateTreasuryManagementArgsV0

redeemV0

Accounts

NameMutabilitySignerDocs
treasuryManagementimmutno
treasuryMintimmutno
supplyMintmutno
treasurymutno
circuitBreakermutno
frommutno
tomutno
ownerimmutyes
circuitBreakerProgramimmutno
tokenProgramimmutno

Args

NameTypeDocs
argsRedeemArgsV0

Accounts

TreasuryManagementV0

FieldType
treasuryMintpublicKey
supplyMintpublicKey
authoritypublicKey
treasurypublicKey
curveCurve
freezeUnixTimei64
bumpSeedu8

Types

WindowedCircuitBreakerConfigV0

FieldType
windowSizeSecondsu64
thresholdTypeThresholdType
thresholdu64

InitializeTreasuryManagementArgsV0

FieldType
authoritypublicKey
curveCurve
freezeUnixTimei64
windowConfigWindowedCircuitBreakerConfigV0

RedeemArgsV0

FieldType
amountu64
expectedOutputAmountu64

UpdateTreasuryManagementArgsV0

FieldType
authoritypublicKey
curveCurve
freezeUnixTimei64

ThresholdType

VariantFields
Percent
Absolute

Curve

VariantFields
ExponentialCurveV0k: u128
Previous