Documentation ¶
Index ¶
- Constants
- Variables
- func CreateCreatePairRuleFinder(chainId string) (eventlog.LogFinder, error)
- func CreatePairAllRulesFinder(pairs map[string]bool) (eventlog.LogFinder, error)
- func CreatePairInitialProvideRuleFinder(pairs map[string]bool) (eventlog.LogFinder, error)
- func CreatePairProviderRuleFinder(pairs map[string]bool) (eventlog.LogFinder, error)
- func CreatePairSwapRuleFinder(pairs map[string]bool) (eventlog.LogFinder, error)
- func CreatePairWithdrawRuleFinder(pairs map[string]bool) (eventlog.LogFinder, error)
- func CreateTransferRuleFinder() (eventlog.LogFinder, error)
- func CreateWasmCommonTransferRuleFinder() (eventlog.LogFinder, error)
- type PairAction
Constants ¶
View Source
const ( MainnetPrefix = "fetchhub" TestnetPrefix = "dorado" )
View Source
const ( MainnetV2Height = 11543129 TestnetV2Height = 11543129 )
View Source
const ( SwapAction = PairAction("swap") ProvideAction = PairAction("provide_liquidity") WithdrawAction = PairAction("withdraw_liquidity") )
View Source
const ( WasmTransferAction = "transfer" WasmTransferFromAction = "transfer_from" )
View Source
const ( CreatePairMatchedLen = FactoryLpAddrIdx + 1 PairCommonMatchedLen = PairActionIdx + 1 PairSwapMatchedLen = PairSwapSpreadAmountIdx + 1 PairProvideMatchedLen = PairProvideShareIdx + 1 PairV2ProvideMatchedLen = PairV2ProvideShareIdx + 1 PairWithdrawMatchedLen = PairWithdrawWithdrawShareIdx + 1 PairInitialProvideMatchedLen = PairInitialProvideToIdx + 1 WasmCommonTransferMatchedLen = WasmCommonTransferActionIdx + 1 WasmV1TransferMatchedLen = WasmTransferToIdx + 1 WasmV2TransferMatchedLen = WasmTransferFromToIdx + 1 TransferMatchedLen = TransferAmountIdx + 1 )
View Source
const ( FactoryAddrIdx = iota FactoryActionIdx FactoryPairIdx FactoryPairAddrIdx FactoryLpAddrIdx )
View Source
const ( PairAddrIdx = iota PairActionIdx )
View Source
const ( PairSwapAskAssetIdx = iota + PairCommonMatchedLen PairSwapCommissionAmountIdx PairSwapOfferAmountIdx PairSwapOfferAssetIdx PairSwapReceiverIdx PairSwapReturnAmountIdx PairSwapSenderIdx PairSwapSpreadAmountIdx )
View Source
const ( PairProvideAssetsIdx = iota + PairCommonMatchedLen PairProvideReceiverIdx PairProvideSenderIdx )
View Source
const ( PairV2ProvideAssetsIdx = iota + PairCommonMatchedLen PairV2ProvideReceiverIdx PairV2RefundAssetsIdx PairV2ProvideSenderIdx )
include returned assets
View Source
const ( PairWithdrawRefundAssetsIdx = iota + PairCommonMatchedLen PairWithdrawSenderIdx )
View Source
const ( PairInitialProvideAddrIdx = iota PairInitialProvideActionIdx PairInitialProvideAmountIdx PairInitialProvideToIdx )
View Source
const ( WasmCommonTransferCw20AddrIdx = iota WasmCommonTransferActionIdx )
View Source
const ( WasmTransferAmountIdx = iota + WasmCommonTransferMatchedLen WasmTransferFromIdx WasmTransferToIdx )
View Source
const ( WasmTransferFromAmountIdx = iota + WasmCommonTransferMatchedLen WasmTransferFromByIdx WasmTransferFromFromIdx WasmTransferFromToIdx )
View Source
const ( TransferRecipientIdx = iota TransferSenderIdx TransferAmountIdx )
Variables ¶
View Source
var FactoryAddress = map[string]string{
"fetchhub": "fetch1slz6c85kxp4ek5ufmcakfhnscv9r2snlemxgwz6cjhklgh7v2hms8rgt5v",
"dorado": "fetch1kmag3937lrl6dtsv29mlfsedzngl9egv5c3apnr468q50gu04zrqea398u",
}
Functions ¶
func CreateTransferRuleFinder ¶
Track transfer from user to Pair
func CreateWasmCommonTransferRuleFinder ¶
Track cw20 transfer
Types ¶
type PairAction ¶
type PairAction string
Click to show internal directories.
Click to hide internal directories.