Directories ¶
Path | Synopsis |
---|---|
Package admin provides methods to sign message and to verify signed message
|
Package admin provides methods to sign message and to verify signed message |
cmd
|
|
swaprouter
Command swaprouter is main program to start swap router or its sub commands.
|
Command swaprouter is main program to start swap router or its sub commands. |
utils
Package utils provides common sub commands and command flags.
|
Package utils provides common sub commands and command flags. |
Package common contains various helper functions.
|
Package common contains various helper functions. |
hexutil
Package hexutil implements hex encoding with 0x prefix.
|
Package hexutil implements hex encoding with 0x prefix. |
math
Package math provides integer math utilities.
|
Package math provides integer math utilities. |
internal
|
|
Package leveldb is a wrapper of goleveldb.
|
Package leveldb is a wrapper of goleveldb. |
Package log is a wrapper of logrus.
|
Package log is a wrapper of logrus. |
Package mongodb is a wrapper of mongo-go-driver that defines the collections and CRUD apis on them.
|
Package mongodb is a wrapper of mongo-go-driver that defines the collections and CRUD apis on them. |
Package mpc is a client of mpc server, doing the sign and accept tasks.
|
Package mpc is a client of mpc server, doing the sign and accept tasks. |
Package params provides common version info and config items.
|
Package params provides common version info and config items. |
Package router inits bridges and loads onchain configs.
|
Package router inits bridges and loads onchain configs. |
bridge
Package bridge init router bridge and load / reload configs.
|
Package bridge init router bridge and load / reload configs. |
rpc
|
|
client
Package client provides methods to do http GET / POST request.
|
Package client provides methods to do http GET / POST request. |
restapi
Package restapi provides RESTful RPC service.
|
Package restapi provides RESTful RPC service. |
rpcapi
Package rpcapi provides JSON RPC service.
|
Package rpcapi provides JSON RPC service. |
server
Package server provides JSON/RESTful RPC service.
|
Package server provides JSON/RESTful RPC service. |
Package tokens defines the common interfaces and supported bridges in sub directories.
|
Package tokens defines the common interfaces and supported bridges in sub directories. |
eth
Package eth implements the bridge interfaces to support routering.
|
Package eth implements the bridge interfaces to support routering. |
eth/abicoder
Package abicoder is simple tool to pack datas like solidity abi.
|
Package abicoder is simple tool to pack datas like solidity abi. |
crypto
Package crypto provides facilities for ecdsa encryption and decryption.
|
Package crypto provides facilities for ecdsa encryption and decryption. |
keystore
Package keystore encrypt private key and save on disk uses JSON encoding.
|
Package keystore encrypt private key and save on disk uses JSON encoding. |
rlp
Package rlp implements the RLP serialization format.
|
Package rlp implements the RLP serialization format. |
Package types defines the eth-like core types (Transaction, etc) and RPC result types.
|
Package types defines the eth-like core types (Transaction, etc) and RPC result types. |
Package worker includes all the tasks and jobs to process router swaps.
|
Package worker includes all the tasks and jobs to process router swaps. |
Click to show internal directories.
Click to hide internal directories.