Versions in this module Expand all Collapse all v0 v0.13.7 Jul 13, 2024 Changes in this version + const AddWarpMessageGasCost + const ConfigKey + const GasCostPerSignatureVerification + const GasCostPerWarpMessageBytes + const GasCostPerWarpSigner + const GetBlockchainIDGasCost + const GetVerifiedWarpMessageBaseCost + const SendWarpMessageGasCost + const SendWarpMessageGasCostPerByte + const WarpDefaultQuorumNumerator + const WarpQuorumDenominator + const WarpQuorumNumeratorMinimum + var ContractAddress = common.HexToAddress("0x0200000000000000000000000000000000000005") + var Module = modules.Module + var WarpABI = contract.ParseABI(WarpRawABI) + var WarpPrecompile = createWarpPrecompile() + var WarpRawABI string + func PackGetBlockchainID() ([]byte, error) + func PackGetBlockchainIDOutput(blockchainID common.Hash) ([]byte, error) + func PackGetVerifiedWarpBlockHash(index uint32) ([]byte, error) + func PackGetVerifiedWarpBlockHashOutput(outputStruct GetVerifiedWarpBlockHashOutput) ([]byte, error) + func PackGetVerifiedWarpMessage(index uint32) ([]byte, error) + func PackGetVerifiedWarpMessageOutput(outputStruct GetVerifiedWarpMessageOutput) ([]byte, error) + func PackSendWarpMessage(payloadData []byte) ([]byte, error) + func PackSendWarpMessageEvent(sourceAddress common.Address, unsignedMessageID common.Hash, ...) ([]common.Hash, []byte, error) + func PackSendWarpMessageOutput(messageID common.Hash) ([]byte, error) + func UnpackGetVerifiedWarpBlockHashInput(input []byte) (uint32, error) + func UnpackGetVerifiedWarpMessageInput(input []byte) (uint32, error) + func UnpackSendWarpEventDataToMessage(data []byte) (*warp.UnsignedMessage, error) + func UnpackSendWarpMessageInput(input []byte) ([]byte, error) + func UnpackSendWarpMessageOutput(output []byte) (common.Hash, error) + type Config struct + QuorumNumerator uint64 + func NewConfig(blockTimestamp *uint64, quorumNumerator uint64) *Config + func NewDefaultConfig(blockTimestamp *uint64) *Config + func NewDisableConfig(blockTimestamp *uint64) *Config + func (*Config) Key() string + func (c *Config) Accept(acceptCtx *precompileconfig.AcceptContext, blockHash common.Hash, ...) error + func (c *Config) Equal(s precompileconfig.Config) bool + func (c *Config) PredicateGas(predicateBytes []byte) (uint64, error) + func (c *Config) Verify(chainConfig precompileconfig.ChainConfig) error + func (c *Config) VerifyPredicate(predicateContext *precompileconfig.PredicateContext, predicateBytes []byte) error + type GetVerifiedWarpBlockHashOutput struct + Valid bool + WarpBlockHash WarpBlockHash + func UnpackGetVerifiedWarpBlockHashOutput(output []byte) (GetVerifiedWarpBlockHashOutput, error) + type GetVerifiedWarpMessageOutput struct + Message WarpMessage + Valid bool + func UnpackGetVerifiedWarpMessageOutput(output []byte) (GetVerifiedWarpMessageOutput, error) + type SendWarpMessageEventData struct + Message []byte + type WarpBlockHash struct + BlockHash common.Hash + SourceChainID common.Hash + type WarpMessage struct + OriginSenderAddress common.Address + Payload []byte + SourceChainID common.Hash