sdk

package module
v1.2.89 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 14 Imported by: 0

README ¶

Router Protocol Golang SDK 🌟

This repository is a go sdk. It consists of all the router chain types and common utilities

📚 Getting Started

Clone the repository locally and install needed dependencies.

$ git clone https://github.com/router-protocol/sdk-go
$ cd sdk-go
$ go install ./...

Publishing Tagged Release

$ git add .
$ git commit -m "bugfix"
$ git tag -a v1.1.1
$ git push origin master --tags

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func WrapTxToEIP712 ¶

func WrapTxToEIP712(
	cdc codectypes.AnyUnpacker,
	chainID uint64,
	msg cosmtypes.Msg,
	data []byte,
	feeDelegation *FeeDelegationOptions,
) (typeddata.TypedData, error)

WrapTxToEIP712 is an ultimate method that wraps Amino-encoded Cosmos Tx JSON data into an EIP712-compatible request. All messages must be of the same type.

Types ¶

type FeeDelegationOptions ¶

type FeeDelegationOptions struct {
	FeePayer cosmtypes.AccAddress
}

Jump to

Keyboard shortcuts

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