icon

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CIDForMainNet         = 0x1
	StatusIllegalArgument = module.StatusReverted + iota
	StatusNotFound
)
View Source
const (
	IISSNoCharge = 1 << iota
	IISSDisabled
)

Variables

This section is empty.

Functions

func NewPlatform

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

Types

type CallHandler added in v0.9.6

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

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 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, 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)

Directories

Path Synopsis
* Copyright 2020 ICON Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2020 ICON Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

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