Documentation ¶
Index ¶
- Constants
- func CalculateDynamicGas(bytes []byte) uint64
- func GenerateSolidityStruct(goStruct any) (string, error)
- func IsInSlice[T ~uint8 | ~string](value T, slice []T) bool
- func ParseContractCallArgs(contractAbi *abi.ABI, data []byte, ...) (any, *abi.Method, error)
- func RemoveFirstMatchStrInSlice(slice []string, val string) []string
- type Log
- type SystemContract
- type SystemContractConfig
- type SystemContractConstruct
Constants ¶
View Source
const ( // ZeroAddress is a special address, no one has control ZeroAddress = "0x0000000000000000000000000000000000000000" // ProposalIDContractAddr is the contract to used to generate the proposal ID ProposalIDContractAddr = "0x0000000000000000000000000000000000001000" NodeManagerContractAddr = "0x0000000000000000000000000000000000001001" CouncilManagerContractAddr = "0x0000000000000000000000000000000000001002" // Addr2NameContractAddr for unique name mapping to address Addr2NameContractAddr = "0x0000000000000000000000000000000000001003" WhiteListContractAddr = "0x0000000000000000000000000000000000001004" WhiteListProviderManagerContractAddr = "0x0000000000000000000000000000000000001005" NotFinishedProposalContractAddr = "0x0000000000000000000000000000000000001006" // EpochManagerContractAddr is the contract to used to manager chain epoch info EpochManagerContractAddr = "0x0000000000000000000000000000000000001007" GasManagerContractAddr = "0x0000000000000000000000000000000000001008" )
Variables ¶
This section is empty.
Functions ¶
func CalculateDynamicGas ¶
func GenerateSolidityStruct ¶
func ParseContractCallArgs ¶
Types ¶
type SystemContract ¶
type SystemContractConfig ¶
type SystemContractConfig struct {
Logger logrus.FieldLogger
}
type SystemContractConstruct ¶
type SystemContractConstruct func(cfg *SystemContractConfig) SystemContract
Click to show internal directories.
Click to hide internal directories.