utils

package
v0.0.0-...-0943177 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCli        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCli          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCli = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ChainLinkJSON

type ChainLinkJSON struct {
	// Address contains the data of the external chain address to be connected
	// with the Mage profile
	Address *types.Any `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	// Proof contains the ownership proof of the external chain address
	Proof types1.Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof" yaml:"proof"`
	// ChainConfig contains the configuration of the external chain
	ChainConfig types1.ChainConfig `protobuf:"bytes,3,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config" yaml:"chain_config"`
}

ChainLinkJSON contains the data required to create a ChainLink using the CLI command

func NewChainLinkJSON

func NewChainLinkJSON(data types.AddressData, proof types.Proof, chainConfig types.ChainConfig) ChainLinkJSON

NewChainLinkJSON allows to build a new ChainLinkJSON instance

func ParseChainLinkJSON

func ParseChainLinkJSON(cdc codec.Codec, dataFile string) (ChainLinkJSON, error)

ParseChainLinkJSON reads and parses a ChainLinkJSON from file.

func (*ChainLinkJSON) Descriptor

func (*ChainLinkJSON) Descriptor() ([]byte, []int)

func (*ChainLinkJSON) Equal

func (this *ChainLinkJSON) Equal(that interface{}) bool

func (*ChainLinkJSON) GetAddress

func (m *ChainLinkJSON) GetAddress() *types.Any

func (*ChainLinkJSON) GetChainConfig

func (m *ChainLinkJSON) GetChainConfig() types1.ChainConfig

func (*ChainLinkJSON) GetProof

func (m *ChainLinkJSON) GetProof() types1.Proof

func (*ChainLinkJSON) Marshal

func (m *ChainLinkJSON) Marshal() (dAtA []byte, err error)

func (*ChainLinkJSON) MarshalTo

func (m *ChainLinkJSON) MarshalTo(dAtA []byte) (int, error)

func (*ChainLinkJSON) MarshalToSizedBuffer

func (m *ChainLinkJSON) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ChainLinkJSON) ProtoMessage

func (*ChainLinkJSON) ProtoMessage()

func (*ChainLinkJSON) Reset

func (m *ChainLinkJSON) Reset()

func (*ChainLinkJSON) Size

func (m *ChainLinkJSON) Size() (n int)

func (*ChainLinkJSON) String

func (m *ChainLinkJSON) String() string

func (*ChainLinkJSON) Unmarshal

func (m *ChainLinkJSON) Unmarshal(dAtA []byte) error

func (*ChainLinkJSON) UnpackInterfaces

func (link *ChainLinkJSON) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*ChainLinkJSON) XXX_DiscardUnknown

func (m *ChainLinkJSON) XXX_DiscardUnknown()

func (*ChainLinkJSON) XXX_Marshal

func (m *ChainLinkJSON) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChainLinkJSON) XXX_Merge

func (m *ChainLinkJSON) XXX_Merge(src proto.Message)

func (*ChainLinkJSON) XXX_Size

func (m *ChainLinkJSON) XXX_Size() int

func (*ChainLinkJSON) XXX_Unmarshal

func (m *ChainLinkJSON) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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