Static
Readonly
ACCOUNT_Static
Readonly
MIN_Static
addCargo IDL program
Authority for the cargo pod
Authority for origin Token Account
Cargo Pod PublicKey
Cargo Type PublicKey
Stats Definition PublicKey
Origin Token Account
Token Account owned by Cargo Pod
Amount of cargo to be deposited
Static
closeClose Cargo Pod Account
InstructionReturn
Cargo IDL program
Authority for Cargo Pod
Cargo Pod Account
Static
closeClose Cargo Pod Token Account
InstructionReturn
input parameters for this function
Cargo Pod Authority
Cargo Pod Account
Cargo Type Account
Mint
Cargo IDL program
Cargo Pod Token Account
Static
consumeBurns Cargo in a Cargo Pod This is permanent and irreversible
InstructionReturn
Cargo IDL program
Authority for the Cargo Pod
Cargo Pod Account
Cargo Type Account
Stats Definition Account
Token Account owned by Cargo Pod
Token Mint key
Amount of cargo to be burned
Static
decodeStatic
findFinds the Cargo Pod PDA
PDA key & bump
Cargo IDL program
Pod Seeds
Static
initInitialize new Cargo Pod
IntructionReturn
Cargo program
Authority for new Cargo Pod
The key for StatsDefinition Account
Pod Seeds
Static
legitimizeLegitimize cargo The cargo pod token accounts can receive tokens from anyone. However, only tokens received through the cargo pod program are recognized as valid cargo. This instruction can be used in cases where one wants to "legitimize" such token account balances Only the registered cargo pod authority is allowed to do this
InstructionReturn
Cargo IDL program
Cargo Pod Authority
Cargo Pod Account
Cargo Type Account
Stats Definition Account
Cargo Pod Token Account
Amount of cargo to be legitimized
Static
mintMints to a Cargo Pod Token Account
InstructionReturn
Cargo IDL program
Amount to be minted
Authority for the Cargo Pod Account
Mint Key
Stats Definition Account
Cargo Pod Account
Cargo Type Account
Cargo Pod Token Account
Token Program
Static
removeRemove Cargo from Cargo Pod Only the registered cargo pod authority is allowed to do this
InstructionReturn
Cargo IDL program
Authority for Cargo Pod
Cargo Pod Account
Cargo Type Account
Stats Definition Account
Token Account owned by Cargo Pod
Destination Token Account
Amount of cargo to be transferred
Static
transferUpdates Cargo Pod Authority This transfers the ownership of the cargo pod to another person/entity
InstructionReturn
Cargo IDL program
Current Authority
New Authority
Cargo Pod account
Static
transferTransfers Cargo between 2 Cargo Pods
InstructionReturn
Cargo IDL program
Authority for the origin Cargo Pod
Authority for the destination Cargo Pod
Origin Cargo Pod
Destination Cargo Pod
Cargo Type Account
Stats Definition Account
Token Account owned by origin Cargo Pod
Token Account owned by destination Cargo Pod
Amount of cargo to be transferred
Static
updateUpdates a Cargo Pod seq id
to match the Stats Definition, Also freezes the pod until all related token accounts are updated
InstructionReturn
Cargo IDL program
Cargo Pod Account
Stats Definition Account
Static
updateUpdates Cargo Pod Token Account
InstructionReturn
Cargo IDL program
Stats Definition Account
Cargo Pod Account
Old Cargo Type Account
Current Cargo Type Account
Token Account owned by the Cargo Pod
Static
updateUsed in the case a Cargo Type is not valid any more for a new seq_id
, also tokens are burned and substracted from pod stats
InstructionReturn
Cargo IDL program
Stats Definition Account
Cargo Pod Account
Old Cargo Type Account
Cargo Pod Token Account
Mint Key
Generated using TypeDoc
Add Cargo to Cargo Pod Only the registered cargo pod authority is allowed to do this
Returns
InstructionReturn