casper

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

README

This package is a facade for popular interfaces from other internal packages. It is not intended to be complete. The main purpose of this package is to facilitate client usage. The package consists of files that provide aliases to exposed functions, constants, variables, or structures from internal packages.

Documentation

Index

Constants

View Source
const Symbol = "CSPR"

Variables

View Source
var (
	NewAccountHash                    = key.NewAccountHash
	NewTransferHash                   = key.NewTransferHash
	NewHash                           = key.NewHash
	NewHashFromBytes                  = key.NewHashFromBytes
	NewContractHash                   = key.NewContract
	NewContractPackageHash            = key.NewContractPackage
	NewUref                           = key.NewURef
	NewKey                            = key.NewKey
	NewKeyFromBytes                   = key.NewKeyFromBytes
	NewPublicKey                      = keypair.NewPublicKey
	NewED25519PrivateKeyFromPEMFile   = keypair.NewPrivateKeyED25518
	NewSECP256k1PrivateKeyFromPEMFile = keypair.NewPrivateKeySECP256K1
)
View Source
var (
	NewRPCClient  = rpc.NewClient
	NewRPCHandler = rpc.NewHttpHandler
)
View Source
var (
	DefaultHeader   = types.DefaultHeader
	MakeDeploy      = types.MakeDeploy
	StandardPayment = types.StandardPayment
)
View Source
var (
	ErrArgumentNotFound = types.ErrArgumentNotFound
)
View Source
var MotesToCSPRRate = decimal.NewFromInt(1000000000)

Functions

This section is empty.

Types

type Account

type Account = types.Account

type AccountHash

type AccountHash = key.AccountHash

type Args

type Args = types.Args

type Argument

type Argument = types.Argument

type AuctionBid

type AuctionBid = types.AuctionBid

type AuctionState

type AuctionState = types.AuctionState

type Block

type Block = types.Block

type BlockBody

type BlockBody = types.BlockBody

type BlockHeader

type BlockHeader = types.BlockHeader

type CLMap

type CLMap = clvalue.Map

type CLType

type CLType = cltype.CLType

type CLValue

type CLValue = clvalue.CLValue

type ChainGetBlockResult

type ChainGetBlockResult = rpc.ChainGetBlockResult

type ChainGetEraInfoResult

type ChainGetEraInfoResult = rpc.ChainGetEraInfoResult

type ChainGetStateRootHashResult

type ChainGetStateRootHashResult = rpc.ChainGetStateRootHashResult

type Contract

type Contract = types.Contract

type ContractHash

type ContractHash = key.ContractHash

type ContractPackage

type ContractPackage = types.ContractPackage

type ContractPackageHash

type ContractPackageHash = key.ContractPackageHash

type ContractVersion

type ContractVersion = types.ContractVersion

type Deploy

type Deploy = types.Deploy

type DeployApproval

type DeployApproval = types.Approval

type DeployHash

type DeployHash = key.Hash

type DeployHeader

type DeployHeader = types.DeployHeader

type Entrypoint

type Entrypoint = types.EntryPoint

type ExecutableDeployItem

type ExecutableDeployItem = types.ExecutableDeployItem

type ExecutionResult

type ExecutionResult = types.ExecutionResultStatus

type Hash

type Hash = key.Hash

type HttpError

type HttpError = rpc.HttpError

type InfoGetDeployResult

type InfoGetDeployResult = rpc.InfoGetDeployResult

type InfoGetStatusResult

type InfoGetStatusResult = rpc.InfoGetStatusResult

type Key

type Key = key.Key

type ModuleBytes

type ModuleBytes = types.ModuleBytes

type Motes

type Motes uint64

func (Motes) ToCSPR

func (m Motes) ToCSPR() decimal.Decimal

type NamedKey

type NamedKey = types.NamedKey

type NamedKeys

type NamedKeys = types.NamedKeys

type NodePeer

type NodePeer = rpc.NodePeer

type PrivateKey

type PrivateKey = keypair.PrivateKey

type PublicKey

type PublicKey = keypair.PublicKey

type PublicKeyList

type PublicKeyList = keypair.PublicKeyList

type RPCClient

type RPCClient = rpc.Client

type Reward

type Reward = types.Reward

type RpcHandler

type RpcHandler = rpc.Handler

type RpcInformationalClient

type RpcInformationalClient = rpc.ClientInformational

type StateGetAuctionInfoResult

type StateGetAuctionInfoResult = rpc.StateGetAuctionInfoResult

type StateGetItemResult

type StateGetItemResult = rpc.StateGetItemResult

type StoredContractByHash

type StoredContractByHash = types.StoredContractByHash

type StoredContractByName

type StoredContractByName = types.StoredContractByName

type StoredValue

type StoredValue = types.StoredValue

type StoredVersionedContractByHash

type StoredVersionedContractByHash = types.StoredVersionedContractByHash

type StoredVersionedContractByName

type StoredVersionedContractByName = types.StoredVersionedContractByName

type TransferHash

type TransferHash = key.TransferHash

type Transform

type Transform = types.Transform

type TransformKey

type TransformKey = types.TransformKey

type UnbondingPurse

type UnbondingPurse = types.UnbondingPurse

type Uref

type Uref = key.URef

type ValidatorBid

type ValidatorBid = types.ValidatorBid

type WriteTransfer

type WriteTransfer = types.WriteTransfer

Jump to

Keyboard shortcuts

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