-
Notifications
You must be signed in to change notification settings - Fork 1
/
alias.go
145 lines (139 loc) · 7.09 KB
/
alias.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
package bep3
import (
"github.com/e-money/bep3/module/keeper"
"github.com/e-money/bep3/module/types"
)
// nolint
// autogenerated code using github.com/rigelrozanski/multitool
// aliases generated for the following subdirectories:
// ALIASGEN: github.com/e-money/bep3/module/keeper
// ALIASGEN: github.com/e-money/bep3/module/types
const (
EventTypeCreateAtomicSwap = types.EventTypeCreateAtomicSwap
EventTypeClaimAtomicSwap = types.EventTypeClaimAtomicSwap
EventTypeRefundAtomicSwap = types.EventTypeRefundAtomicSwap
EventTypeSwapsExpired = types.EventTypeSwapsExpired
AttributeValueCategory = types.AttributeValueCategory
AttributeKeySender = types.AttributeKeySender
AttributeKeyRecipient = types.AttributeKeyRecipient
AttributeKeyAtomicSwapID = types.AttributeKeyAtomicSwapID
AttributeKeyRandomNumberHash = types.AttributeKeyRandomNumberHash
AttributeKeyTimestamp = types.AttributeKeyTimestamp
AttributeKeySenderOtherChain = types.AttributeKeySenderOtherChain
AttributeKeyExpireTimestamp = types.AttributeKeyExpireTimestamp
AttributeKeyAmount = types.AttributeKeyAmount
AttributeKeyDirection = types.AttributeKeyDirection
AttributeKeyClaimSender = types.AttributeKeyClaimSender
AttributeKeyRandomNumber = types.AttributeKeyRandomNumber
AttributeKeyRefundSender = types.AttributeKeyRefundSender
AttributeKeyAtomicSwapIDs = types.AttributeKeyAtomicSwapIDs
AttributeExpirationBlock = types.AttributeExpirationBlock
ModuleName = types.ModuleName
StoreKey = types.StoreKey
RouterKey = types.RouterKey
QuerierRoute = types.QuerierRoute
DefaultParamspace = types.DefaultParamspace
DefaultLongtermStorageDuration = types.DefaultLongtermStorageDuration
CreateAtomicSwap = types.CreateAtomicSwap
ClaimAtomicSwap = types.ClaimAtomicSwap
RefundAtomicSwap = types.RefundAtomicSwap
CalcSwapID = types.CalcSwapID
Int64Size = types.Int64Size
RandomNumberHashLength = types.RandomNumberHashLength
RandomNumberLength = types.RandomNumberLength
AddrByteCount = types.AddrByteCount
MaxOtherChainAddrLength = types.MaxOtherChainAddrLength
SwapIDLength = types.SwapIDLength
MaxExpectedIncomeLength = types.MaxExpectedIncomeLength
QueryGetAssetSupply = types.QueryGetAssetSupply
QueryGetAssetSupplies = types.QueryGetAssetSupplies
QueryGetAtomicSwap = types.QueryGetAtomicSwap
QueryGetAtomicSwaps = types.QueryGetAtomicSwaps
QueryGetParams = types.QueryGetParams
NULL = types.NULL
Open = types.Open
Completed = types.Completed
Expired = types.Expired
INVALID = types.INVALID
Incoming = types.Incoming
Outgoing = types.Outgoing
)
var (
// functions aliases
NewKeeper = keeper.NewKeeper
NewQuerier = keeper.NewQuerier
NewAssetSupply = types.NewAssetSupply
NewGenesisState = types.NewGenesisState
DefaultGenesisState = types.DefaultGenesisState
GenerateSecureRandomNumber = types.GenerateSecureRandomNumber
CalculateRandomHash = types.CalculateRandomHash
CalculateSwapID = types.CalculateSwapID
GetAtomicSwapByHeightKey = types.GetAtomicSwapByTimestampKey
NewMsgCreateAtomicSwap = types.NewMsgCreateAtomicSwap
NewMsgClaimAtomicSwap = types.NewMsgClaimAtomicSwap
NewMsgRefundAtomicSwap = types.NewMsgRefundAtomicSwap
NewParams = types.NewParams
DefaultParams = types.DefaultParams
NewAssetParam = types.NewAssetParam
ParamKeyTable = types.ParamKeyTable
NewQueryAssetSupply = types.NewQueryAssetSupply
NewQueryAssetSupplies = types.NewQueryAssetSupplies
NewQueryAtomicSwapByID = types.NewQueryAtomicSwapByID
NewQueryAtomicSwaps = types.NewQueryAtomicSwaps
NewAtomicSwap = types.NewAtomicSwap
NewSwapStatusFromString = types.NewSwapStatusFromString
NewSwapDirectionFromString = types.NewSwapDirectionFromString
NewAugmentedAtomicSwap = types.NewAugmentedAtomicSwap
// variable aliases
ModuleCdc = types.ModuleCdc
ErrInvalidTimestamp = types.ErrInvalidTimestamp
ErrInvalidTimeSpan = types.ErrInvalidTimeSpan
ErrInsufficientAmount = types.ErrInsufficientAmount
ErrAssetNotSupported = types.ErrAssetNotSupported
ErrAssetNotActive = types.ErrAssetNotActive
ErrAssetSupplyNotFound = types.ErrAssetSupplyNotFound
ErrExceedsSupplyLimit = types.ErrExceedsSupplyLimit
ErrExceedsAvailableSupply = types.ErrExceedsAvailableSupply
ErrInvalidCurrentSupply = types.ErrInvalidCurrentSupply
ErrInvalidIncomingSupply = types.ErrInvalidIncomingSupply
ErrInvalidOutgoingSupply = types.ErrInvalidOutgoingSupply
ErrInvalidClaimSecret = types.ErrInvalidClaimSecret
ErrAtomicSwapAlreadyExists = types.ErrAtomicSwapAlreadyExists
ErrAtomicSwapNotFound = types.ErrAtomicSwapNotFound
ErrSwapNotRefundable = types.ErrSwapNotRefundable
ErrSwapNotClaimable = types.ErrSwapNotClaimable
ErrInvalidAmount = types.ErrInvalidAmount
ErrInvalidSwapAccount = types.ErrInvalidSwapAccount
AtomicSwapKeyPrefix = types.AtomicSwapKeyPrefix
AtomicSwapByBlockPrefix = types.AtomicSwapByBlockPrefix
AtomicSwapLongtermStoragePrefix = types.AtomicSwapLongtermStoragePrefix
AtomicSwapCoinsAccAddr = types.AtomicSwapCoinsAccAddr
KeyAssetParams = types.KeyAssetParams
DefaultPreviousBlockTime = types.DefaultPreviousBlockTime
DefaultSwapBlockTimestamp = types.DefaultSwapBlockTimestamp
DefaultSwapTimeSpanMinutes = types.DefaultSwapTimeSpanMinutes
ModulePermissionsUpgradeTime = types.ModulePermissionsUpgradeTime
)
type (
Keeper = keeper.Keeper
AssetSupply = types.AssetSupply
AssetSupplies = types.AssetSupplies
GenesisState = types.GenesisState
MsgCreateAtomicSwap = types.MsgCreateAtomicSwap
MsgClaimAtomicSwap = types.MsgClaimAtomicSwap
MsgRefundAtomicSwap = types.MsgRefundAtomicSwap
Params = types.Params
AssetParam = types.AssetParam
AssetParams = types.AssetParams
QueryAssetSupply = types.QueryAssetSupply
QueryAssetSupplies = types.QueryAssetSupplies
QueryAtomicSwapByID = types.QueryAtomicSwapByID
QueryAtomicSwaps = types.QueryAtomicSwaps
AtomicSwap = types.AtomicSwap
AtomicSwaps = types.AtomicSwaps
SwapStatus = types.SwapStatus
SwapDirection = types.SwapDirection
SupplyLimit = types.SupplyLimit
AugmentedAtomicSwap = types.AugmentedAtomicSwap
AugmentedAtomicSwaps = types.AugmentedAtomicSwaps
)