pb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 16 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var BridgeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "bridge.v1.BridgeService",
	HandlerType: (*BridgeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CheckAPI",
			Handler:    _BridgeService_CheckAPI_Handler,
		},
		{
			MethodName: "GetBridges",
			Handler:    _BridgeService_GetBridges_Handler,
		},
		{
			MethodName: "GetProof",
			Handler:    _BridgeService_GetProof_Handler,
		},
		{
			MethodName: "GetBridge",
			Handler:    _BridgeService_GetBridge_Handler,
		},
		{
			MethodName: "GetClaims",
			Handler:    _BridgeService_GetClaims_Handler,
		},
		{
			MethodName: "GetTokenWrapped",
			Handler:    _BridgeService_GetTokenWrapped_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "query.proto",
}

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

View Source
var File_query_proto protoreflect.FileDescriptor

Functions

func RegisterBridgeServiceHandler

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

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

func RegisterBridgeServiceHandlerClient

func RegisterBridgeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BridgeServiceClient) error

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

func RegisterBridgeServiceHandlerFromEndpoint

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

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

func RegisterBridgeServiceHandlerServer

func RegisterBridgeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BridgeServiceServer) error

RegisterBridgeServiceHandlerServer registers the http handlers for service BridgeService to "mux". UnaryRPC :call BridgeServiceServer 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 RegisterBridgeServiceHandlerFromEndpoint instead.

func RegisterBridgeServiceServer

func RegisterBridgeServiceServer(s grpc.ServiceRegistrar, srv BridgeServiceServer)

Types

type BridgeServiceClient

type BridgeServiceClient interface {
	// Getters
	/// Get api version
	CheckAPI(ctx context.Context, in *CheckAPIRequest, opts ...grpc.CallOption) (*CheckAPIResponse, error)
	/// Get bridges for the destination address both in L1 and L2
	GetBridges(ctx context.Context, in *GetBridgesRequest, opts ...grpc.CallOption) (*GetBridgesResponse, error)
	/// Get the merkle proof for the specific deposit
	GetProof(ctx context.Context, in *GetProofRequest, opts ...grpc.CallOption) (*GetProofResponse, error)
	/// Get the specific deposit
	GetBridge(ctx context.Context, in *GetBridgeRequest, opts ...grpc.CallOption) (*GetBridgeResponse, error)
	/// Get claims for the specific smart contract address both in L1 and L2
	GetClaims(ctx context.Context, in *GetClaimsRequest, opts ...grpc.CallOption) (*GetClaimsResponse, error)
	/// Get token wrapped for the specific smart contract address both in L1 and L2
	GetTokenWrapped(ctx context.Context, in *GetTokenWrappedRequest, opts ...grpc.CallOption) (*GetTokenWrappedResponse, error)
}

BridgeServiceClient is the client API for BridgeService 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 BridgeServiceServer

type BridgeServiceServer interface {
	// Getters
	/// Get api version
	CheckAPI(context.Context, *CheckAPIRequest) (*CheckAPIResponse, error)
	/// Get bridges for the destination address both in L1 and L2
	GetBridges(context.Context, *GetBridgesRequest) (*GetBridgesResponse, error)
	/// Get the merkle proof for the specific deposit
	GetProof(context.Context, *GetProofRequest) (*GetProofResponse, error)
	/// Get the specific deposit
	GetBridge(context.Context, *GetBridgeRequest) (*GetBridgeResponse, error)
	/// Get claims for the specific smart contract address both in L1 and L2
	GetClaims(context.Context, *GetClaimsRequest) (*GetClaimsResponse, error)
	/// Get token wrapped for the specific smart contract address both in L1 and L2
	GetTokenWrapped(context.Context, *GetTokenWrappedRequest) (*GetTokenWrappedResponse, error)
	// contains filtered or unexported methods
}

BridgeServiceServer is the server API for BridgeService service. All implementations must embed UnimplementedBridgeServiceServer for forward compatibility

