Discover Packages
github.com/rss3-network/node
internal
engine
worker
decentralized
contract
linear
package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Nov 21, 2024
License: MIT
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewWorker returns a new LiNEAR worker.
type Action struct {
PoolID int64 `json:"pool_id"`
TokenIn string `json:"token_in"`
TokenOut string `json:"token_out"`
AmountIn string `json:"amount_in,omitempty"`
MinAmountOut string `json:"min_amount_out"`
}
type Data struct {
OldOwnerID string `json:"old_owner_id"`
NewOwnerID string `json:"new_owner_id"`
Amount string `json:"amount"`
}
type Event struct {
Standard string `json:"standard"`
Version string `json:"version"`
Event string `json:"event"`
Data []Data `json:"data"`
TokenAddress string `json:"token_address"`
}
type FunctionCallArgs struct {
ReceiverID string `json:"receiver_id"`
Amount string `json:"amount"`
Msg string `json:"msg"`
}
type Msg struct {
Force int64 `json:"force"`
Actions []Action `json:"actions"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.