github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/types/wasm/enums.go (about)

     1  package wasm
     2  
     3  import "github.com/machinefi/w3bstream/pkg/enums"
     4  
     5  var NameVersion = "w3bstream@v0.0.1"
     6  
     7  // ResultStatusCode wasm call result code
     8  type ResultStatusCode int32
     9  
    10  const (
    11  	ResultStatusCode_OK ResultStatusCode = iota
    12  	ResultStatusCode_UnexportedHandler
    13  	ResultStatusCode_ResourceNotFound
    14  	ResultStatusCode_ImportNotFound
    15  	ResultStatusCode_ImportCallFailed
    16  	ResultStatusCode_TransDataToVMFailed
    17  	ResultStatusCode_TransDataFromVMFailed
    18  	ResultStatusCode_HostInternal
    19  	ResultStatusCode_EnvKeyNotFound
    20  	ResultStatusCode_NoDBContext
    21  	ResultStatusCode_ParamIllegal
    22  
    23  	// TODO following result status
    24  	ResultStatusCode_Failed = -1 // reserved for wasm invoke failed
    25  )
    26  
    27  type InstanceState = enums.InstanceState