Documentation ¶
Index ¶
- Constants
- func OpenSQLite3ReadOnlyStore(path string) (*store.SQLite3Store, error)
- func OpenSQLite3Store(path string) (*store.SQLite3Store, error)
- type Configuration
- type Deposit
- type Node
- func (node *Node) Boot(ctx context.Context)
- func (node *Node) CreateHolderDeposit(ctx context.Context, req *common.Request) ([]*mtg.Transaction, string)
- func (node *Node) GetSigners() []string
- func (node *Node) Index() int
- func (node *Node) Migrate(ctx context.Context) error
- func (node *Node) ProcessOutput(ctx context.Context, out *mtg.Action) ([]*mtg.Transaction, string)
- func (node *Node) Terminate(ctx context.Context) ([]*mtg.Transaction, string)
Constants ¶
View Source
const ( SafeSignatureTimeout = 10 * time.Minute SafeKeyBackupMaturity = 24 * time.Hour SafeStateApproved = common.RequestStateDone SafeStatePending = common.RequestStatePending SafeStateClosed = common.RequestStateFailed )
View Source
const FinalRequestHash = "373a88f0ac8f2330cc8b92be3b54c2f2fe388fa13aa5591bd11f298547dc89ac"
View Source
const (
SignerKeygenMaximum = 128
)
Variables ¶
This section is empty.
Functions ¶
func OpenSQLite3ReadOnlyStore ¶
func OpenSQLite3ReadOnlyStore(path string) (*store.SQLite3Store, error)
func OpenSQLite3Store ¶
func OpenSQLite3Store(path string) (*store.SQLite3Store, error)
Types ¶
type Configuration ¶
type Configuration struct { AppId string `toml:"app-id"` SignerAppId string `toml:"signer-app-id"` StoreDir string `toml:"store-dir"` MonitorConversaionId string `toml:"monitor-conversation-id"` SignerPublicKey string `toml:"signer-public-key"` AssetId string `toml:"asset-id"` ObserverAssetId string `toml:"observer-asset-id"` ObserverPublicKey string `toml:"observer-public-key"` ObserverUserId string `toml:"observer-user-id"` MixinMessengerAPI string `toml:"mixin-messenger-api"` MixinRPC string `toml:"mixin-rpc"` BitcoinRPC string `toml:"bitcoin-rpc"` LitecoinRPC string `toml:"litecoin-rpc"` EthereumRPC string `toml:"ethereum-rpc"` PolygonRPC string `toml:"polygon-rpc"` PolygonFactoryAddress string `toml:"polygon-factory-address"` PolygonObserverDepositEntry string `toml:"polygon-observer-deposit-entry"` PolygonKeeperDepositEntry string `toml:"polygon-keeper-deposit-entry"` MTG *mtg.Configuration `toml:"mtg"` }
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func NewNode ¶
func NewNode(store *store.SQLite3Store, group *mtg.Group, conf *Configuration, signer *mtg.Configuration, mixin *mixin.Client) *Node
func (*Node) CreateHolderDeposit ¶
func (*Node) GetSigners ¶ added in v0.18.3
func (*Node) ProcessOutput ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.