Documentation
¶
Index ¶
- Variables
- type Method
- type ParseRequestInput
- func (*ParseRequestInput) Descriptor() ([]byte, []int)deprecated
- func (x *ParseRequestInput) GetMethod() Method
- func (x *ParseRequestInput) GetPayload() string
- func (x *ParseRequestInput) GetProtocol() Protocol
- func (*ParseRequestInput) ProtoMessage()
- func (x *ParseRequestInput) ProtoReflect() protoreflect.Message
- func (x *ParseRequestInput) Reset()
- func (x *ParseRequestInput) String() string
- type ParseRequestOutput
- func (*ParseRequestOutput) Descriptor() ([]byte, []int)deprecated
- func (x *ParseRequestOutput) GetBinance() *binance.SigningInput
- func (x *ParseRequestOutput) GetError() common.SigningError
- func (x *ParseRequestOutput) GetErrorMessage() string
- func (x *ParseRequestOutput) GetSigningInputOneof() isParseRequestOutput_SigningInputOneof
- func (x *ParseRequestOutput) GetSolana() *solana.SigningInput
- func (*ParseRequestOutput) ProtoMessage()
- func (x *ParseRequestOutput) ProtoReflect() protoreflect.Message
- func (x *ParseRequestOutput) Reset()
- func (x *ParseRequestOutput) String() string
- type ParseRequestOutput_Binance
- type ParseRequestOutput_Solana
- type Protocol
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Protocol_name = map[int32]string{ 0: "V2", } Protocol_value = map[string]int32{ "V2": 0, } )
Enum value maps for Protocol.
View Source
var ( Method_name = map[int32]string{ 0: "Unknown", 1: "CosmosSignAmino", 2: "SolanaSignTransaction", } Method_value = map[string]int32{ "Unknown": 0, "CosmosSignAmino": 1, "SolanaSignTransaction": 2, } )
Enum value maps for Method.
View Source
var File_WalletConnect_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method int32
WalletConnect request method.
func (Method) Descriptor ¶
func (Method) Descriptor() protoreflect.EnumDescriptor
func (Method) EnumDescriptor
deprecated
func (Method) Number ¶
func (x Method) Number() protoreflect.EnumNumber
func (Method) Type ¶
func (Method) Type() protoreflect.EnumType
type ParseRequestInput ¶
type ParseRequestInput struct {
// A protocol version.
Protocol Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=TW.WalletConnect.Proto.Protocol" json:"protocol,omitempty"`
// A signing method like "cosmos_signAmino" or "eth_signTransaction".
Method Method `protobuf:"varint,2,opt,name=method,proto3,enum=TW.WalletConnect.Proto.Method" json:"method,omitempty"`
// Transaction payload to sign.
// Basically, a JSON object.
Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
// contains filtered or unexported fields
}
func (*ParseRequestInput) Descriptor
deprecated
func (*ParseRequestInput) Descriptor() ([]byte, []int)
Deprecated: Use ParseRequestInput.ProtoReflect.Descriptor instead.
func (*ParseRequestInput) GetMethod ¶
func (x *ParseRequestInput) GetMethod() Method
func (*ParseRequestInput) GetPayload ¶
func (x *ParseRequestInput) GetPayload() string
func (*ParseRequestInput) GetProtocol ¶
func (x *ParseRequestInput) GetProtocol() Protocol
func (*ParseRequestInput) ProtoMessage ¶
func (*ParseRequestInput) ProtoMessage()
func (*ParseRequestInput) ProtoReflect ¶
func (x *ParseRequestInput) ProtoReflect() protoreflect.Message
func (*ParseRequestInput) Reset ¶
func (x *ParseRequestInput) Reset()
func (*ParseRequestInput) String ¶
func (x *ParseRequestInput) String() string
type ParseRequestOutput ¶
type ParseRequestOutput struct {
// OK (=0) or other codes in case of error
Error common.SigningError `protobuf:"varint,1,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
// error description in case of error
ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
// Prepared unsigned transaction input, on the source chain. Some fields must be completed, and it has to be signed.
//
// Types that are valid to be assigned to SigningInputOneof:
//
// *ParseRequestOutput_Binance
// *ParseRequestOutput_Solana
SigningInputOneof isParseRequestOutput_SigningInputOneof `protobuf_oneof:"signing_input_oneof"`
// contains filtered or unexported fields
}
func (*ParseRequestOutput) Descriptor
deprecated
func (*ParseRequestOutput) Descriptor() ([]byte, []int)
Deprecated: Use ParseRequestOutput.ProtoReflect.Descriptor instead.
func (*ParseRequestOutput) GetBinance ¶
func (x *ParseRequestOutput) GetBinance() *binance.SigningInput
func (*ParseRequestOutput) GetError ¶
func (x *ParseRequestOutput) GetError() common.SigningError
func (*ParseRequestOutput) GetErrorMessage ¶
func (x *ParseRequestOutput) GetErrorMessage() string
func (*ParseRequestOutput) GetSigningInputOneof ¶
func (x *ParseRequestOutput) GetSigningInputOneof() isParseRequestOutput_SigningInputOneof
func (*ParseRequestOutput) GetSolana ¶
func (x *ParseRequestOutput) GetSolana() *solana.SigningInput
func (*ParseRequestOutput) ProtoMessage ¶
func (*ParseRequestOutput) ProtoMessage()
func (*ParseRequestOutput) ProtoReflect ¶
func (x *ParseRequestOutput) ProtoReflect() protoreflect.Message
func (*ParseRequestOutput) Reset ¶
func (x *ParseRequestOutput) Reset()
func (*ParseRequestOutput) String ¶
func (x *ParseRequestOutput) String() string
type ParseRequestOutput_Binance ¶
type ParseRequestOutput_Binance struct {
Binance *binance.SigningInput `protobuf:"bytes,3,opt,name=binance,proto3,oneof"`
}
type ParseRequestOutput_Solana ¶
type ParseRequestOutput_Solana struct {
Solana *solana.SigningInput `protobuf:"bytes,4,opt,name=solana,proto3,oneof"`
}
type Protocol ¶
type Protocol int32
The transaction protocol may differ from version to version.
const (
Protocol_V2 Protocol = 0
)
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.