-
Notifications
You must be signed in to change notification settings - Fork 16
/
alias.go
68 lines (63 loc) · 1.91 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
package gosdk
import (
ammswap "github.com/okex/exchain-go-sdk/module/ammswap/types"
auth "github.com/okex/exchain-go-sdk/module/auth/types"
dex "github.com/okex/exchain-go-sdk/module/dex/types"
evm "github.com/okex/exchain-go-sdk/module/evm/types"
governance "github.com/okex/exchain-go-sdk/module/governance/types"
order "github.com/okex/exchain-go-sdk/module/order/types"
staking "github.com/okex/exchain-go-sdk/module/staking/types"
tendermint "github.com/okex/exchain-go-sdk/module/tendermint/types"
token "github.com/okex/exchain-go-sdk/module/token/types"
"github.com/okex/exchain-go-sdk/types"
sdk "github.com/okex/exchain/libs/cosmos-sdk/types"
farm "github.com/okex/exchain/x/farm/types"
)
// const
const (
BroadcastSync = types.BroadcastSync
BroadcastAsync = types.BroadcastAsync
BroadcastBlock = types.BroadcastBlock
// vote for the proposal
VoteYes = "yes"
VoteAbstain = "abstain"
VoteNo = "no"
VoteNoWithVeto = "no_with_veto"
)
var (
// NewClientConfig gives an easy way for the callers to set client config
NewClientConfig = types.NewClientConfig
)
// nolint
type (
TxResponse = sdk.TxResponse
// ammswap
SwapTokenPair = ammswap.SwapTokenPair
// auth
Account = auth.Account
// staking
Validator = staking.Validator
DelegatorResponse = staking.DelegatorResponse
// token
TokenResp = token.TokenResp
// dex
TokenPair = dex.TokenPair
// order
BookRes = order.BookRes
OrderDetail = order.OrderDetail
// tendermint
Block = tendermint.Block
BlockResults = tendermint.ResultBlockResults
ResultCommit = tendermint.ResultCommit
ResultValidators = tendermint.ResultValidators
ResultTx = tendermint.ResultTx
ResultTxSearch = tendermint.ResultTxSearch
// governance
Proposal = governance.Proposal
// farm
FarmPool = farm.FarmPool
LockInfo = farm.LockInfo
// evm
QueryResCode = evm.QueryResCode
QueryResStorage = evm.QueryResStorage
)