Directories ¶
Path | Synopsis |
---|---|
Package bootnode is responsible for assembling, running and cleanly shutting down a swap bootnode.
|
Package bootnode is responsible for assembling, running and cleanly shutting down a swap bootnode. |
Package cliutil provides utility functions intended for sharing by the main packages of multiple executables.
|
Package cliutil provides utility functions intended for sharing by the main packages of multiple executables. |
cmd
|
|
bootnode
Package main provides the entrypoint of the bootnode executable, a node that is only used to bootstrap the p2p network and does not run any swap services.
|
Package main provides the entrypoint of the bootnode executable, a node that is only used to bootstrap the p2p network and does not run any swap services. |
swapcli
Package main provides the entrypoint of swapcli, an executable for interacting with a local swapd instance from the command line.
|
Package main provides the entrypoint of swapcli, an executable for interacting with a local swapd instance from the command line. |
swapd
Package main provides the entrypoint of the swapd executable, a daemon that manages atomic swaps between monero and ethereum assets.
|
Package main provides the entrypoint of the swapd executable, a daemon that manages atomic swaps between monero and ethereum assets. |
Package coins provides types, conversions and exchange calculations for dealing with cryptocurrency coin and ERC20 token representations.
|
Package coins provides types, conversions and exchange calculations for dealing with cryptocurrency coin and ERC20 token representations. |
Package common is for miscellaneous constants, types and interfaces used by many packages.
|
Package common is for miscellaneous constants, types and interfaces used by many packages. |
rpctypes
Package rpctypes provides the serialized types for queries and responses shared by swapd's JSON-RPC server and client-side libraries.
|
Package rpctypes provides the serialized types for queries and responses shared by swapd's JSON-RPC server and client-side libraries. |
types
Package types is for types that are shared by multiple packages
|
Package types is for types that are shared by multiple packages |
Package crypto is for cryptographic code used by both Monero and Ethereum.
|
Package crypto is for cryptographic code used by both Monero and Ethereum. |
monero
Package mcrypto is for types and libraries that deal with Monero keys, addresses and signing.
|
Package mcrypto is for types and libraries that deal with Monero keys, addresses and signing. |
secp256k1
Package secp256k1 contains methods and types for working with Ethereum and possibly other cryptocurrency keys that use the secp256k1 elliptic curve.
|
Package secp256k1 contains methods and types for working with Ethereum and possibly other cryptocurrency keys that use the secp256k1 elliptic curve. |
Package daemon is responsible for assembling, running and cleanly shutting down the swap daemon (swapd) and its numerous subcomponents.
|
Package daemon is responsible for assembling, running and cleanly shutting down the swap daemon (swapd) and its numerous subcomponents. |
Package db implements the APIs for interacting with our disk persisted key-value store.
|
Package db implements the APIs for interacting with our disk persisted key-value store. |
Package dleq provides a sub-api built on top of the go-dleq package for our atomic swaps.
|
Package dleq provides a sub-api built on top of the go-dleq package for our atomic swaps. |
Package contracts is for go bindings generated from Solidity contracts as well as some utility functions for working with the contracts.
|
Package contracts is for go bindings generated from Solidity contracts as well as some utility functions for working with the contracts. |
block
Package block contains ethereum helper methods that center around blocks, like waiting for a certain block timestamp, waiting for a transaction to be mined in a block, and extracting an error for a transaction from the block that mined it.
|
Package block contains ethereum helper methods that center around blocks, like waiting for a certain block timestamp, waiting for a transaction to be mined in a block, and extracting an error for a transaction from the block that mined it. |
extethclient
Package extethclient provides libraries for interacting with an ethereum node using a specific private key.
|
Package extethclient provides libraries for interacting with an ethereum node using a specific private key. |
watcher
Package watcher provides tools to track events emitted from ethereum contracts.
|
Package watcher provides tools to track events emitted from ethereum contracts. |
Package monero provides client libraries for working with wallet files and interacting with a monero node.
|
Package monero provides client libraries for working with wallet files and interacting with a monero node. |
Package net adds swap-specific functionality to go-p2p-net/Host, in particular the swap messages for querying and initiation.
|
Package net adds swap-specific functionality to go-p2p-net/Host, in particular the swap messages for querying and initiation. |
message
Package message provides the types for messages that are sent between swapd instances.
|
Package message provides the types for messages that are sent between swapd instances. |
Package pricefeed implements routines to retrieve on-chain price feeds from chainlink's decentralized oracle network.
|
Package pricefeed implements routines to retrieve on-chain price feeds from chainlink's decentralized oracle network. |
Package protocol has functions that are used by both the maker and taker during execution of the swap.
|
Package protocol has functions that are used by both the maker and taker during execution of the swap. |
backend
Package backend provides the portion of top-level swapd instance management that is shared by both the maker and the taker.
|
Package backend provides the portion of top-level swapd instance management that is shared by both the maker and the taker. |
swap
Package swap is a generated GoMock package.
|
Package swap is a generated GoMock package. |
txsender
Package txsender provides a common Sender interface for swapd instances.
|
Package txsender provides a common Sender interface for swapd instances. |
xmrmaker
Package xmrmaker manages the swap state of individual swaps where the local swapd instance is offering Monero and accepting Ethereum assets in return.
|
Package xmrmaker manages the swap state of individual swaps where the local swapd instance is offering Monero and accepting Ethereum assets in return. |
xmrmaker/offers
Package offers is a generated GoMock package.
|
Package offers is a generated GoMock package. |
xmrtaker
Package xmrtaker manages the swap state of individual swaps where the local swapd instance is offering Ethereum assets and accepting Monero in return.
|
Package xmrtaker manages the swap state of individual swaps where the local swapd instance is offering Ethereum assets and accepting Monero in return. |
Package relayer provides libraries for creating and validating relay requests and responses.
|
Package relayer provides libraries for creating and validating relay requests and responses. |
Package rpc provides the HTTP server for incoming JSON-RPC and websocket requests to swapd from the local host.
|
Package rpc provides the HTTP server for incoming JSON-RPC and websocket requests to swapd from the local host. |
Package rpcclient provides client libraries for interacting with a local swapd instance using the JSON-RPC remote procedure call protocol and websockets.
|
Package rpcclient provides client libraries for interacting with a local swapd instance using the JSON-RPC remote procedure call protocol and websockets. |
Click to show internal directories.
Click to hide internal directories.