type CheckAPIRequest

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

func (*CheckAPIRequest) Descriptor deprecated

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

Deprecated: Use CheckAPIRequest.ProtoReflect.Descriptor instead.

func (*CheckAPIRequest) ProtoMessage

func (*CheckAPIRequest) ProtoMessage()

func (*CheckAPIRequest) ProtoReflect

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

func (*CheckAPIRequest) Reset

func (x *CheckAPIRequest) Reset()

func (*CheckAPIRequest) String

func (x *CheckAPIRequest) String() string

type CheckAPIResponse

type CheckAPIResponse struct {
	Api string `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckAPIResponse) Descriptor deprecated

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

Deprecated: Use CheckAPIResponse.ProtoReflect.Descriptor instead.

func (*CheckAPIResponse) GetApi

func (x *CheckAPIResponse) GetApi() string

func (*CheckAPIResponse) ProtoMessage

func (*CheckAPIResponse) ProtoMessage()

func (*CheckAPIResponse) ProtoReflect

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

func (*CheckAPIResponse) Reset

func (x *CheckAPIResponse) Reset()

func (*CheckAPIResponse) String

func (x *CheckAPIResponse) String() string

type Claim

type Claim struct {
	Index     uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	OrigNet   uint32 `protobuf:"varint,2,opt,name=orig_net,json=origNet,proto3" json:"orig_net,omitempty"`
	OrigAddr  string `protobuf:"bytes,3,opt,name=orig_addr,json=origAddr,proto3" json:"orig_addr,omitempty"`
	Amount    string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	NetworkId uint32 `protobuf:"varint,5,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	DestAddr  string `protobuf:"bytes,6,opt,name=dest_addr,json=destAddr,proto3" json:"dest_addr,omitempty"`
	BlockNum  uint64 `protobuf:"varint,7,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
	TxHash    string `protobuf:"bytes,8,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// contains filtered or unexported fields
}

Claim message

func (*Claim) Descriptor deprecated

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

Deprecated: Use Claim.ProtoReflect.Descriptor instead.

func (*Claim) GetAmount

func (x *Claim) GetAmount() string

func (*Claim) GetBlockNum

func (x *Claim) GetBlockNum() uint64

func (*Claim) GetDestAddr

func (x *Claim) GetDestAddr() string

func (*Claim) GetIndex

func (x *Claim) GetIndex() uint64

func (*Claim) GetNetworkId

func (x *Claim) GetNetworkId() uint32

func (*Claim) GetOrigAddr

func (x *Claim) GetOrigAddr() string

func (*Claim) GetOrigNet

func (x *Claim) GetOrigNet() uint32

func (*Claim) GetTxHash

func (x *Claim) GetTxHash() string

func (*Claim) ProtoMessage

func (*Claim) ProtoMessage()

func (*Claim) ProtoReflect

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

func (*Claim) Reset

func (x *Claim) Reset()

func (*Claim) String

func (x *Claim) String() string

type Deposit

type Deposit struct {
	LeafType      uint32 `protobuf:"varint,1,opt,name=leaf_type,json=leafType,proto3" json:"leaf_type,omitempty"`
	OrigNet       uint32 `protobuf:"varint,2,opt,name=orig_net,json=origNet,proto3" json:"orig_net,omitempty"`
	OrigAddr      string `protobuf:"bytes,3,opt,name=orig_addr,json=origAddr,proto3" json:"orig_addr,omitempty"`
	Amount        string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	DestNet       uint32 `protobuf:"varint,5,opt,name=dest_net,json=destNet,proto3" json:"dest_net,omitempty"`
	DestAddr      string `protobuf:"bytes,6,opt,name=dest_addr,json=destAddr,proto3" json:"dest_addr,omitempty"`
	BlockNum      uint64 `protobuf:"varint,7,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
	DepositCnt    uint64 `protobuf:"varint,8,opt,name=deposit_cnt,json=depositCnt,proto3" json:"deposit_cnt,omitempty"`
	NetworkId     uint32 `protobuf:"varint,9,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	TxHash        string `protobuf:"bytes,10,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	ClaimTxHash   string `protobuf:"bytes,11,opt,name=claim_tx_hash,json=claimTxHash,proto3" json:"claim_tx_hash,omitempty"`
	Metadata      string `protobuf:"bytes,12,opt,name=metadata,proto3" json:"metadata,omitempty"`
	ReadyForClaim bool   `protobuf:"varint,13,opt,name=ready_for_claim,json=readyForClaim,proto3" json:"ready_for_claim,omitempty"`
	// contains filtered or unexported fields
}

