UNPKG

wowok

Version:

Wowok Blockchain TypeScript API

1 lines 10.4 kB
import{MessageType}from'@protobuf-ts/runtime';export var ExecutionError_ExecutionErrorKind;(function(a){a[a['EXECUTION_ERROR_KIND_UNKNOWN']=0x0]='EXECUTION_ERROR_KIND_UNKNOWN',a[a['INSUFFICIENT_GAS']=0x1]='INSUFFICIENT_GAS',a[a['INVALID_GAS_OBJECT']=0x2]='INVALID_GAS_OBJECT',a[a['INVARIANT_VIOLATION']=0x3]='INVARIANT_VIOLATION',a[a['FEATURE_NOT_YET_SUPPORTED']=0x4]='FEATURE_NOT_YET_SUPPORTED',a[a['OBJECT_TOO_BIG']=0x5]='OBJECT_TOO_BIG',a[a['PACKAGE_TOO_BIG']=0x6]='PACKAGE_TOO_BIG',a[a['CIRCULAR_OBJECT_OWNERSHIP']=0x7]='CIRCULAR_OBJECT_OWNERSHIP',a[a['INSUFFICIENT_COIN_BALANCE']=0x8]='INSUFFICIENT_COIN_BALANCE',a[a['COIN_BALANCE_OVERFLOW']=0x9]='COIN_BALANCE_OVERFLOW',a[a['PUBLISH_ERROR_NON_ZERO_ADDRESS']=0xa]='PUBLISH_ERROR_NON_ZERO_ADDRESS',a[a['WOW_MOVE_VERIFICATION_ERROR']=0xb]='WOW_MOVE_VERIFICATION_ERROR',a[a['MOVE_PRIMITIVE_RUNTIME_ERROR']=0xc]='MOVE_PRIMITIVE_RUNTIME_ERROR',a[a['MOVE_ABORT']=0xd]='MOVE_ABORT',a[a['VM_VERIFICATION_OR_DESERIALIZATION_ERROR']=0xe]='VM_VERIFICATION_OR_DESERIALIZATION_ERROR',a[a['VM_INVARIANT_VIOLATION']=0xf]='VM_INVARIANT_VIOLATION',a[a['FUNCTION_NOT_FOUND']=0x10]='FUNCTION_NOT_FOUND',a[a['ARITY_MISMATCH']=0x11]='ARITY_MISMATCH',a[a['TYPE_ARITY_MISMATCH']=0x12]='TYPE_ARITY_MISMATCH',a[a['NON_ENTRY_FUNCTION_INVOKED']=0x13]='NON_ENTRY_FUNCTION_INVOKED',a[a['COMMAND_ARGUMENT_ERROR']=0x14]='COMMAND_ARGUMENT_ERROR',a[a['TYPE_ARGUMENT_ERROR']=0x15]='TYPE_ARGUMENT_ERROR',a[a['UNUSED_VALUE_WITHOUT_DROP']=0x16]='UNUSED_VALUE_WITHOUT_DROP',a[a['INVALID_PUBLIC_FUNCTION_RETURN_TYPE']=0x17]='INVALID_PUBLIC_FUNCTION_RETURN_TYPE',a[a['INVALID_TRANSFER_OBJECT']=0x18]='INVALID_TRANSFER_OBJECT',a[a['EFFECTS_TOO_LARGE']=0x19]='EFFECTS_TOO_LARGE',a[a['PUBLISH_UPGRADE_MISSING_DEPENDENCY']=0x1a]='PUBLISH_UPGRADE_MISSING_DEPENDENCY',a[a['PUBLISH_UPGRADE_DEPENDENCY_DOWNGRADE']=0x1b]='PUBLISH_UPGRADE_DEPENDENCY_DOWNGRADE',a[a['PACKAGE_UPGRADE_ERROR']=0x1c]='PACKAGE_UPGRADE_ERROR',a[a['WRITTEN_OBJECTS_TOO_LARGE']=0x1d]='WRITTEN_OBJECTS_TOO_LARGE',a[a['CERTIFICATE_DENIED']=0x1e]='CERTIFICATE_DENIED',a[a['WOW_MOVE_VERIFICATION_TIMEDOUT']=0x1f]='WOW_MOVE_VERIFICATION_TIMEDOUT',a[a['CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED']=0x20]='CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED',a[a['INPUT_OBJECT_DELETED']=0x21]='INPUT_OBJECT_DELETED',a[a['EXECUTION_CANCELED_DUE_TO_CONSENSUS_OBJECT_CONGESTION']=0x22]='EXECUTION_CANCELED_DUE_TO_CONSENSUS_OBJECT_CONGESTION',a[a['ADDRESS_DENIED_FOR_COIN']=0x23]='ADDRESS_DENIED_FOR_COIN',a[a['COIN_TYPE_GLOBAL_PAUSE']=0x24]='COIN_TYPE_GLOBAL_PAUSE',a[a['EXECUTION_CANCELED_DUE_TO_RANDOMNESS_UNAVAILABLE']=0x25]='EXECUTION_CANCELED_DUE_TO_RANDOMNESS_UNAVAILABLE',a[a['MOVE_VECTOR_ELEM_TOO_BIG']=0x26]='MOVE_VECTOR_ELEM_TOO_BIG',a[a['MOVE_RAW_VALUE_TOO_BIG']=0x27]='MOVE_RAW_VALUE_TOO_BIG',a[a['INVALID_LINKAGE']=0x28]='INVALID_LINKAGE';}(ExecutionError_ExecutionErrorKind||(ExecutionError_ExecutionErrorKind={})));export var CommandArgumentError_CommandArgumentErrorKind;(function(a){a[a['COMMAND_ARGUMENT_ERROR_KIND_UNKNOWN']=0x0]='COMMAND_ARGUMENT_ERROR_KIND_UNKNOWN',a[a['TYPE_MISMATCH']=0x1]='TYPE_MISMATCH',a[a['INVALID_BCS_BYTES']=0x2]='INVALID_BCS_BYTES',a[a['INVALID_USAGE_OF_PURE_ARGUMENT']=0x3]='INVALID_USAGE_OF_PURE_ARGUMENT',a[a['INVALID_ARGUMENT_TO_PRIVATE_ENTRY_FUNCTION']=0x4]='INVALID_ARGUMENT_TO_PRIVATE_ENTRY_FUNCTION',a[a['INDEX_OUT_OF_BOUNDS']=0x5]='INDEX_OUT_OF_BOUNDS',a[a['SECONDARY_INDEX_OUT_OF_BOUNDS']=0x6]='SECONDARY_INDEX_OUT_OF_BOUNDS',a[a['INVALID_RESULT_ARITY']=0x7]='INVALID_RESULT_ARITY',a[a['INVALID_GAS_COIN_USAGE']=0x8]='INVALID_GAS_COIN_USAGE',a[a['INVALID_VALUE_USAGE']=0x9]='INVALID_VALUE_USAGE',a[a['INVALID_OBJECT_BY_VALUE']=0xa]='INVALID_OBJECT_BY_VALUE',a[a['INVALID_OBJECT_BY_MUT_REF']=0xb]='INVALID_OBJECT_BY_MUT_REF',a[a['CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED']=0xc]='CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED',a[a['INVALID_ARGUMENT_ARITY']=0xd]='INVALID_ARGUMENT_ARITY';}(CommandArgumentError_CommandArgumentErrorKind||(CommandArgumentError_CommandArgumentErrorKind={})));export var PackageUpgradeError_PackageUpgradeErrorKind;(function(a){a[a['PACKAGE_UPGRADE_ERROR_KIND_UNKNOWN']=0x0]='PACKAGE_UPGRADE_ERROR_KIND_UNKNOWN',a[a['UNABLE_TO_FETCH_PACKAGE']=0x1]='UNABLE_TO_FETCH_PACKAGE',a[a['NOT_A_PACKAGE']=0x2]='NOT_A_PACKAGE',a[a['INCOMPATIBLE_UPGRADE']=0x3]='INCOMPATIBLE_UPGRADE',a[a['DIGEST_DOES_NOT_MATCH']=0x4]='DIGEST_DOES_NOT_MATCH',a[a['UNKNOWN_UPGRADE_POLICY']=0x5]='UNKNOWN_UPGRADE_POLICY',a[a['PACKAGE_ID_DOES_NOT_MATCH']=0x6]='PACKAGE_ID_DOES_NOT_MATCH';}(PackageUpgradeError_PackageUpgradeErrorKind||(PackageUpgradeError_PackageUpgradeErrorKind={})));export var TypeArgumentError_TypeArgumentErrorKind;(function(a){a[a['TYPE_ARGUMENT_ERROR_KIND_UNKNOWN']=0x0]='TYPE_ARGUMENT_ERROR_KIND_UNKNOWN',a[a['TYPE_NOT_FOUND']=0x1]='TYPE_NOT_FOUND',a[a['CONSTRAINT_NOT_SATISFIED']=0x2]='CONSTRAINT_NOT_SATISFIED';}(TypeArgumentError_TypeArgumentErrorKind||(TypeArgumentError_TypeArgumentErrorKind={})));class ExecutionStatus$Type extends MessageType{constructor(){super('sui.rpc.v2.ExecutionStatus',[{'no':0x1,'name':'success','kind':'scalar','opt':!![],'T':0x8},{'no':0x2,'name':'error','kind':'message','T':()=>ExecutionError}]);}}export const ExecutionStatus=new ExecutionStatus$Type();class ExecutionError$Type extends MessageType{constructor(){super('sui.rpc.v2.ExecutionError',[{'no':0x1,'name':'description','kind':'scalar','opt':!![],'T':0x9},{'no':0x2,'name':'command','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x3,'name':'kind','kind':'enum','opt':!![],'T':()=>['sui.rpc.v2.ExecutionError.ExecutionErrorKind',ExecutionError_ExecutionErrorKind]},{'no':0x4,'name':'abort','kind':'message','oneof':'errorDetails','T':()=>MoveAbort},{'no':0x5,'name':'size_error','kind':'message','oneof':'errorDetails','T':()=>SizeError},{'no':0x6,'name':'command_argument_error','kind':'message','oneof':'errorDetails','T':()=>CommandArgumentError},{'no':0x7,'name':'type_argument_error','kind':'message','oneof':'errorDetails','T':()=>TypeArgumentError},{'no':0x8,'name':'package_upgrade_error','kind':'message','oneof':'errorDetails','T':()=>PackageUpgradeError},{'no':0x9,'name':'index_error','kind':'message','oneof':'errorDetails','T':()=>IndexError},{'no':0xa,'name':'object_id','kind':'scalar','oneof':'errorDetails','T':0x9},{'no':0xb,'name':'coin_deny_list_error','kind':'message','oneof':'errorDetails','T':()=>CoinDenyListError},{'no':0xc,'name':'congested_objects','kind':'message','oneof':'errorDetails','T':()=>CongestedObjects}]);}}export const ExecutionError=new ExecutionError$Type();class MoveAbort$Type extends MessageType{constructor(){super('sui.rpc.v2.MoveAbort',[{'no':0x1,'name':'abort_code','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x2,'name':'location','kind':'message','T':()=>MoveLocation},{'no':0x3,'name':'clever_error','kind':'message','T':()=>CleverError}]);}}export const MoveAbort=new MoveAbort$Type();class MoveLocation$Type extends MessageType{constructor(){super('sui.rpc.v2.MoveLocation',[{'no':0x1,'name':'package','kind':'scalar','opt':!![],'T':0x9},{'no':0x2,'name':'module','kind':'scalar','opt':!![],'T':0x9},{'no':0x3,'name':'function','kind':'scalar','opt':!![],'T':0xd},{'no':0x4,'name':'instruction','kind':'scalar','opt':!![],'T':0xd},{'no':0x5,'name':'function_name','kind':'scalar','opt':!![],'T':0x9}]);}}export const MoveLocation=new MoveLocation$Type();class CleverError$Type extends MessageType{constructor(){super('sui.rpc.v2.CleverError',[{'no':0x1,'name':'error_code','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x2,'name':'line_number','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x3,'name':'constant_name','kind':'scalar','opt':!![],'T':0x9},{'no':0x4,'name':'constant_type','kind':'scalar','opt':!![],'T':0x9},{'no':0x5,'name':'rendered','kind':'scalar','oneof':'value','T':0x9},{'no':0x6,'name':'raw','kind':'scalar','oneof':'value','T':0xc}]);}}export const CleverError=new CleverError$Type();class SizeError$Type extends MessageType{constructor(){super('sui.rpc.v2.SizeError',[{'no':0x1,'name':'size','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x2,'name':'max_size','kind':'scalar','opt':!![],'T':0x4,'L':0x0}]);}}export const SizeError=new SizeError$Type();class IndexError$Type extends MessageType{constructor(){super('sui.rpc.v2.IndexError',[{'no':0x1,'name':'index','kind':'scalar','opt':!![],'T':0xd},{'no':0x2,'name':'subresult','kind':'scalar','opt':!![],'T':0xd}]);}}export const IndexError=new IndexError$Type();class CoinDenyListError$Type extends MessageType{constructor(){super('sui.rpc.v2.CoinDenyListError',[{'no':0x1,'name':'address','kind':'scalar','opt':!![],'T':0x9},{'no':0x2,'name':'coin_type','kind':'scalar','opt':!![],'T':0x9}]);}}export const CoinDenyListError=new CoinDenyListError$Type();class CongestedObjects$Type extends MessageType{constructor(){super('sui.rpc.v2.CongestedObjects',[{'no':0x1,'name':'objects','kind':'scalar','repeat':0x2,'T':0x9}]);}}export const CongestedObjects=new CongestedObjects$Type();class CommandArgumentError$Type extends MessageType{constructor(){super('sui.rpc.v2.CommandArgumentError',[{'no':0x1,'name':'argument','kind':'scalar','opt':!![],'T':0xd},{'no':0x2,'name':'kind','kind':'enum','opt':!![],'T':()=>['sui.rpc.v2.CommandArgumentError.CommandArgumentErrorKind',CommandArgumentError_CommandArgumentErrorKind]},{'no':0x3,'name':'index_error','kind':'message','T':()=>IndexError}]);}}export const CommandArgumentError=new CommandArgumentError$Type();class PackageUpgradeError$Type extends MessageType{constructor(){super('sui.rpc.v2.PackageUpgradeError',[{'no':0x1,'name':'kind','kind':'enum','opt':!![],'T':()=>['sui.rpc.v2.PackageUpgradeError.PackageUpgradeErrorKind',PackageUpgradeError_PackageUpgradeErrorKind]},{'no':0x2,'name':'package_id','kind':'scalar','opt':!![],'T':0x9},{'no':0x3,'name':'digest','kind':'scalar','opt':!![],'T':0x9},{'no':0x4,'name':'policy','kind':'scalar','opt':!![],'T':0xd},{'no':0x5,'name':'ticket_id','kind':'scalar','opt':!![],'T':0x9}]);}}export const PackageUpgradeError=new PackageUpgradeError$Type();class TypeArgumentError$Type extends MessageType{constructor(){super('sui.rpc.v2.TypeArgumentError',[{'no':0x1,'name':'type_argument','kind':'scalar','opt':!![],'T':0xd},{'no':0x2,'name':'kind','kind':'enum','opt':!![],'T':()=>['sui.rpc.v2.TypeArgumentError.TypeArgumentErrorKind',TypeArgumentError_TypeArgumentErrorKind]}]);}}export const TypeArgumentError=new TypeArgumentError$Type();