github.com/algorand/go-algorand-sdk@v1.24.0/abi/abi.go (about)

     1  package abi
     2  
     3  import (
     4  	avm_abi "github.com/algorand/avm-abi/abi"
     5  )
     6  
     7  type Type = avm_abi.Type
     8  
     9  func TypeOf(str string) (Type, error) {
    10  	return avm_abi.TypeOf(str)
    11  }
    12  
    13  // MakeTupleType makes tuple ABI type by taking an array of tuple element types as argument.
    14  func MakeTupleType(argumentTypes []Type) (Type, error) {
    15  	return avm_abi.MakeTupleType(argumentTypes)
    16  }
    17  
    18  // AnyTransactionType is the ABI argument type string for a nonspecific transaction argument
    19  const AnyTransactionType = avm_abi.AnyTransactionType
    20  
    21  // PaymentTransactionType is the ABI argument type string for a payment transaction argument
    22  const PaymentTransactionType = avm_abi.PaymentTransactionType
    23  
    24  // KeyRegistrationTransactionType is the ABI argument type string for a key registration transaction
    25  // argument
    26  const KeyRegistrationTransactionType = avm_abi.KeyRegistrationTransactionType
    27  
    28  // AssetConfigTransactionType is the ABI argument type string for an asset configuration transaction
    29  // argument
    30  const AssetConfigTransactionType = avm_abi.AssetConfigTransactionType
    31  
    32  // AssetTransferTransactionType is the ABI argument type string for an asset transfer transaction
    33  // argument
    34  const AssetTransferTransactionType = avm_abi.AssetTransferTransactionType
    35  
    36  // AssetFreezeTransactionType is the ABI argument type string for an asset freeze transaction
    37  // argument
    38  const AssetFreezeTransactionType = avm_abi.AssetFreezeTransactionType
    39  
    40  // ApplicationCallTransactionType is the ABI argument type string for an application call
    41  // transaction argument
    42  const ApplicationCallTransactionType = avm_abi.ApplicationCallTransactionType
    43  
    44  // IsTransactionType checks if a type string represents a transaction type
    45  // argument, such as "txn", "pay", "keyreg", etc.
    46  func IsTransactionType(typeStr string) bool {
    47  	return avm_abi.IsTransactionType(typeStr)
    48  }
    49  
    50  // AccountReferenceType is the ABI argument type string for account references
    51  const AccountReferenceType = avm_abi.AccountReferenceType
    52  
    53  // AssetReferenceType is the ABI argument type string for asset references
    54  const AssetReferenceType = avm_abi.AssetReferenceType
    55  
    56  // ApplicationReferenceType is the ABI argument type string for application references
    57  const ApplicationReferenceType = avm_abi.ApplicationReferenceType
    58  
    59  // IsReferenceType checks if a type string represents a reference type argument,
    60  // such as "account", "asset", or "application".
    61  func IsReferenceType(typeStr string) bool {
    62  	return avm_abi.IsReferenceType(typeStr)
    63  }
    64  
    65  // VoidReturnType is the ABI return type string for a method that does not return any value
    66  const VoidReturnType = avm_abi.VoidReturnType