Deposit message

func (*Deposit) Descriptor deprecated

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

Deprecated: Use Deposit.ProtoReflect.Descriptor instead.

func (*Deposit) GetAmount

func (x *Deposit) GetAmount() string

func (*Deposit) GetBlockNum

func (x *Deposit) GetBlockNum() uint64

func (*Deposit) GetClaimTxHash

func (x *Deposit) GetClaimTxHash() string

func (*Deposit) GetDepositCnt

func (x *Deposit) GetDepositCnt() uint64

func (*Deposit) GetDestAddr

func (x *Deposit) GetDestAddr() string

func (*Deposit) GetDestNet

func (x *Deposit) GetDestNet() uint32

func (*Deposit) GetLeafType

func (x *Deposit) GetLeafType() uint32

func (*Deposit) GetMetadata

func (x *Deposit) GetMetadata() string

func (*Deposit) GetNetworkId

func (x *Deposit) GetNetworkId() uint32

func (*Deposit) GetOrigAddr

func (x *Deposit) GetOrigAddr() string

func (*Deposit) GetOrigNet

func (x *Deposit) GetOrigNet() uint32

func (*Deposit) GetReadyForClaim

func (x *Deposit) GetReadyForClaim() bool

func (*Deposit) GetTxHash

func (x *Deposit) GetTxHash() string

func (*Deposit) ProtoMessage

func (*Deposit) ProtoMessage()

func (*Deposit) ProtoReflect

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

func (*Deposit) Reset

func (x *Deposit) Reset()

func (*Deposit) String

func (x *Deposit) String() string

type GetBridgeRequest

