Stablecoin Chaincode Methods
The stablecoin chaincode includes all TypeScript methods that are available in the generic Token Taxonomy Framework chaincode and additional TypeScript methods that are specific to the stablecoin scenario.
Stablecoin Asset Methods
The stablecoin asset is based on the extended Token Taxonomy Framework standard, and supports all of the generic methods for that standard. For more information about the generic Token Taxonomy Framework methods, see Scaffolded TypeScript Project for Token Taxonomy Framework in Blockchain App Builder for Oracle Blockchain Platform.Note:
In the stablecoin chaincode, theexecuteHoldTokens method behaves differently from the generic version. The stablecoin version of the method always completes the full hold amount, and does not support partial transfers.
Account Policy Check Methods
-
createAccountPolicyCheck - This method creates a policy for a specified account. This method can be called only by a
Token AdminorOrg Adminof the specified organization. -
getAccountPolicyCheckById - This method gets the account policy details for a specified policy ID. This method can be called only by a
Token AdminorToken Auditor, or anOrg AdminorOrg Auditorof the specified organization. -
updateAccountPolicyCheck - This method updates the policy for a specified account. This method can be called only by a
Token AdminorOrg Adminof the specified organization. -
deleteAccountPolicyCheck - This method deletes the policy for a specified policy ID. This method can be called only by a
Token AdminorOrg Adminof the specified organization. -
getAccountPolicyCheckHistoryById - This method gets the complete account policy history for a specified policy ID. This method can be called only by a
Token AdminorToken Auditor, or anOrg AdminorOrg Auditorof the specified organization. -
getAccountPolicyCheckByRange - This method gets all policy history for a specified range of policy IDs. This method can be called only by a
Token AdminorOrg Adminof the specified organization.
Approval Policy Check Methods
-
createApprovalPolicyCheck - This method creates an approval policy. This method can be called only by a
Token Admin. -
getApprovalPolicyCheckById - This method gets the approval policy details for a specified policy ID. This method can be called only by a
Token AdminorToken Auditor. -
updateApprovalPolicyCheck - This method updates the approval policy. This method can be called only by a
Token Admin. -
deleteApprovalPolicyCheck - This method deletes the approval policy for a specified policy ID. This method can be called only by a
Token Admin. -
getApprovalPolicyCheckHistoryById - This method gets the complete approval policy history for a specified policy ID. This method can be called only by a
Token AdminorToken Auditor. -
getApprovalPolicyCheckByRange - This method gets all approval policy history for a specified range of policy IDs. This method can be called only by a
Token AdminorToken Auditor.
Approval Transactions Methods
-
getApprovalTransactionsById - This method gets the approval transaction for a specified transaction ID. This method can be called only by a
Token AdminorToken Auditor. -
getApprovalsByOperationId - Original method name:
getApprovalsByOperationId -
getApprovalsByApprover - Original method name:
getApprovalsByApprover
Transfer Restriction Methods
You can use transfer restrictions to control the minimum and maximum transaction amounts that are allowed for token transfers. Transfer restrictions are applied when an account has the restrictionFlag value set to true. Transfer restrictions operate independently of the approval policy rules used for hold operations. The TransferRestriction asset defined in the specification file sets the global lower and upper transfer limits that apply to all accounts where transfer restrictions are enabled. After the chaincode is deployed, administrators can retrieve or update these values using the following methods.