params

package
v0.6.1-alpha.4-prerelease Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ParamAgentID       = "agentID"
	ParamBlobHash      = "blobHash"
	ParamBlockIndex    = "blockIndex"
	ParamChainID       = "chainID"
	ParamContractHName = "contractHname"
	ParamFieldKey      = "fieldKey"
	ParamNFTID         = "nftID"
	ParamPeer          = "peer"
	ParamPublicKey     = "publicKey"
	ParamRequestID     = "requestID"
	ParamSharedAddress = "sharedAddress"
	ParamStateKey      = "stateKey"
	ParamTxHash        = "txHash"
	ParamUsername      = "username"
)
View Source
const (
	DescriptionAgentID       = "AgentID (Bech32 for WasmVM | Hex for EVM)"
	DescriptionBlobHash      = "BlobHash (Hex)"
	DescriptionChainID       = "ChainID (Bech32)"
	DescriptionContractHName = "The contract hname (Hex)"
	DescriptionFieldKey      = "FieldKey (String)"
	DescriptionNFTID         = "NFT ID (Hex)"
	DescriptionPeer          = "Name or PubKey (hex) of the trusted peer"
	DescriptionRequestID     = "RequestID (Hex)"
	DescriptionSharedAddress = "SharedAddress (Bech32)"
	DescriptionStateKey      = "State Key (Hex)"
	DescriptionTxHash        = "Transaction hash (Hex)"
	DescriptionUsername      = "The username"
)

Variables

This section is empty.

Functions

func DecodeAgentID

func DecodeAgentID(e echo.Context) (isc.AgentID, error)

func DecodeBlobHash

func DecodeBlobHash(e echo.Context) (*hashing.HashValue, error)

func DecodeChainID

func DecodeChainID(e echo.Context) (isc.ChainID, error)

func DecodeHNameFromHNameHexString

func DecodeHNameFromHNameHexString(e echo.Context, key string) (isc.Hname, error)

func DecodeNFTID

func DecodeNFTID(e echo.Context) (*iotago.NFTID, error)

func DecodePublicKey

func DecodePublicKey(e echo.Context) (*cryptolib.PublicKey, error)

func DecodeRequestID

func DecodeRequestID(e echo.Context) (isc.RequestID, error)

func DecodeUInt

func DecodeUInt(e echo.Context, key string) (uint64, error)

DecodeUInt decodes params to Uint64. If a lower Uint is expected it can be casted with uintX(returnValue) but validate the result

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL