icon

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CIDForMainNet         = 0x1
	CIDForTestNet         = 0xca97ec
	StatusIllegalArgument = module.StatusReverted + iota
	StatusNotFound
)
View Source
const (
	SysNoCharge = 1 << iota
	IISSDisabled
	BasicHidden
)
View Source
const (
	EETypesJavaAndPython = string(state.JavaEE + "," + state.PythonEE)
	EETypesPythonOnly    = string(state.PythonEE)
)
View Source
const BatchKey = "batch"
View Source
const (
	BlockV1ProofFile = "block_v1_proof.bin"
)

Variables

View Source
var BatchType = reflect.TypeOf((*batchData)(nil)).Elem()

Functions

func NewPlatform

func NewPlatform(base string, cid int) (base.Platform, error)

func ShowExtensionDiff added in v1.3.12

func ShowExtensionDiff(c service.DiffContext, e, r []byte) error

Types

type BlockV1Proof added in v0.9.10

type BlockV1Proof struct {
	MerkleHeader *hexary.MerkleHeader
	LastVotes    *blockv0.BlockVoteList
}

type CallHandler added in v0.9.6

type CallHandler interface {
	contract.AsyncContractHandler
	GetMethodName() string
	AllowExtra()
	DoExecuteAsync(cc contract.CallContext, ch eeproxy.CallContext, store containerdb.BytesStoreState) error
	TLogStart()
	TLogDone(status error, steps *big.Int, result *codec.TypedObj)
	ApplyCallSteps(cc contract.CallContext) error
}

type ChainConfig added in v0.9.6

type ChainConfig struct {
	Revision           common.HexInt32   `json:"revision"`
	AuditEnabled       common.HexInt16   `json:"auditEnabled"`
	Fee                FeeConfig         `json:"fee"`
	ValidatorList      []*common.Address `json:"validatorList"`
	BlockInterval      *common.HexInt64  `json:"blockInterval"`
	CommitTimeout      *common.HexInt64  `json:"commitTimeout"`
	TimestampThreshold *common.HexInt64  `json:"timestampThreshold"`
	RoundLimitFactor   *common.HexInt64  `json:"roundLimitFactor"`
	DepositTerm        *common.HexInt64  `json:"depositTerm"`
	FeeSharingEnabled  *common.HexInt16  `json:"feeSharingEnabled"`
}

type ExtensionValues added in v1.3.12

type ExtensionValues struct {
	State  common.HexBytes `json:"state"`
	Front  common.HexBytes `json:"front"`
	Back   common.HexBytes `json:"back"`
	Back2  common.HexBytes `json:"back2"`
	Reward common.HexBytes `json:"reward"`
}

type FeeConfig added in v0.9.6

type FeeConfig struct {
	StepPrice common.HexInt              `json:"stepPrice"`
	StepLimit map[string]common.HexInt64 `json:"stepLimit,omitempty"`
	StepCosts map[string]common.HexInt64 `json:"stepCosts,omitempty"`
}

type SystemCallHandler added in v0.9.6

type SystemCallHandler struct {
	CallHandler
	// contains filtered or unexported fields
}

func (*SystemCallHandler) ExecuteAsync added in v0.9.6

func (h *SystemCallHandler) ExecuteAsync(cc contract.CallContext) (err error)

func (*SystemCallHandler) OnResult added in v0.9.7

func (h *SystemCallHandler) OnResult(status error, flag int, steps *big.Int, result *codec.TypedObj)

type TransferHandler added in v0.9.6

type TransferHandler struct {
	*contract.CommonHandler
}

func (*TransferHandler) DoExecuteSync added in v0.9.6

func (h *TransferHandler) DoExecuteSync(cc contract.CallContext) (err error, ro *codec.TypedObj, addr module.Address)

func (*TransferHandler) ExecuteSync added in v0.9.6

func (h *TransferHandler) ExecuteSync(cc contract.CallContext) (err error, ro *codec.TypedObj, addr module.Address)

Jump to

Keyboard shortcuts

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