Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicCheckError ¶
type BasicCheckError struct {
Reason string
}
func (BasicCheckError) Error ¶
func (e BasicCheckError) Error() string
type BridgeType ¶
type BridgeType string
const ( PACTUS_POLYGON BridgeType = "PACTUS_POLYGON" //nolint POLYGON_PACTUS BridgeType = "POLYGON_PACTUS" //nolint BSC_PACTUS BridgeType = "BSC_PACTUS" //nolint PACTUS_BSC BridgeType = "PACTUS_BSC" //nolint BASE_PACTUS BridgeType = "BASE_PACTUS" //nolint PACTUS_BASE BridgeType = "PACTUS_BASE" //nolint )
! NEW EVM.
type Order ¶
type Order struct {
// * unique ID on Wrapto system.
ID string `bson:"id"`
// * transaction or contract call that user made on source network.
TxHash string `bson:"tx_hash"`
// * address of receiver account on destination network.
Receiver string `bson:"receiver"`
// * address of sender on source network (account that made bridge transaction).
Sender string `bson:"sender"`
// * Amount of PAC to be bridged, **including fee**.
Amount amount.Amount `bson:"amount"`
// * amount of PAC to be bridged, **including fee**.
CreatedAt time.Time `bson:"created_at"`
// * status of order on Wrapto system.
Status Status `bson:"status"`
// * once status got COMPLETE, this will be filled with destination network transaction hash made by wrapto.
DestNetworkTxHash string `bson:"destination_tx_hash"`
// * will be filled if order failed.
Reason string `bson:"reason"`
// * type of bridge.
BridgeType BridgeType `bson:"bridge_type"`
}
func (*Order) AmountAfterFee ¶ added in v1.0.3
func (*Order) OriginalAmount ¶
Click to show internal directories.
Click to hide internal directories.