forked from okx/exchain-go-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalias.go
75 lines (70 loc) · 2.15 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
package gosdk
import (
sdk "github.com/cosmos/cosmos-sdk/types"
ammswap "github.com/okex/okexchain-go-sdk/module/ammswap/types"
auth "github.com/okex/okexchain-go-sdk/module/auth/types"
backend "github.com/okex/okexchain-go-sdk/module/backend/types"
dex "github.com/okex/okexchain-go-sdk/module/dex/types"
evm "github.com/okex/okexchain-go-sdk/module/evm/types"
governance "github.com/okex/okexchain-go-sdk/module/governance/types"
order "github.com/okex/okexchain-go-sdk/module/order/types"
staking "github.com/okex/okexchain-go-sdk/module/staking/types"
tendermint "github.com/okex/okexchain-go-sdk/module/tendermint/types"
token "github.com/okex/okexchain-go-sdk/module/token/types"
"github.com/okex/okexchain-go-sdk/types"
farm "github.com/okex/okexchain/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
// backend
Ticker = backend.Ticker
MatchResult = backend.MatchResult
Order = backend.Order
Deal = backend.Deal
Transaction = backend.Transaction
// 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
)