walletconnect

package
v0.0.1-gowrapper-dev Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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.

const (
	Method_Unknown Method = 0
	// cosmos_signAmino
	Method_CosmosSignAmino Method = 1
	// solana_signTransaction
	Method_SolanaSignTransaction Method = 2
)

func (Method) Descriptor

func (Method) Descriptor() protoreflect.EnumDescriptor

func (Method) Enum

func (x Method) Enum() *Method

func (Method) EnumDescriptor deprecated

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

Deprecated: Use Method.Descriptor instead.

func (Method) Number

func (x Method) Number() protoreflect.EnumNumber

func (Method) String

func (x Method) String() string

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) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

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

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

Jump to

Keyboard shortcuts

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