type GetBridgeRequest struct {
	NetId      uint32 `protobuf:"varint,1,opt,name=net_id,json=netId,proto3" json:"net_id,omitempty"`
	DepositCnt uint64 `protobuf:"varint,2,opt,name=deposit_cnt,json=depositCnt,proto3" json:"deposit_cnt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBridgeRequest) Descriptor deprecated

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

Deprecated: Use GetBridgeRequest.ProtoReflect.Descriptor instead.

func (*GetBridgeRequest) GetDepositCnt

func (x *GetBridgeRequest) GetDepositCnt() uint64

func (*GetBridgeRequest) GetNetId

func (x *GetBridgeRequest) GetNetId() uint32

func (*GetBridgeRequest) ProtoMessage

func (*GetBridgeRequest) ProtoMessage()

func (*GetBridgeRequest) ProtoReflect

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

func (*GetBridgeRequest) Reset

func (x *GetBridgeRequest) Reset()

func (*GetBridgeRequest) String

func (x *GetBridgeRequest) String() string

type GetBridgeResponse

type GetBridgeResponse struct {
	Deposit *Deposit `protobuf:"bytes,1,opt,name=deposit,proto3" json:"deposit,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBridgeResponse) Descriptor deprecated

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

Deprecated: Use GetBridgeResponse.ProtoReflect.Descriptor instead.

func (*GetBridgeResponse) GetDeposit

func (x *GetBridgeResponse) GetDeposit() *Deposit

func (*GetBridgeResponse) ProtoMessage

func (*GetBridgeResponse) ProtoMessage()

func (*GetBridgeResponse) ProtoReflect

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

func (*GetBridgeResponse) Reset

func (x *GetBridgeResponse) Reset()

func (*GetBridgeResponse) String

func (x *GetBridgeResponse) String() string

type GetBridgesRequest

type GetBridgesRequest struct {
	DestAddr string `protobuf:"bytes,1,opt,name=dest_addr,json=destAddr,proto3" json:"dest_addr,omitempty"`
	Offset   uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit    uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBridgesRequest) Descriptor deprecated

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

Deprecated: Use GetBridgesRequest.ProtoReflect.Descriptor instead.

func (*GetBridgesRequest) GetDestAddr

func (x *GetBridgesRequest) GetDestAddr() string

func (*GetBridgesRequest) GetLimit

func (x *GetBridgesRequest) GetLimit() uint32

func (*GetBridgesRequest) GetOffset

func (x *GetBridgesRequest) GetOffset() uint64

func (*GetBridgesRequest) ProtoMessage

func (*GetBridgesRequest) ProtoMessage()

func (*GetBridgesRequest) ProtoReflect

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

func (*GetBridgesRequest) Reset

func (x *GetBridgesRequest) Reset()

func (*GetBridgesRequest) String

func (x *GetBridgesRequest) String() string

type GetBridgesResponse

type GetBridgesResponse struct {
	Deposits []*Deposit `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits,omitempty"`
	TotalCnt uint64     `protobuf:"varint,2,opt,name=total_cnt,json=totalCnt,proto3" json:"total_cnt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBridgesResponse) Descriptor deprecated

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

Deprecated: Use GetBridgesResponse.ProtoReflect.Descriptor instead.

func (*GetBridgesResponse) GetDeposits

func (x *GetBridgesResponse) GetDeposits() []*Deposit

func (*GetBridgesResponse) GetTotalCnt

func (x *GetBridgesResponse) GetTotalCnt() uint64

func (*GetBridgesResponse) ProtoMessage

func (*GetBridgesResponse) ProtoMessage()

func (*GetBridgesResponse) ProtoReflect

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

func (*GetBridgesResponse) Reset

func (x *GetBridgesResponse) Reset()

func (*GetBridgesResponse) String

func (x *GetBridgesResponse) String() string

type GetClaimsRequest

type GetClaimsRequest struct {
	DestAddr string `protobuf:"bytes,1,opt,name=dest_addr,json=destAddr,proto3" json:"dest_addr,omitempty"`
	Offset   uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit    uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClaimsRequest) Descriptor deprecated

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

Deprecated: Use GetClaimsRequest.ProtoReflect.Descriptor instead.

func (*GetClaimsRequest) GetDestAddr

func (x *GetClaimsRequest) GetDestAddr() string

func (*GetClaimsRequest) GetLimit

func (x *GetClaimsRequest) GetLimit() uint32

func (*GetClaimsRequest) GetOffset

func (x *GetClaimsRequest) GetOffset() uint64

func (*GetClaimsRequest) ProtoMessage

func (*GetClaimsRequest) ProtoMessage()

func (*GetClaimsRequest) ProtoReflect

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

func (*GetClaimsRequest) Reset

func (x *GetClaimsRequest) Reset()

func (*GetClaimsRequest) String

func (x *GetClaimsRequest) String() string

type GetClaimsResponse

type GetClaimsResponse struct {
	Claims   []*Claim `protobuf:"bytes,1,rep,name=claims,proto3" json:"claims,omitempty"`
	TotalCnt uint64   `protobuf:"varint,2,opt,name=total_cnt,json=totalCnt,proto3" json:"total_cnt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClaimsResponse) Descriptor deprecated

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

Deprecated: Use GetClaimsResponse.ProtoReflect.Descriptor instead.

func (*GetClaimsResponse) GetClaims

func (x *GetClaimsResponse) GetClaims() []*Claim

func (*GetClaimsResponse) GetTotalCnt

func (x *GetClaimsResponse) GetTotalCnt() uint64

func (*GetClaimsResponse) ProtoMessage

func (*GetClaimsResponse) ProtoMessage()

func (*GetClaimsResponse) ProtoReflect

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

func (*GetClaimsResponse) Reset

func (x *GetClaimsResponse) Reset()

func (*GetClaimsResponse) String

func (x *GetClaimsResponse) String() string

type GetProofRequest

type GetProofRequest struct {
	NetId      uint32 `protobuf:"varint,1,opt,name=net_id,json=netId,proto3" json:"net_id,omitempty"`
	DepositCnt uint64 `protobuf:"varint,2,opt,name=deposit_cnt,json=depositCnt,proto3" json:"deposit_cnt,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProofRequest) Descriptor deprecated

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

Deprecated: Use GetProofRequest.ProtoReflect.Descriptor instead.

func (*GetProofRequest) GetDepositCnt

func (x *GetProofRequest) GetDepositCnt() uint64

func (*GetProofRequest) GetNetId

func (x *GetProofRequest) GetNetId() uint32

func (*GetProofRequest) ProtoMessage

func (*GetProofRequest) ProtoMessage()

func (*GetProofRequest) ProtoReflect

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

func (*GetProofRequest) Reset

func (x *GetProofRequest) Reset()

func (*GetProofRequest) String

func (x *GetProofRequest) String() string

type GetProofResponse

type GetProofResponse struct {
	Proof *Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProofResponse) Descriptor deprecated

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

Deprecated: Use GetProofResponse.ProtoReflect.Descriptor instead.

func (*GetProofResponse) GetProof

func (x *GetProofResponse) GetProof() *Proof

func (*GetProofResponse) ProtoMessage

func (*GetProofResponse) ProtoMessage()

func (*GetProofResponse) ProtoReflect

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

func (*GetProofResponse) Reset

func (x *GetProofResponse) Reset()

func (*GetProofResponse) String

func (x *GetProofResponse) String() string

type GetTokenWrappedRequest

type GetTokenWrappedRequest struct {
	OrigTokenAddr string `protobuf:"bytes,1,opt,name=orig_token_addr,json=origTokenAddr,proto3" json:"orig_token_addr,omitempty"`
	OrigNet       uint32 `protobuf:"varint,2,opt,name=orig_net,json=origNet,proto3" json:"orig_net,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTokenWrappedRequest) Descriptor deprecated

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

Deprecated: Use GetTokenWrappedRequest.ProtoReflect.Descriptor instead.

func (*GetTokenWrappedRequest) GetOrigNet

func (x *GetTokenWrappedRequest) GetOrigNet() uint32

func (*GetTokenWrappedRequest) GetOrigTokenAddr

func (x *GetTokenWrappedRequest) GetOrigTokenAddr() string

func (*GetTokenWrappedRequest) ProtoMessage

func (*GetTokenWrappedRequest) ProtoMessage()

func (*GetTokenWrappedRequest) ProtoReflect

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

func (*GetTokenWrappedRequest) Reset

func (x *GetTokenWrappedRequest) Reset()

func (*GetTokenWrappedRequest) String

func (x *GetTokenWrappedRequest) String() string

type GetTokenWrappedResponse

type GetTokenWrappedResponse struct {
	Tokenwrapped *TokenWrapped `protobuf:"bytes,1,opt,name=tokenwrapped,proto3" json:"tokenwrapped,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTokenWrappedResponse) Descriptor deprecated

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

Deprecated: Use GetTokenWrappedResponse.ProtoReflect.Descriptor instead.

func (*GetTokenWrappedResponse) GetTokenwrapped

func (x *GetTokenWrappedResponse) GetTokenwrapped() *TokenWrapped

func (*GetTokenWrappedResponse) ProtoMessage

func (*GetTokenWrappedResponse) ProtoMessage()

func (*GetTokenWrappedResponse) ProtoReflect

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

func (*GetTokenWrappedResponse) Reset

func (x *GetTokenWrappedResponse) Reset()

func (*GetTokenWrappedResponse) String

func (x *GetTokenWrappedResponse) String() string

type Proof

type Proof struct {
	MerkleProof    []string `protobuf:"bytes,1,rep,name=merkle_proof,json=merkleProof,proto3" json:"merkle_proof,omitempty"`
	MainExitRoot   string   `protobuf:"bytes,2,opt,name=main_exit_root,json=mainExitRoot,proto3" json:"main_exit_root,omitempty"`
	RollupExitRoot string   `protobuf:"bytes,3,opt,name=rollup_exit_root,json=rollupExitRoot,proto3" json:"rollup_exit_root,omitempty"`
	// contains filtered or unexported fields
}

Merkle Proof message

func (*Proof) Descriptor deprecated

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

Deprecated: Use Proof.ProtoReflect.Descriptor instead.

func (*Proof) GetMainExitRoot

func (x *Proof) GetMainExitRoot() string

func (*Proof) GetMerkleProof

func (x *Proof) GetMerkleProof() []string

func (*Proof) GetRollupExitRoot

func (x *Proof) GetRollupExitRoot() string

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) ProtoReflect

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

func (*Proof) Reset

func (x *Proof) Reset()

func (*Proof) String

func (x *Proof) String() string

type TokenWrapped

type TokenWrapped struct {
	OrigNet           uint32 `protobuf:"varint,1,opt,name=orig_net,json=origNet,proto3" json:"orig_net,omitempty"`
	OriginalTokenAddr string `protobuf:"bytes,2,opt,name=original_token_addr,json=originalTokenAddr,proto3" json:"original_token_addr,omitempty"`
	WrappedTokenAddr  string `protobuf:"bytes,3,opt,name=wrapped_token_addr,json=wrappedTokenAddr,proto3" json:"wrapped_token_addr,omitempty"`
	NetworkId         uint32 `protobuf:"varint,4,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	Name              string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Symbol            string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Decimals          uint32 `protobuf:"varint,7,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// contains filtered or unexported fields
}

TokenWrapped message

func (*TokenWrapped) Descriptor deprecated

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

Deprecated: Use TokenWrapped.ProtoReflect.Descriptor instead.

func (*TokenWrapped) GetDecimals

func (x *TokenWrapped) GetDecimals() uint32

func (*TokenWrapped) GetName

func (x *TokenWrapped) GetName() string

func (*TokenWrapped) GetNetworkId

func (x *TokenWrapped) GetNetworkId() uint32

func (*TokenWrapped) GetOrigNet

func (x *TokenWrapped) GetOrigNet() uint32

func (*TokenWrapped) GetOriginalTokenAddr

func (x *TokenWrapped) GetOriginalTokenAddr() string

func (*TokenWrapped) GetSymbol

func (x *TokenWrapped) GetSymbol() string

func (*TokenWrapped) GetWrappedTokenAddr

func (x *TokenWrapped) GetWrappedTokenAddr() string

func (*TokenWrapped) ProtoMessage

func (*TokenWrapped) ProtoMessage()

func (*TokenWrapped) ProtoReflect

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

func (*TokenWrapped) Reset

func (x *TokenWrapped) Reset()

func (*TokenWrapped) String

func (x *TokenWrapped) String() string

type UnimplementedBridgeServiceServer

type UnimplementedBridgeServiceServer struct {
}

UnimplementedBridgeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedBridgeServiceServer) CheckAPI

func (UnimplementedBridgeServiceServer) GetBridge

func (UnimplementedBridgeServiceServer) GetBridges

func (UnimplementedBridgeServiceServer) GetClaims

func (UnimplementedBridgeServiceServer) GetProof

func (UnimplementedBridgeServiceServer) GetTokenWrapped

type UnsafeBridgeServiceServer

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

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

Jump to

Keyboard shortcuts

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