publicrpcv1

package
v0.0.0-...-7be3494 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Overview

Package publicrpcv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ChainID_name = map[int32]string{
		0:     "CHAIN_ID_UNSPECIFIED",
		1:     "CHAIN_ID_SOLANA",
		2:     "CHAIN_ID_ETHEREUM",
		3:     "CHAIN_ID_TERRA",
		4:     "CHAIN_ID_BSC",
		5:     "CHAIN_ID_POLYGON",
		6:     "CHAIN_ID_AVALANCHE",
		7:     "CHAIN_ID_OASIS",
		8:     "CHAIN_ID_ALGORAND",
		9:     "CHAIN_ID_AURORA",
		10:    "CHAIN_ID_FANTOM",
		11:    "CHAIN_ID_KARURA",
		12:    "CHAIN_ID_ACALA",
		13:    "CHAIN_ID_KLAYTN",
		14:    "CHAIN_ID_CELO",
		15:    "CHAIN_ID_NEAR",
		16:    "CHAIN_ID_MOONBEAM",
		17:    "CHAIN_ID_NEON",
		18:    "CHAIN_ID_TERRA2",
		19:    "CHAIN_ID_INJECTIVE",
		20:    "CHAIN_ID_OSMOSIS",
		21:    "CHAIN_ID_SUI",
		22:    "CHAIN_ID_APTOS",
		23:    "CHAIN_ID_ARBITRUM",
		24:    "CHAIN_ID_OPTIMISM",
		25:    "CHAIN_ID_GNOSIS",
		26:    "CHAIN_ID_PYTHNET",
		28:    "CHAIN_ID_XPLA",
		29:    "CHAIN_ID_BTC",
		30:    "CHAIN_ID_BASE",
		32:    "CHAIN_ID_SEI",
		7070:  "CHAIN_ID_PLANQ",
		10002: "CHAIN_ID_SEPOLIA",
	}
	ChainID_value = map[string]int32{
		"CHAIN_ID_UNSPECIFIED": 0,
		"CHAIN_ID_SOLANA":      1,
		"CHAIN_ID_ETHEREUM":    2,
		"CHAIN_ID_TERRA":       3,
		"CHAIN_ID_BSC":         4,
		"CHAIN_ID_POLYGON":     5,
		"CHAIN_ID_AVALANCHE":   6,
		"CHAIN_ID_OASIS":       7,
		"CHAIN_ID_ALGORAND":    8,
		"CHAIN_ID_AURORA":      9,
		"CHAIN_ID_FANTOM":      10,
		"CHAIN_ID_KARURA":      11,
		"CHAIN_ID_ACALA":       12,
		"CHAIN_ID_KLAYTN":      13,
		"CHAIN_ID_CELO":        14,
		"CHAIN_ID_NEAR":        15,
		"CHAIN_ID_MOONBEAM":    16,
		"CHAIN_ID_NEON":        17,
		"CHAIN_ID_TERRA2":      18,
		"CHAIN_ID_INJECTIVE":   19,
		"CHAIN_ID_OSMOSIS":     20,
		"CHAIN_ID_SUI":         21,
		"CHAIN_ID_APTOS":       22,
		"CHAIN_ID_ARBITRUM":    23,
		"CHAIN_ID_OPTIMISM":    24,
		"CHAIN_ID_GNOSIS":      25,
		"CHAIN_ID_PYTHNET":     26,
		"CHAIN_ID_XPLA":        28,
		"CHAIN_ID_BTC":         29,
		"CHAIN_ID_BASE":        30,
		"CHAIN_ID_SEI":         32,
		"CHAIN_ID_PLANQ":       7070,
		"CHAIN_ID_SEPOLIA":     10002,
	}
)

Enum value maps for ChainID.

View Source
var File_publicrpc_v1_publicrpc_proto protoreflect.FileDescriptor
View Source
var PublicRPCService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "publicrpc.v1.PublicRPCService",
	HandlerType: (*PublicRPCServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetLastHeartbeats",
			Handler:    _PublicRPCService_GetLastHeartbeats_Handler,
		},
		{
			MethodName: "GetSignedVAA",
			Handler:    _PublicRPCService_GetSignedVAA_Handler,
		},
		{
			MethodName: "GetSignedBatchVAA",
			Handler:    _PublicRPCService_GetSignedBatchVAA_Handler,
		},
		{
			MethodName: "GetCurrentPhylaxSet",
			Handler:    _PublicRPCService_GetCurrentPhylaxSet_Handler,
		},
		{
			MethodName: "GovernorGetAvailableNotionalByChain",
			Handler:    _PublicRPCService_GovernorGetAvailableNotionalByChain_Handler,
		},
		{
			MethodName: "GovernorGetEnqueuedVAAs",
			Handler:    _PublicRPCService_GovernorGetEnqueuedVAAs_Handler,
		},
		{
			MethodName: "GovernorIsVAAEnqueued",
			Handler:    _PublicRPCService_GovernorIsVAAEnqueued_Handler,
		},
		{
			MethodName: "GovernorGetTokenList",
			Handler:    _PublicRPCService_GovernorGetTokenList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "publicrpc/v1/publicrpc.proto",
}

