Allows user to know whether a script is running in a deploy
or run
mode.
Sets metadata key value for a current network in the chckpoint file based on the
current deployment script. If run in a non deployment mode (eg algob run script_name.js
)
it will throw an exception.
Checks if checkpoint is deleted for a particular transaction if checkpoint exists and is marked as deleted, throw error(except for opt-out transactions), else pass
Transaction execution parameters
Creates and deploys ASA defined in asa.yaml.
Creates and deploys ASA without using asa.yaml.
Deploys stateful smart contract.
Execute single transaction or group of transactions (atomic transaction)
executes ExecParams
or Transaction
Object, SDK Transaction object passed to this function
will be signed and sent to network. User can use SDK functions to create transactions.
Note: If passing transaction object a signer/s must be provided.
This function will send Algos to ASC account in "Contract Mode".
name of the smart signature (passed by user during mkContractLsig/mkDelegatedLsig)
Deployments flags (as per SPEC)
as per SPEC
Funds logic signature account (Contract Account).
Queries a stateful smart contract info from checkpoint name passed by user during deployment
Queries blockchain using algodv2 for asset information by index
Queries metadata key in all checkpoint files of current network. If the key is not defined
in any checkpoint then undefined
is returned. Can be run in both run and deploy mode.
Loads logic signature info(contract or delegated) from checkpoint (by lsig name)
name of the smart signture (defined by user during mkContractLsig/mkDelegatedLsig)
Return receipts for each transaction in group txn
list transaction in group
confirmed tx info of group
Returns true if ASA or DelegatedLsig or SSC were deployed in any script. Checks even for checkpoints which are out of scope from the execution session and are not obtainable using get methods.
Loads deployed asset definition from checkpoint. NOTE: This function returns "deployed" ASADef, as immutable properties of asaDef could be updated during tx execution (eg. update asset clawback)
Extracts multi signed logic signature file from assets/
.
Create an entry in a script log (stored in artifacts/scripts/
Creates an opt-in transaction for given ASA name, which must be defined in
/assets/asa.yaml
file. The opt-in transaction is signed by the account secret key
Opt-In to stateful smart contract (SSC) for a single account signed by account secret key
sender account
application index
Transaction flags
Optional parameters to SSC (accounts, args..)
Creates an opt-in transaction for given ASA name, which must be defined in
/assets/asa.yaml
file. The opt-in transaction is signed by the logic signature
Opt-In to stateful smart contract (SSC) for a contract account The opt-in transaction is signed by the logic signature
application index
Transaction flags
Optional parameters to SSC (accounts, args..)
Send signed transaction to network and wait for confirmation
Signed Transaction(s)
Update programs(approval, clear) for a stateful smart contract.
name of the app to deploy. This name (if passed) will be used as the checkpoint "key", and app information will be stored agaisnt this name
Account from which call needs to be made
Transaction Flags
ID of the application being configured or empty if creating
Optional parameters to SSC (accounts, args..)
Queries blockchain for a given transaction and waits until it will be processed.
Generated using TypeDoc
Mapping of ASA name to deployment log