PublicRPCService_ServiceDesc is the grpc.ServiceDesc for PublicRPCService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPublicRPCServiceHandler

func RegisterPublicRPCServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPublicRPCServiceHandler registers the http handlers for service PublicRPCService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPublicRPCServiceHandlerClient

func RegisterPublicRPCServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PublicRPCServiceClient) error

RegisterPublicRPCServiceHandlerClient registers the http handlers for service PublicRPCService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PublicRPCServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PublicRPCServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PublicRPCServiceClient" to call the correct interceptors.

func RegisterPublicRPCServiceHandlerFromEndpoint

func RegisterPublicRPCServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPublicRPCServiceHandlerFromEndpoint is same as RegisterPublicRPCServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPublicRPCServiceHandlerServer

func RegisterPublicRPCServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PublicRPCServiceServer) error

RegisterPublicRPCServiceHandlerServer registers the http handlers for service PublicRPCService to "mux". UnaryRPC :call PublicRPCServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPublicRPCServiceHandlerFromEndpoint instead.

func RegisterPublicRPCServiceServer

func RegisterPublicRPCServiceServer(s grpc.ServiceRegistrar, srv PublicRPCServiceServer)

Types

type BatchID

type BatchID struct {

	// Emitter chain ID.
	EmitterChain ChainID `protobuf:"varint,1,opt,name=emitter_chain,json=emitterChain,proto3,enum=publicrpc.v1.ChainID" json:"emitter_chain,omitempty"`
	// Transaction's unique identifier.
	TxId []byte `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// Nonce of the messages in the batch.
	Nonce uint32 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchID) Descriptor deprecated

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

Deprecated: Use BatchID.ProtoReflect.Descriptor instead.

func (*BatchID) GetEmitterChain

func (x *BatchID) GetEmitterChain() ChainID

func (*BatchID) GetNonce

func (x *BatchID) GetNonce() uint32

func (*BatchID) GetTxId

func (x *BatchID) GetTxId() []byte

func (*BatchID) ProtoMessage

func (*BatchID) ProtoMessage()

func (*BatchID) ProtoReflect

func (x *BatchID) ProtoReflect() protoreflect.Message

func (*BatchID) Reset

func (x *BatchID) Reset()

func (*BatchID) String

func (x *BatchID) String() string

type ChainID

type ChainID int32
const (
	ChainID_CHAIN_ID_UNSPECIFIED ChainID = 0
	ChainID_CHAIN_ID_SOLANA      ChainID = 1
	ChainID_CHAIN_ID_ETHEREUM    ChainID = 2
	ChainID_CHAIN_ID_TERRA       ChainID = 3
	ChainID_CHAIN_ID_BSC         ChainID = 4
	ChainID_CHAIN_ID_POLYGON     ChainID = 5
	ChainID_CHAIN_ID_AVALANCHE   ChainID = 6
	ChainID_CHAIN_ID_OASIS       ChainID = 7
	ChainID_CHAIN_ID_ALGORAND    ChainID = 8
	ChainID_CHAIN_ID_AURORA      ChainID = 9
	ChainID_CHAIN_ID_FANTOM      ChainID = 10
	ChainID_CHAIN_ID_KARURA      ChainID = 11
	ChainID_CHAIN_ID_ACALA       ChainID = 12
	ChainID_CHAIN_ID_KLAYTN      ChainID = 13
	ChainID_CHAIN_ID_CELO        ChainID = 14
	ChainID_CHAIN_ID_NEAR        ChainID = 15
	ChainID_CHAIN_ID_MOONBEAM    ChainID = 16
	ChainID_CHAIN_ID_NEON        ChainID = 17
	ChainID_CHAIN_ID_TERRA2      ChainID = 18
	ChainID_CHAIN_ID_INJECTIVE   ChainID = 19
	ChainID_CHAIN_ID_OSMOSIS     ChainID = 20
	ChainID_CHAIN_ID_SUI         ChainID = 21
	ChainID_CHAIN_ID_APTOS       ChainID = 22
	ChainID_CHAIN_ID_ARBITRUM    ChainID = 23
	ChainID_CHAIN_ID_OPTIMISM    ChainID = 24
	ChainID_CHAIN_ID_GNOSIS      ChainID = 25
	ChainID_CHAIN_ID_PYTHNET     ChainID = 26
	ChainID_CHAIN_ID_XPLA        ChainID = 28
	ChainID_CHAIN_ID_BTC         ChainID = 29
	ChainID_CHAIN_ID_BASE        ChainID = 30
	ChainID_CHAIN_ID_SEI         ChainID = 32
	ChainID_CHAIN_ID_PLANQ       ChainID = 7070
	ChainID_CHAIN_ID_SEPOLIA     ChainID = 10002
)

func (ChainID) Descriptor

func (ChainID) Descriptor() protoreflect.EnumDescriptor

func (ChainID) Enum

func (x ChainID) Enum() *ChainID

func (ChainID) EnumDescriptor deprecated

func (ChainID) EnumDescriptor() ([]byte, []int)

Deprecated: Use ChainID.Descriptor instead.

func (ChainID) Number

func (x ChainID) Number() protoreflect.EnumNumber

func (ChainID) String

func (x ChainID) String() string

func (ChainID) Type

func (ChainID) Type() protoreflect.EnumType

type GetCurrentPhylaxSetRequest

type GetCurrentPhylaxSetRequest struct {
	// contains filtered or unexported fields
}

func (*GetCurrentPhylaxSetRequest) Descriptor deprecated

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

Deprecated: Use GetCurrentPhylaxSetRequest.ProtoReflect.Descriptor instead.

func (*GetCurrentPhylaxSetRequest) ProtoMessage

func (*GetCurrentPhylaxSetRequest) ProtoMessage()

func (*GetCurrentPhylaxSetRequest) ProtoReflect

func (*GetCurrentPhylaxSetRequest) Reset

func (x *GetCurrentPhylaxSetRequest) Reset()

func (*GetCurrentPhylaxSetRequest) String

func (x *GetCurrentPhylaxSetRequest) String() string

type GetCurrentPhylaxSetResponse

type GetCurrentPhylaxSetResponse struct {
	PhylaxSet *PhylaxSet `protobuf:"bytes,1,opt,name=phylax_set,json=phylaxSet,proto3" json:"phylax_set,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCurrentPhylaxSetResponse) Descriptor deprecated

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

Deprecated: Use GetCurrentPhylaxSetResponse.ProtoReflect.Descriptor instead.

func (*GetCurrentPhylaxSetResponse) GetPhylaxSet

func (x *GetCurrentPhylaxSetResponse) GetPhylaxSet() *PhylaxSet

func (*GetCurrentPhylaxSetResponse) ProtoMessage

func (*GetCurrentPhylaxSetResponse) ProtoMessage()

func (*GetCurrentPhylaxSetResponse) ProtoReflect

func (*GetCurrentPhylaxSetResponse) Reset

func (x *GetCurrentPhylaxSetResponse) Reset()

func (*GetCurrentPhylaxSetResponse) String

func (x *GetCurrentPhylaxSetResponse) String() string

type GetLastHeartbeatsRequest

type GetLastHeartbeatsRequest struct {
	// contains filtered or unexported fields
}

func (*GetLastHeartbeatsRequest) Descriptor deprecated

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

Deprecated: Use GetLastHeartbeatsRequest.ProtoReflect.Descriptor instead.

func (*GetLastHeartbeatsRequest) ProtoMessage

func (*GetLastHeartbeatsRequest) ProtoMessage()

func (*GetLastHeartbeatsRequest) ProtoReflect

func (x *GetLastHeartbeatsRequest) ProtoReflect() protoreflect.Message

func (*GetLastHeartbeatsRequest) Reset

func (x *GetLastHeartbeatsRequest) Reset()

func (*GetLastHeartbeatsRequest) String

func (x *GetLastHeartbeatsRequest) String() string

type GetLastHeartbeatsResponse

type GetLastHeartbeatsResponse struct {
	Entries []*GetLastHeartbeatsResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLastHeartbeatsResponse) Descriptor deprecated

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

Deprecated: Use GetLastHeartbeatsResponse.ProtoReflect.Descriptor instead.

func (*GetLastHeartbeatsResponse) GetEntries

func (*GetLastHeartbeatsResponse) ProtoMessage

func (*GetLastHeartbeatsResponse) ProtoMessage()

func (*GetLastHeartbeatsResponse) ProtoReflect

func (*GetLastHeartbeatsResponse) Reset

func (x *GetLastHeartbeatsResponse) Reset()

func (*GetLastHeartbeatsResponse) String

func (x *GetLastHeartbeatsResponse) String() string

type GetLastHeartbeatsResponse_Entry

type GetLastHeartbeatsResponse_Entry struct {

	// Verified, hex-encoded (with leading 0x) phylax address. This is the phylax address
	// which signed this heartbeat. The PhylaxAddr field inside the heartbeat
	// is NOT verified - remote nodes can put arbitrary data in it.
	VerifiedPhylaxAddr string `protobuf:"bytes,1,opt,name=verified_phylax_addr,json=verifiedPhylaxAddr,proto3" json:"verified_phylax_addr,omitempty"`
	// Base58-encoded libp2p node address that sent this heartbeat, used to
	// distinguish between multiple nodes running for the same phylax.
	P2PNodeAddr string `protobuf:"bytes,2,opt,name=p2p_node_addr,json=p2pNodeAddr,proto3" json:"p2p_node_addr,omitempty"`
	// Raw heartbeat received from the network. Data is only as trusted
	// as the phylax node that sent it - none of the fields are verified.
	RawHeartbeat *v1.Heartbeat `protobuf:"bytes,3,opt,name=raw_heartbeat,json=rawHeartbeat,proto3" json:"raw_heartbeat,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLastHeartbeatsResponse_Entry) Descriptor deprecated

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

Deprecated: Use GetLastHeartbeatsResponse_Entry.ProtoReflect.Descriptor instead.

func (*GetLastHeartbeatsResponse_Entry) GetP2PNodeAddr

func (x *GetLastHeartbeatsResponse_Entry) GetP2PNodeAddr() string

func (*GetLastHeartbeatsResponse_Entry) GetRawHeartbeat

func (x *GetLastHeartbeatsResponse_Entry) GetRawHeartbeat() *v1.Heartbeat

func (*GetLastHeartbeatsResponse_Entry) GetVerifiedPhylaxAddr

func (x *GetLastHeartbeatsResponse_Entry) GetVerifiedPhylaxAddr() string

func (*GetLastHeartbeatsResponse_Entry) ProtoMessage

func (*GetLastHeartbeatsResponse_Entry) ProtoMessage()

func (*GetLastHeartbeatsResponse_Entry) ProtoReflect

func (*GetLastHeartbeatsResponse_Entry) Reset

func (*GetLastHeartbeatsResponse_Entry) String

type GetSignedBatchVAARequest

type GetSignedBatchVAARequest struct {
	BatchId *BatchID `protobuf:"bytes,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSignedBatchVAARequest) Descriptor deprecated

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

Deprecated: Use GetSignedBatchVAARequest.ProtoReflect.Descriptor instead.

func (*GetSignedBatchVAARequest) GetBatchId

func (x *GetSignedBatchVAARequest) GetBatchId() *BatchID

func (*GetSignedBatchVAARequest) ProtoMessage

func (*GetSignedBatchVAARequest) ProtoMessage()

func (*GetSignedBatchVAARequest) ProtoReflect

func (x *GetSignedBatchVAARequest) ProtoReflect() protoreflect.Message

func (*GetSignedBatchVAARequest) Reset

func (x *GetSignedBatchVAARequest) Reset()

func (*GetSignedBatchVAARequest) String

func (x *GetSignedBatchVAARequest) String() string

type GetSignedBatchVAAResponse

type GetSignedBatchVAAResponse struct {
	SignedBatchVaa *v1.SignedBatchVAAWithQuorum `protobuf:"bytes,1,opt,name=signed_batch_vaa,json=signedBatchVaa,proto3" json:"signed_batch_vaa,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSignedBatchVAAResponse) Descriptor deprecated

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

Deprecated: Use GetSignedBatchVAAResponse.ProtoReflect.Descriptor instead.

func (*GetSignedBatchVAAResponse) GetSignedBatchVaa

func (x *GetSignedBatchVAAResponse) GetSignedBatchVaa() *v1.SignedBatchVAAWithQuorum

func (*GetSignedBatchVAAResponse) ProtoMessage

func (*GetSignedBatchVAAResponse) ProtoMessage()

func (*GetSignedBatchVAAResponse) ProtoReflect

func (*GetSignedBatchVAAResponse) Reset

func (x *GetSignedBatchVAAResponse) Reset()

func (*GetSignedBatchVAAResponse) String

func (x *GetSignedBatchVAAResponse) String() string

type GetSignedVAARequest

type GetSignedVAARequest struct {
	MessageId *MessageID `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSignedVAARequest) Descriptor deprecated

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

Deprecated: Use GetSignedVAARequest.ProtoReflect.Descriptor instead.

func (*GetSignedVAARequest) GetMessageId

func (x *GetSignedVAARequest) GetMessageId() *MessageID

func (*GetSignedVAARequest) ProtoMessage

func (*GetSignedVAARequest) ProtoMessage()

func (*GetSignedVAARequest) ProtoReflect

func (x *GetSignedVAARequest) ProtoReflect() protoreflect.Message

func (*GetSignedVAARequest) Reset

func (x *GetSignedVAARequest) Reset()

func (*GetSignedVAARequest) String

func (x *GetSignedVAARequest) String() string

type GetSignedVAAResponse

type GetSignedVAAResponse struct {
	VaaBytes []byte `protobuf:"bytes,1,opt,name=vaa_bytes,json=vaaBytes,proto3" json:"vaa_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSignedVAAResponse) Descriptor deprecated

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

Deprecated: Use GetSignedVAAResponse.ProtoReflect.Descriptor instead.

func (*GetSignedVAAResponse) GetVaaBytes

func (x *GetSignedVAAResponse) GetVaaBytes() []byte

func (*GetSignedVAAResponse) ProtoMessage

func (*GetSignedVAAResponse) ProtoMessage()

func (*GetSignedVAAResponse) ProtoReflect

func (x *GetSignedVAAResponse) ProtoReflect() protoreflect.Message

func (*GetSignedVAAResponse) Reset

func (x *GetSignedVAAResponse) Reset()

func (*GetSignedVAAResponse) String

func (x *GetSignedVAAResponse) String() string

type GovernorGetAvailableNotionalByChainRequest

type GovernorGetAvailableNotionalByChainRequest struct {
	// contains filtered or unexported fields
}

func (*GovernorGetAvailableNotionalByChainRequest) Descriptor deprecated

Deprecated: Use GovernorGetAvailableNotionalByChainRequest.ProtoReflect.Descriptor instead.

func (*GovernorGetAvailableNotionalByChainRequest) ProtoMessage

func (*GovernorGetAvailableNotionalByChainRequest) ProtoReflect

func (*GovernorGetAvailableNotionalByChainRequest) Reset

func (*GovernorGetAvailableNotionalByChainRequest) String

type GovernorGetAvailableNotionalByChainResponse

type GovernorGetAvailableNotionalByChainResponse struct {

	// There is an entry for each chain that is being governed.
	// Chains that are not being governed are not listed, and assumed to be unlimited.
	Entries []*GovernorGetAvailableNotionalByChainResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*GovernorGetAvailableNotionalByChainResponse) Descriptor deprecated

Deprecated: Use GovernorGetAvailableNotionalByChainResponse.ProtoReflect.Descriptor instead.

func (*GovernorGetAvailableNotionalByChainResponse) GetEntries

func (*GovernorGetAvailableNotionalByChainResponse) ProtoMessage

func (*GovernorGetAvailableNotionalByChainResponse) ProtoReflect

func (*GovernorGetAvailableNotionalByChainResponse) Reset

func (*GovernorGetAvailableNotionalByChainResponse) String

type GovernorGetAvailableNotionalByChainResponse_Entry

type GovernorGetAvailableNotionalByChainResponse_Entry struct {
	ChainId                    uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	RemainingAvailableNotional uint64 `` /* 142-byte string literal not displayed */
	NotionalLimit              uint64 `protobuf:"varint,3,opt,name=notional_limit,json=notionalLimit,proto3" json:"notional_limit,omitempty"`
	BigTransactionSize         uint64 `protobuf:"varint,4,opt,name=big_transaction_size,json=bigTransactionSize,proto3" json:"big_transaction_size,omitempty"`
	// contains filtered or unexported fields
}

func (*GovernorGetAvailableNotionalByChainResponse_Entry) Descriptor deprecated

Deprecated: Use GovernorGetAvailableNotionalByChainResponse_Entry.ProtoReflect.Descriptor instead.

func (*GovernorGetAvailableNotionalByChainResponse_Entry) GetBigTransactionSize

func (x *GovernorGetAvailableNotionalByChainResponse_Entry) GetBigTransactionSize() uint64

func (*GovernorGetAvailableNotionalByChainResponse_Entry) GetChainId

func (*GovernorGetAvailableNotionalByChainResponse_Entry) GetNotionalLimit

func (*GovernorGetAvailableNotionalByChainResponse_Entry) GetRemainingAvailableNotional

func (x *GovernorGetAvailableNotionalByChainResponse_Entry) GetRemainingAvailableNotional() uint64

func (*GovernorGetAvailableNotionalByChainResponse_Entry) ProtoMessage

func (*GovernorGetAvailableNotionalByChainResponse_Entry) ProtoReflect

func (*GovernorGetAvailableNotionalByChainResponse_Entry) Reset

func (*GovernorGetAvailableNotionalByChainResponse_Entry) String

type GovernorGetEnqueuedVAAsRequest

type GovernorGetEnqueuedVAAsRequest struct {
	// contains filtered or unexported fields
}

func (*GovernorGetEnqueuedVAAsRequest) Descriptor deprecated

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

Deprecated: Use GovernorGetEnqueuedVAAsRequest.ProtoReflect.Descriptor instead.

func (*GovernorGetEnqueuedVAAsRequest) ProtoMessage

func (*GovernorGetEnqueuedVAAsRequest) ProtoMessage()

func (*GovernorGetEnqueuedVAAsRequest) ProtoReflect

func (*GovernorGetEnqueuedVAAsRequest) Reset

func (x *GovernorGetEnqueuedVAAsRequest) Reset()

func (*GovernorGetEnqueuedVAAsRequest) String

type GovernorGetEnqueuedVAAsResponse

type GovernorGetEnqueuedVAAsResponse struct {

	// There is an entry for each enqueued vaa.
	Entries []*GovernorGetEnqueuedVAAsResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*GovernorGetEnqueuedVAAsResponse) Descriptor deprecated

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

Deprecated: Use GovernorGetEnqueuedVAAsResponse.ProtoReflect.Descriptor instead.

func (*GovernorGetEnqueuedVAAsResponse) GetEntries

func (*GovernorGetEnqueuedVAAsResponse) ProtoMessage

func (*GovernorGetEnqueuedVAAsResponse) ProtoMessage()

func (*GovernorGetEnqueuedVAAsResponse) ProtoReflect

func (*GovernorGetEnqueuedVAAsResponse) Reset

func (*GovernorGetEnqueuedVAAsResponse) String

type GovernorGetEnqueuedVAAsResponse_Entry

type GovernorGetEnqueuedVAAsResponse_Entry struct {
	EmitterChain   uint32 `protobuf:"varint,1,opt,name=emitter_chain,json=emitterChain,proto3" json:"emitter_chain,omitempty"`
	EmitterAddress string `protobuf:"bytes,2,opt,name=emitter_address,json=emitterAddress,proto3" json:"emitter_address,omitempty"` // human-readable hex-encoded (leading 0x)
	Sequence       uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	ReleaseTime    uint32 `protobuf:"varint,4,opt,name=release_time,json=releaseTime,proto3" json:"release_time,omitempty"`
	NotionalValue  uint64 `protobuf:"varint,5,opt,name=notional_value,json=notionalValue,proto3" json:"notional_value,omitempty"`
	TxHash         string `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*GovernorGetEnqueuedVAAsResponse_Entry) Descriptor deprecated

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

Deprecated: Use GovernorGetEnqueuedVAAsResponse_Entry.ProtoReflect.Descriptor instead.

func (*GovernorGetEnqueuedVAAsResponse_Entry) GetEmitterAddress

func (x *GovernorGetEnqueuedVAAsResponse_Entry) GetEmitterAddress() string

func (*GovernorGetEnqueuedVAAsResponse_Entry) GetEmitterChain

func (x *GovernorGetEnqueuedVAAsResponse_Entry) GetEmitterChain() uint32

func (*GovernorGetEnqueuedVAAsResponse_Entry) GetNotionalValue

func (x *GovernorGetEnqueuedVAAsResponse_Entry) GetNotionalValue() uint64

func (*GovernorGetEnqueuedVAAsResponse_Entry) GetReleaseTime

func (x *GovernorGetEnqueuedVAAsResponse_Entry) GetReleaseTime() uint32

func (*GovernorGetEnqueuedVAAsResponse_Entry) GetSequence

func (*GovernorGetEnqueuedVAAsResponse_Entry) GetTxHash

func (*GovernorGetEnqueuedVAAsResponse_Entry) ProtoMessage

func (*GovernorGetEnqueuedVAAsResponse_Entry) ProtoMessage()

func (*GovernorGetEnqueuedVAAsResponse_Entry) ProtoReflect

func (*GovernorGetEnqueuedVAAsResponse_Entry) Reset

func (*GovernorGetEnqueuedVAAsResponse_Entry) String

type GovernorGetTokenListRequest

type GovernorGetTokenListRequest struct {
	// contains filtered or unexported fields
}

func (*GovernorGetTokenListRequest) Descriptor deprecated

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

Deprecated: Use GovernorGetTokenListRequest.ProtoReflect.Descriptor instead.

func (*GovernorGetTokenListRequest) ProtoMessage

func (*GovernorGetTokenListRequest) ProtoMessage()

func (*GovernorGetTokenListRequest) ProtoReflect

func (*GovernorGetTokenListRequest) Reset

func (x *GovernorGetTokenListRequest) Reset()

func (*GovernorGetTokenListRequest) String

func (x *GovernorGetTokenListRequest) String() string

type GovernorGetTokenListResponse

type GovernorGetTokenListResponse struct {

	// There is an entry for each token that applies to the notional TVL calcuation.
	Entries []*GovernorGetTokenListResponse_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*GovernorGetTokenListResponse) Descriptor deprecated

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

Deprecated: Use GovernorGetTokenListResponse.ProtoReflect.Descriptor instead.

func (*GovernorGetTokenListResponse) GetEntries

func (*GovernorGetTokenListResponse) ProtoMessage

func (*GovernorGetTokenListResponse) ProtoMessage()

func (*GovernorGetTokenListResponse) ProtoReflect

func (*GovernorGetTokenListResponse) Reset

func (x *GovernorGetTokenListResponse) Reset()

func (*GovernorGetTokenListResponse) String

type GovernorGetTokenListResponse_Entry

type GovernorGetTokenListResponse_Entry struct {
	OriginChainId uint32  `protobuf:"varint,1,opt,name=origin_chain_id,json=originChainId,proto3" json:"origin_chain_id,omitempty"`
	OriginAddress string  `protobuf:"bytes,2,opt,name=origin_address,json=originAddress,proto3" json:"origin_address,omitempty"` // human-readable hex-encoded (leading 0x)
	Price         float32 `protobuf:"fixed32,3,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

func (*GovernorGetTokenListResponse_Entry) Descriptor deprecated

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

Deprecated: Use GovernorGetTokenListResponse_Entry.ProtoReflect.Descriptor instead.

func (*GovernorGetTokenListResponse_Entry) GetOriginAddress

func (x *GovernorGetTokenListResponse_Entry) GetOriginAddress() string

func (*GovernorGetTokenListResponse_Entry) GetOriginChainId

func (x *GovernorGetTokenListResponse_Entry) GetOriginChainId() uint32

func (*GovernorGetTokenListResponse_Entry) GetPrice

func (*GovernorGetTokenListResponse_Entry) ProtoMessage

func (*GovernorGetTokenListResponse_Entry) ProtoMessage()

func (*GovernorGetTokenListResponse_Entry) ProtoReflect

func (*GovernorGetTokenListResponse_Entry) Reset

func (*GovernorGetTokenListResponse_Entry) String

type GovernorIsVAAEnqueuedRequest

type GovernorIsVAAEnqueuedRequest struct {
	MessageId *MessageID `protobuf:"bytes,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GovernorIsVAAEnqueuedRequest) Descriptor deprecated

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

Deprecated: Use GovernorIsVAAEnqueuedRequest.ProtoReflect.Descriptor instead.

func (*GovernorIsVAAEnqueuedRequest) GetMessageId

func (x *GovernorIsVAAEnqueuedRequest) GetMessageId() *MessageID

func (*GovernorIsVAAEnqueuedRequest) ProtoMessage

func (*GovernorIsVAAEnqueuedRequest) ProtoMessage()

func (*GovernorIsVAAEnqueuedRequest) ProtoReflect

func (*GovernorIsVAAEnqueuedRequest) Reset

func (x *GovernorIsVAAEnqueuedRequest) Reset()

func (*GovernorIsVAAEnqueuedRequest) String

type GovernorIsVAAEnqueuedResponse

type GovernorIsVAAEnqueuedResponse struct {
	IsEnqueued bool `protobuf:"varint,1,opt,name=is_enqueued,json=isEnqueued,proto3" json:"is_enqueued,omitempty"`
	// contains filtered or unexported fields
}

func (*GovernorIsVAAEnqueuedResponse) Descriptor deprecated

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

Deprecated: Use GovernorIsVAAEnqueuedResponse.ProtoReflect.Descriptor instead.

func (*GovernorIsVAAEnqueuedResponse) GetIsEnqueued

func (x *GovernorIsVAAEnqueuedResponse) GetIsEnqueued() bool

func (*GovernorIsVAAEnqueuedResponse) ProtoMessage

func (*GovernorIsVAAEnqueuedResponse) ProtoMessage()

func (*GovernorIsVAAEnqueuedResponse) ProtoReflect

func (*GovernorIsVAAEnqueuedResponse) Reset

func (x *GovernorIsVAAEnqueuedResponse) Reset()

func (*GovernorIsVAAEnqueuedResponse) String

type MessageID

type MessageID struct {

	// Emitter chain ID.
	EmitterChain ChainID `protobuf:"varint,1,opt,name=emitter_chain,json=emitterChain,proto3,enum=publicrpc.v1.ChainID" json:"emitter_chain,omitempty"`
	// Hex-encoded (without leading 0x) emitter address.
	EmitterAddress string `protobuf:"bytes,2,opt,name=emitter_address,json=emitterAddress,proto3" json:"emitter_address,omitempty"`
	// Sequence number for (emitter_chain, emitter_address).
	Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// contains filtered or unexported fields
}

MessageID is a VAA's globally unique identifier (see data availability design document).

func (*MessageID) Descriptor deprecated

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

Deprecated: Use MessageID.ProtoReflect.Descriptor instead.

func (*MessageID) GetEmitterAddress

func (x *MessageID) GetEmitterAddress() string

func (*MessageID) GetEmitterChain

func (x *MessageID) GetEmitterChain() ChainID

func (*MessageID) GetSequence

func (x *MessageID) GetSequence() uint64

func (*MessageID) ProtoMessage

func (*MessageID) ProtoMessage()

func (*MessageID) ProtoReflect

func (x *MessageID) ProtoReflect() protoreflect.Message

func (*MessageID) Reset

func (x *MessageID) Reset()

func (*MessageID) String

func (x *MessageID) String() string

type PhylaxSet

type PhylaxSet struct {

	// Phylax set index
	Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// List of phylax addresses as human-readable hex-encoded (leading 0x) addresses.
	Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*PhylaxSet) Descriptor deprecated

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

Deprecated: Use PhylaxSet.ProtoReflect.Descriptor instead.

func (*PhylaxSet) GetAddresses

func (x *PhylaxSet) GetAddresses() []string

func (*PhylaxSet) GetIndex

func (x *PhylaxSet) GetIndex() uint32

func (*PhylaxSet) ProtoMessage

func (*PhylaxSet) ProtoMessage()

func (*PhylaxSet) ProtoReflect

func (x *PhylaxSet) ProtoReflect() protoreflect.Message

func (*PhylaxSet) Reset

func (x *PhylaxSet) Reset()

func (*PhylaxSet) String

func (x *PhylaxSet) String() string

type PublicRPCServiceClient

type PublicRPCServiceClient interface {
	// GetLastHeartbeats returns the last heartbeat received for each phylax node in the
	// node's active phylax set. Heartbeats received by nodes not in the phylax set are ignored.
	// The heartbeat value is null if no heartbeat has yet been received.
	GetLastHeartbeats(ctx context.Context, in *GetLastHeartbeatsRequest, opts ...grpc.CallOption) (*GetLastHeartbeatsResponse, error)
	GetSignedVAA(ctx context.Context, in *GetSignedVAARequest, opts ...grpc.CallOption) (*GetSignedVAAResponse, error)
	GetSignedBatchVAA(ctx context.Context, in *GetSignedBatchVAARequest, opts ...grpc.CallOption) (*GetSignedBatchVAAResponse, error)
	GetCurrentPhylaxSet(ctx context.Context, in *GetCurrentPhylaxSetRequest, opts ...grpc.CallOption) (*GetCurrentPhylaxSetResponse, error)
	GovernorGetAvailableNotionalByChain(ctx context.Context, in *GovernorGetAvailableNotionalByChainRequest, opts ...grpc.CallOption) (*GovernorGetAvailableNotionalByChainResponse, error)
	GovernorGetEnqueuedVAAs(ctx context.Context, in *GovernorGetEnqueuedVAAsRequest, opts ...grpc.CallOption) (*GovernorGetEnqueuedVAAsResponse, error)
	GovernorIsVAAEnqueued(ctx context.Context, in *GovernorIsVAAEnqueuedRequest, opts ...grpc.CallOption) (*GovernorIsVAAEnqueuedResponse, error)
	GovernorGetTokenList(ctx context.Context, in *GovernorGetTokenListRequest, opts ...grpc.CallOption) (*GovernorGetTokenListResponse, error)
}

PublicRPCServiceClient is the client API for PublicRPCService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PublicRPCServiceServer

type PublicRPCServiceServer interface {
	// GetLastHeartbeats returns the last heartbeat received for each phylax node in the
	// node's active phylax set. Heartbeats received by nodes not in the phylax set are ignored.
	// The heartbeat value is null if no heartbeat has yet been received.
	GetLastHeartbeats(context.Context, *GetLastHeartbeatsRequest) (*GetLastHeartbeatsResponse, error)
	GetSignedVAA(context.Context, *GetSignedVAARequest) (*GetSignedVAAResponse, error)
	GetSignedBatchVAA(context.Context, *GetSignedBatchVAARequest) (*GetSignedBatchVAAResponse, error)
	GetCurrentPhylaxSet(context.Context, *GetCurrentPhylaxSetRequest) (*GetCurrentPhylaxSetResponse, error)
	GovernorGetAvailableNotionalByChain(context.Context, *GovernorGetAvailableNotionalByChainRequest) (*GovernorGetAvailableNotionalByChainResponse, error)
	GovernorGetEnqueuedVAAs(context.Context, *GovernorGetEnqueuedVAAsRequest) (*GovernorGetEnqueuedVAAsResponse, error)
	GovernorIsVAAEnqueued(context.Context, *GovernorIsVAAEnqueuedRequest) (*GovernorIsVAAEnqueuedResponse, error)
	GovernorGetTokenList(context.Context, *GovernorGetTokenListRequest) (*GovernorGetTokenListResponse, error)
	// contains filtered or unexported methods
}

PublicRPCServiceServer is the server API for PublicRPCService service. All implementations must embed UnimplementedPublicRPCServiceServer for forward compatibility

type UnimplementedPublicRPCServiceServer

type UnimplementedPublicRPCServiceServer struct {
}

UnimplementedPublicRPCServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPublicRPCServiceServer) GetCurrentPhylaxSet

func (UnimplementedPublicRPCServiceServer) GetLastHeartbeats

func (UnimplementedPublicRPCServiceServer) GetSignedBatchVAA

func (UnimplementedPublicRPCServiceServer) GetSignedVAA

type UnsafePublicRPCServiceServer

type UnsafePublicRPCServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePublicRPCServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PublicRPCServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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