@injectivelabs/sdk-ts 1.20.15 → 1.20.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{AbacusGrpcApi-xrQAr-fH.cjs → AbacusGrpcApi-Dwlpk6jY.cjs} +2 -2
- package/dist/cjs/{BaseGrpcConsumer-CgIbwIvJ.d.cts → BaseGrpcConsumer-CUdc9vEY.d.cts} +1 -1
- package/dist/cjs/{BaseGrpcConsumer-DHYpiqn5.cjs → BaseGrpcConsumer-zA9DIfEw.cjs} +24 -24
- package/dist/cjs/{BaseIndexerGrpcConsumer-GHyeUHdH.cjs → BaseIndexerGrpcConsumer-CQBZ05BC.cjs} +1 -1
- package/dist/cjs/{ChainGrpcExchangeApi-MspF9deW.cjs → ChainGrpcExchangeApi-vxOV2B57.cjs} +4 -4
- package/dist/cjs/{ChainRestTendermintApi-TZoqfN-E.cjs → ChainRestTendermintApi-Sni05dAJ.cjs} +7 -6
- package/dist/cjs/{DirectEthSecp256k1Wallet-D_rQWJR4.cjs → DirectEthSecp256k1Wallet-CbsATe2T.cjs} +14 -14
- package/dist/cjs/{ExecArgNeptuneWithdraw-ChJ7QUin.cjs → ExecArgNeptuneWithdraw-Sqk_zPQx.cjs} +7 -6
- package/dist/cjs/{IndexerGrpcWeb3GwApi-Cj9gotHt.cjs → IndexerGrpcWeb3GwApi-KVLJE-jW.cjs} +11 -10
- package/dist/cjs/{MsgBase-CAiwUyBz.cjs → MsgBase-BJmf0IHm.cjs} +1 -1
- package/dist/cjs/{MsgSetDenomMetadata-BDNtlSxx.cjs → MsgSetDenomMetadata-BQbzOfkE.cjs} +33 -31
- package/dist/cjs/{OLPGrpcApi-BqcMEdma.cjs → OLPGrpcApi-BNAfesZy.cjs} +2 -2
- package/dist/cjs/{QueryTradingStrategyContractTotalStrategies-CbfuOlxa.cjs → QueryTradingStrategyContractTotalStrategies-i7GNf-2z.cjs} +29 -29
- package/dist/cjs/{StreamManagerV2-Bo7m_nUZ.cjs → StreamManagerV2-qxdppofP.cjs} +72 -71
- package/dist/cjs/{TcAbacusGrpcApi-7a0vFnWK.cjs → TcAbacusGrpcApi-DRKR_enO.cjs} +2 -2
- package/dist/cjs/{accounts-gu3aR3dJ.cjs → accounts-pXwUOxWb.cjs} +38 -35
- package/dist/cjs/address-light-B5-DYwES.d.cts +14 -0
- package/dist/cjs/address-light-C_a6b8yF.cjs +114 -0
- package/dist/cjs/{chain-lo3Cyc0M.cjs → chain-DHppVc1K.cjs} +36 -35
- package/dist/cjs/client/abacus.cjs +6 -5
- package/dist/cjs/client/abacus.d.cts +5 -4
- package/dist/cjs/client/chain.cjs +14 -9
- package/dist/cjs/client/chain.d.cts +14 -9
- package/dist/cjs/client/indexer.cjs +15 -10
- package/dist/cjs/client/indexer.d.cts +14 -9
- package/dist/cjs/client/olp.cjs +7 -6
- package/dist/cjs/client/olp.d.cts +5 -4
- package/dist/cjs/client/tcAbacus.cjs +6 -5
- package/dist/cjs/client/tcAbacus.d.cts +5 -4
- package/dist/cjs/client/wasm.cjs +17 -12
- package/dist/cjs/client/wasm.d.cts +4 -3
- package/dist/cjs/coins-DRrEtaSG.cjs +20 -0
- package/dist/cjs/coins-JbAREn6e.d.cts +7 -0
- package/dist/cjs/constants-DSzHAIp3.d.cts +10 -0
- package/dist/cjs/constants-tPGACRGC.cjs +53 -0
- package/dist/cjs/core/accounts.cjs +9 -5
- package/dist/cjs/core/accounts.d.cts +14 -9
- package/dist/cjs/core/modules.cjs +20 -15
- package/dist/cjs/core/modules.d.cts +14 -9
- package/dist/cjs/core/tx.cjs +17 -12
- package/dist/cjs/core/tx.d.cts +14 -9
- package/dist/cjs/cosmjs.cjs +18 -13
- package/dist/cjs/cosmjs.d.cts +2 -2
- package/dist/cjs/encoding-light-CrQ0cICT.d.cts +18 -0
- package/dist/cjs/encoding-light-D96nxVLW.cjs +176 -0
- package/dist/cjs/exports.cjs +18 -13
- package/dist/cjs/exports.d.cts +2 -2
- package/dist/cjs/{index-DfNpbUN6.d.cts → index-2SjhKIkh.d.cts} +1 -1
- package/dist/cjs/{index-BEK8esHW.d.cts → index-BEwaspW_.d.cts} +7 -188
- package/dist/{esm/index-DCxzFRMk.d.ts → cjs/index-BG-nzcNI.d.cts} +3 -146
- package/dist/cjs/{index-uJW9LUqV.d.cts → index-BOj_EXVL.d.cts} +1 -1
- package/dist/cjs/{index-D3pv75E_.d.cts → index-BaPRB8bU.d.cts} +1 -1
- package/dist/cjs/{index-Ckay0hId.d.cts → index-CtkDjIwH.d.cts} +2 -2
- package/dist/cjs/{index-DiXeIFAS.d.cts → index-D5xZvGoG.d.cts} +1 -1
- package/dist/{esm/index-Bw9qjGRX.d.ts → cjs/index-DmanIXY9.d.cts} +2 -1
- package/dist/cjs/index.cjs +74 -67
- package/dist/cjs/index.d.cts +15 -10
- package/dist/cjs/light-4nNsYXxr.d.cts +241 -0
- package/dist/cjs/light-CrajlUvd.cjs +298 -0
- package/dist/cjs/proto/cosmos-tx.d.cts +1 -1
- package/dist/cjs/{service-2B8kFWdK.cjs → service-nm5Ct4_w.cjs} +18 -18
- package/dist/cjs/service.cjs +11 -6
- package/dist/cjs/service.d.cts +4 -3
- package/dist/cjs/stream-CcqYpdwJ.cjs +20 -0
- package/dist/cjs/{tx-C2jfAA8Y.cjs → tx-BlFLQ52d.cjs} +14 -13
- package/dist/cjs/types/light.cjs +20 -0
- package/dist/cjs/types/light.d.cts +2 -0
- package/dist/cjs/types-BJpWW-Rx.cjs +37 -0
- package/dist/cjs/types.cjs +14 -13
- package/dist/cjs/types.d.cts +3 -2
- package/dist/cjs/utils/address.cjs +13 -0
- package/dist/cjs/utils/address.d.cts +2 -0
- package/dist/cjs/utils/constants.cjs +9 -0
- package/dist/cjs/utils/constants.d.cts +2 -0
- package/dist/cjs/utils/encoding.cjs +17 -0
- package/dist/cjs/utils/encoding.d.cts +2 -0
- package/dist/cjs/utils/light.cjs +39 -0
- package/dist/cjs/utils/light.d.cts +5 -0
- package/dist/cjs/{utils-DbzXsOHS.cjs → utils-CH1Ojxun.cjs} +132 -592
- package/dist/cjs/utils.cjs +40 -34
- package/dist/cjs/utils.d.cts +15 -10
- package/dist/esm/{AbacusGrpcApi-CtwUxhbH.js → AbacusGrpcApi-DVO7c0mB.js} +2 -2
- package/dist/esm/{BaseGrpcConsumer-C2_ejXG6.js → BaseGrpcConsumer-Ci8sUY5h.js} +3 -3
- package/dist/esm/{BaseGrpcConsumer-C8YhjVn6.d.ts → BaseGrpcConsumer-DnPFbzJi.d.ts} +1 -1
- package/dist/esm/{BaseIndexerGrpcConsumer-B7ubNh4y.js → BaseIndexerGrpcConsumer-MGB306RP.js} +1 -1
- package/dist/esm/{ChainGrpcExchangeApi-46tg3Hzg.js → ChainGrpcExchangeApi-S5nJzebX.js} +4 -4
- package/dist/esm/{ChainRestTendermintApi-J6BTcNft.js → ChainRestTendermintApi-D_FQwKrf.js} +5 -4
- package/dist/esm/{DirectEthSecp256k1Wallet-DOuSBBhp.js → DirectEthSecp256k1Wallet-Daky9CEn.js} +3 -3
- package/dist/esm/{ExecArgNeptuneWithdraw-DiiRJIyN.js → ExecArgNeptuneWithdraw-ljDnPI2p.js} +4 -3
- package/dist/esm/{IndexerGrpcWeb3GwApi-43sbzWOe.js → IndexerGrpcWeb3GwApi-BWuDmOjX.js} +4 -3
- package/dist/esm/{MsgBase-C7o5mYq2.js → MsgBase-CishJWMN.js} +1 -1
- package/dist/esm/{MsgSetDenomMetadata-k1Be2o9j.js → MsgSetDenomMetadata-B4Ke5u9_.js} +8 -6
- package/dist/esm/{OLPGrpcApi-DJHRAhPY.js → OLPGrpcApi-BSFkBk80.js} +2 -2
- package/dist/esm/{QueryTradingStrategyContractTotalStrategies-NvpGnD6O.js → QueryTradingStrategyContractTotalStrategies-Cfz9KGFD.js} +4 -4
- package/dist/esm/{StreamManagerV2-DiRDW-5W.js → StreamManagerV2-CLqrfNTn.js} +9 -8
- package/dist/esm/{TcAbacusGrpcApi-Dat50xET.js → TcAbacusGrpcApi-k3COziPh.js} +2 -2
- package/dist/esm/{accounts-Bu0DRjk4.js → accounts-3rypojw1.js} +6 -3
- package/dist/esm/address-light-BcZDS-ks.d.ts +14 -0
- package/dist/esm/address-light-C9skTx0P.js +48 -0
- package/dist/esm/{chain-DDGdMRsP.js → chain-DD4YqzP5.js} +6 -5
- package/dist/esm/client/abacus.d.ts +5 -4
- package/dist/esm/client/abacus.js +6 -5
- package/dist/esm/client/chain.d.ts +14 -9
- package/dist/esm/client/chain.js +14 -9
- package/dist/esm/client/indexer.d.ts +14 -9
- package/dist/esm/client/indexer.js +15 -10
- package/dist/esm/client/olp.d.ts +5 -4
- package/dist/esm/client/olp.js +7 -6
- package/dist/esm/client/tcAbacus.d.ts +5 -4
- package/dist/esm/client/tcAbacus.js +6 -5
- package/dist/esm/client/wasm.d.ts +4 -3
- package/dist/esm/client/wasm.js +17 -12
- package/dist/esm/coins-D4vONigS.js +14 -0
- package/dist/esm/coins-ceq0Id0M.d.ts +7 -0
- package/dist/esm/constants-BZ28P_pH.d.ts +10 -0
- package/dist/esm/constants-CCVyqUU9.js +11 -0
- package/dist/esm/core/accounts.d.ts +14 -9
- package/dist/esm/core/accounts.js +9 -5
- package/dist/esm/core/modules.d.ts +14 -9
- package/dist/esm/core/modules.js +20 -15
- package/dist/esm/core/tx.d.ts +14 -9
- package/dist/esm/core/tx.js +17 -12
- package/dist/esm/cosmjs.d.ts +2 -2
- package/dist/esm/cosmjs.js +18 -13
- package/dist/esm/encoding-light-18k0e_8v.d.ts +18 -0
- package/dist/esm/encoding-light-DHtTGSg1.js +86 -0
- package/dist/esm/exports.d.ts +2 -2
- package/dist/esm/exports.js +18 -13
- package/dist/{cjs/index-DpsYFbif.d.cts → esm/index-81riAHnR.d.ts} +2 -1
- package/dist/esm/{index-JlA-uSsc.d.ts → index-B73CV7nM.d.ts} +1 -1
- package/dist/{cjs/index-DYAz6OYS.d.cts → esm/index-BJJNBulw.d.ts} +3 -146
- package/dist/esm/{index-DA42BIjg.d.ts → index-CFTXl2dv.d.ts} +1 -1
- package/dist/esm/{index-BrfNx2yV.d.ts → index-D3kPbyYA.d.ts} +1 -1
- package/dist/esm/{index-CZhX_Ynf.d.ts → index-DcPKOj0m.d.ts} +2 -2
- package/dist/esm/{index-CTAobhk3.d.ts → index-DuNPINdp.d.ts} +7 -188
- package/dist/esm/{index-B0mpSZSK.d.ts → index-SZeXNgo8.d.ts} +1 -1
- package/dist/esm/index.d.ts +15 -10
- package/dist/esm/index.js +29 -24
- package/dist/esm/light-BflupdEX.js +190 -0
- package/dist/esm/light-Cr4m0DAA.d.ts +241 -0
- package/dist/esm/proto/cosmos-tx.d.ts +1 -1
- package/dist/esm/{service-Uo4J-lwR.js → service-BER-mZkG.js} +3 -3
- package/dist/esm/service.d.ts +4 -3
- package/dist/esm/service.js +11 -6
- package/dist/esm/stream-BqkNM_6g.js +14 -0
- package/dist/esm/{tx-Ajrd7cHg.js → tx-Pg714BW8.js} +7 -6
- package/dist/esm/types/light.d.ts +2 -0
- package/dist/esm/types/light.js +3 -0
- package/dist/esm/types-BAV0654v.js +24 -0
- package/dist/esm/types.d.ts +3 -2
- package/dist/esm/types.js +3 -2
- package/dist/esm/utils/address.d.ts +2 -0
- package/dist/esm/utils/address.js +3 -0
- package/dist/esm/utils/constants.d.ts +2 -0
- package/dist/esm/utils/constants.js +3 -0
- package/dist/esm/utils/encoding.d.ts +2 -0
- package/dist/esm/utils/encoding.js +3 -0
- package/dist/esm/utils/light.d.ts +5 -0
- package/dist/esm/utils/light.js +6 -0
- package/dist/esm/{utils-bfl-Zimr.js → utils-B3t50ZnB.js} +125 -393
- package/dist/esm/utils.d.ts +15 -10
- package/dist/esm/utils.js +7 -3
- package/package.json +105 -5
- package/dist/cjs/stream-CfBvG3Ln.cjs +0 -87
- package/dist/cjs/types-Cn54Lzf-.cjs +0 -161
- package/dist/esm/stream-Cdx47Nhx.js +0 -63
- package/dist/esm/types-DQ7rwavH.js +0 -100
- /package/dist/cjs/{BaseRestConsumer-uSzCOit7.cjs → BaseRestConsumer-BcHgNcNh.cjs} +0 -0
- /package/dist/cjs/{defineProperty-DAtJs5JQ.cjs → defineProperty-C3FP2y9Y.cjs} +0 -0
- /package/dist/cjs/{grpc-FG2z-ICE.cjs → grpc-3Z8ffFdZ.cjs} +0 -0
- /package/dist/cjs/{tx_pb-7h617od9.d.cts → tx_pb-BmZhAoWC.d.cts} +0 -0
- /package/dist/esm/{BaseRestConsumer-DMS02DwS.js → BaseRestConsumer-L3j9-i4T.js} +0 -0
- /package/dist/esm/{defineProperty-CmydwPCD.js → defineProperty-C0TI9N8m.js} +0 -0
- /package/dist/esm/{grpc-lYZqzL0k.js → grpc-aI_RLGoG.js} +0 -0
- /package/dist/esm/{tx_pb-Bb9pvoP6.d.ts → tx_pb-DhFh6sWY.d.ts} +0 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
//#region src/types/light.ts
|
|
2
|
+
const TradeExecutionType = {
|
|
3
|
+
Market: "market",
|
|
4
|
+
LimitFill: "limitFill",
|
|
5
|
+
LimitMatchRestingOrder: "limitMatchRestingOrder",
|
|
6
|
+
LimitMatchNewOrder: "limitMatchNewOrder"
|
|
7
|
+
};
|
|
8
|
+
const TradeExecutionSide = {
|
|
9
|
+
Maker: "maker",
|
|
10
|
+
Taker: "taker"
|
|
11
|
+
};
|
|
12
|
+
const TradeDirection = {
|
|
13
|
+
Buy: "buy",
|
|
14
|
+
Sell: "sell",
|
|
15
|
+
Long: "long",
|
|
16
|
+
Short: "short"
|
|
17
|
+
};
|
|
18
|
+
const OrderState = {
|
|
19
|
+
Unfilled: "unfilled",
|
|
20
|
+
Booked: "booked",
|
|
21
|
+
PartialFilled: "partial_filled",
|
|
22
|
+
PartiallyFilled: "partially_filled",
|
|
23
|
+
Filled: "filled",
|
|
24
|
+
Canceled: "canceled",
|
|
25
|
+
Triggered: "triggered"
|
|
26
|
+
};
|
|
27
|
+
const OrderSide = {
|
|
28
|
+
Unspecified: "unspecified",
|
|
29
|
+
Buy: "buy",
|
|
30
|
+
Sell: "sell",
|
|
31
|
+
StopBuy: "stop_buy",
|
|
32
|
+
StopSell: "stop_sell",
|
|
33
|
+
TakeBuy: "take_buy",
|
|
34
|
+
TakeSell: "take_sell",
|
|
35
|
+
BuyPO: "buy_po",
|
|
36
|
+
SellPO: "sell_po",
|
|
37
|
+
BuyAtomic: "buy_atomic",
|
|
38
|
+
SellAtomic: "sell_atomic",
|
|
39
|
+
Unrecognized: "unrecognized"
|
|
40
|
+
};
|
|
41
|
+
const GrpcOrderTypeMap = {
|
|
42
|
+
0: "UNSPECIFIED",
|
|
43
|
+
1: "BUY",
|
|
44
|
+
2: "SELL",
|
|
45
|
+
3: "STOP_BUY",
|
|
46
|
+
4: "STOP_SELL",
|
|
47
|
+
5: "TAKE_BUY",
|
|
48
|
+
6: "TAKE_SELL",
|
|
49
|
+
7: "BUY_PO",
|
|
50
|
+
8: "SELL_PO",
|
|
51
|
+
9: "BUY_ATOMIC",
|
|
52
|
+
10: "SELL_ATOMIC",
|
|
53
|
+
UNSPECIFIED: 0,
|
|
54
|
+
BUY: 1,
|
|
55
|
+
SELL: 2,
|
|
56
|
+
STOP_BUY: 3,
|
|
57
|
+
STOP_SELL: 4,
|
|
58
|
+
TAKE_BUY: 5,
|
|
59
|
+
TAKE_SELL: 6,
|
|
60
|
+
BUY_PO: 7,
|
|
61
|
+
SELL_PO: 8,
|
|
62
|
+
BUY_ATOMIC: 9,
|
|
63
|
+
SELL_ATOMIC: 10
|
|
64
|
+
};
|
|
65
|
+
const OrderTypeMap = GrpcOrderTypeMap;
|
|
66
|
+
const GrpcMarketStatusMap = {
|
|
67
|
+
0: "Unspecified",
|
|
68
|
+
1: "Active",
|
|
69
|
+
2: "Paused",
|
|
70
|
+
3: "Demolished",
|
|
71
|
+
4: "Expired",
|
|
72
|
+
Unspecified: 0,
|
|
73
|
+
Active: 1,
|
|
74
|
+
Paused: 2,
|
|
75
|
+
Demolished: 3,
|
|
76
|
+
Expired: 4
|
|
77
|
+
};
|
|
78
|
+
const MarketStatusMap = GrpcMarketStatusMap;
|
|
79
|
+
const OracleTypeMap = {
|
|
80
|
+
0: "Unspecified",
|
|
81
|
+
1: "Band",
|
|
82
|
+
2: "PriceFeed",
|
|
83
|
+
3: "Coinbase",
|
|
84
|
+
4: "Chainlink",
|
|
85
|
+
5: "Razor",
|
|
86
|
+
6: "Dia",
|
|
87
|
+
7: "API3",
|
|
88
|
+
8: "Uma",
|
|
89
|
+
9: "Pyth",
|
|
90
|
+
10: "BandIBC",
|
|
91
|
+
11: "Provider",
|
|
92
|
+
12: "Stork",
|
|
93
|
+
13: "ChainlinkDataStreams",
|
|
94
|
+
14: "PythPro",
|
|
95
|
+
15: "SedaFast",
|
|
96
|
+
Unspecified: 0,
|
|
97
|
+
Band: 1,
|
|
98
|
+
PriceFeed: 2,
|
|
99
|
+
Coinbase: 3,
|
|
100
|
+
Chainlink: 4,
|
|
101
|
+
Razor: 5,
|
|
102
|
+
Dia: 6,
|
|
103
|
+
API3: 7,
|
|
104
|
+
Uma: 8,
|
|
105
|
+
Pyth: 9,
|
|
106
|
+
BandIBC: 10,
|
|
107
|
+
Provider: 11,
|
|
108
|
+
Stork: 12,
|
|
109
|
+
ChainlinkDataStreams: 13,
|
|
110
|
+
PythPro: 14,
|
|
111
|
+
SedaFast: 15
|
|
112
|
+
};
|
|
113
|
+
const MarketType = {
|
|
114
|
+
Spot: "spot",
|
|
115
|
+
Derivative: "derivative"
|
|
116
|
+
};
|
|
117
|
+
const GridStrategyType = {
|
|
118
|
+
Geometric: "geometric",
|
|
119
|
+
Arithmetic: "arithmetic",
|
|
120
|
+
Perpetual: "perpetual"
|
|
121
|
+
};
|
|
122
|
+
const TokenType = {
|
|
123
|
+
Ibc: "ibc",
|
|
124
|
+
Cw20: "cw20",
|
|
125
|
+
Spl: "spl",
|
|
126
|
+
Erc20: "erc20",
|
|
127
|
+
Lp: "lp",
|
|
128
|
+
Evm: "evm",
|
|
129
|
+
Native: "native",
|
|
130
|
+
Symbol: "symbol",
|
|
131
|
+
TokenFactory: "tokenFactory",
|
|
132
|
+
InsuranceFund: "insuranceFund",
|
|
133
|
+
Unknown: "unknown"
|
|
134
|
+
};
|
|
135
|
+
const TokenVerification = {
|
|
136
|
+
Verified: "verified",
|
|
137
|
+
Submitted: "submitted",
|
|
138
|
+
Internal: "internal",
|
|
139
|
+
External: "external",
|
|
140
|
+
Unverified: "unverified"
|
|
141
|
+
};
|
|
142
|
+
const GrpcStatusCode = {
|
|
143
|
+
OK: 0,
|
|
144
|
+
CANCELLED: 1,
|
|
145
|
+
UNKNOWN: 2,
|
|
146
|
+
INVALID_ARGUMENT: 3,
|
|
147
|
+
DEADLINE_EXCEEDED: 4,
|
|
148
|
+
NOT_FOUND: 5,
|
|
149
|
+
ALREADY_EXISTS: 6,
|
|
150
|
+
PERMISSION_DENIED: 7,
|
|
151
|
+
RESOURCE_EXHAUSTED: 8,
|
|
152
|
+
FAILED_PRECONDITION: 9,
|
|
153
|
+
ABORTED: 10,
|
|
154
|
+
OUT_OF_RANGE: 11,
|
|
155
|
+
UNIMPLEMENTED: 12,
|
|
156
|
+
INTERNAL: 13,
|
|
157
|
+
UNAVAILABLE: 14,
|
|
158
|
+
DATA_LOSS: 15,
|
|
159
|
+
UNAUTHENTICATED: 16
|
|
160
|
+
};
|
|
161
|
+
const StreamOperation = {
|
|
162
|
+
Insert: "insert",
|
|
163
|
+
Delete: "delete",
|
|
164
|
+
Replace: "replace",
|
|
165
|
+
Update: "update",
|
|
166
|
+
Invalidate: "invalidate"
|
|
167
|
+
};
|
|
168
|
+
const StreamDisconnectReason = {
|
|
169
|
+
UserStopped: "user-stopped",
|
|
170
|
+
StreamError: "stream-error",
|
|
171
|
+
NetworkError: "network-error",
|
|
172
|
+
Timeout: "timeout",
|
|
173
|
+
AuthenticationError: "authentication-error",
|
|
174
|
+
InvalidRequest: "invalid-request",
|
|
175
|
+
RateLimited: "rate-limited",
|
|
176
|
+
MaxRetries: "max-retries",
|
|
177
|
+
StreamEnded: "stream-ended"
|
|
178
|
+
};
|
|
179
|
+
const StreamEvent = {
|
|
180
|
+
Data: "data",
|
|
181
|
+
Connect: "connect",
|
|
182
|
+
Disconnect: "disconnect",
|
|
183
|
+
Retry: "retry",
|
|
184
|
+
StateChange: "state:change",
|
|
185
|
+
Error: "error",
|
|
186
|
+
Warn: "warn"
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
//#endregion
|
|
190
|
+
export { TradeExecutionSide as _, MarketStatusMap as a, OrderSide as c, StreamDisconnectReason as d, StreamEvent as f, TradeDirection as g, TokenVerification as h, GrpcStatusCode as i, OrderState as l, TokenType as m, GrpcMarketStatusMap as n, MarketType as o, StreamOperation as p, GrpcOrderTypeMap as r, OracleTypeMap as s, GridStrategyType as t, OrderTypeMap as u, TradeExecutionType as v };
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
//#region src/types/light.d.ts
|
|
2
|
+
declare const TradeExecutionType: {
|
|
3
|
+
readonly Market: "market";
|
|
4
|
+
readonly LimitFill: "limitFill";
|
|
5
|
+
readonly LimitMatchRestingOrder: "limitMatchRestingOrder";
|
|
6
|
+
readonly LimitMatchNewOrder: "limitMatchNewOrder";
|
|
7
|
+
};
|
|
8
|
+
type TradeExecutionType = (typeof TradeExecutionType)[keyof typeof TradeExecutionType];
|
|
9
|
+
declare const TradeExecutionSide: {
|
|
10
|
+
readonly Maker: "maker";
|
|
11
|
+
readonly Taker: "taker";
|
|
12
|
+
};
|
|
13
|
+
type TradeExecutionSide = (typeof TradeExecutionSide)[keyof typeof TradeExecutionSide];
|
|
14
|
+
declare const TradeDirection: {
|
|
15
|
+
readonly Buy: "buy";
|
|
16
|
+
readonly Sell: "sell";
|
|
17
|
+
readonly Long: "long";
|
|
18
|
+
readonly Short: "short";
|
|
19
|
+
};
|
|
20
|
+
type TradeDirection = (typeof TradeDirection)[keyof typeof TradeDirection];
|
|
21
|
+
declare const OrderState: {
|
|
22
|
+
readonly Unfilled: "unfilled";
|
|
23
|
+
readonly Booked: "booked";
|
|
24
|
+
readonly PartialFilled: "partial_filled";
|
|
25
|
+
readonly PartiallyFilled: "partially_filled";
|
|
26
|
+
readonly Filled: "filled";
|
|
27
|
+
readonly Canceled: "canceled";
|
|
28
|
+
readonly Triggered: "triggered";
|
|
29
|
+
};
|
|
30
|
+
type OrderState = (typeof OrderState)[keyof typeof OrderState];
|
|
31
|
+
declare const OrderSide: {
|
|
32
|
+
readonly Unspecified: "unspecified";
|
|
33
|
+
readonly Buy: "buy";
|
|
34
|
+
readonly Sell: "sell";
|
|
35
|
+
readonly StopBuy: "stop_buy";
|
|
36
|
+
readonly StopSell: "stop_sell";
|
|
37
|
+
readonly TakeBuy: "take_buy";
|
|
38
|
+
readonly TakeSell: "take_sell";
|
|
39
|
+
readonly BuyPO: "buy_po";
|
|
40
|
+
readonly SellPO: "sell_po";
|
|
41
|
+
readonly BuyAtomic: "buy_atomic";
|
|
42
|
+
readonly SellAtomic: "sell_atomic";
|
|
43
|
+
readonly Unrecognized: "unrecognized";
|
|
44
|
+
};
|
|
45
|
+
type OrderSide = (typeof OrderSide)[keyof typeof OrderSide];
|
|
46
|
+
declare const GrpcOrderTypeMap: {
|
|
47
|
+
readonly 0: "UNSPECIFIED";
|
|
48
|
+
readonly 1: "BUY";
|
|
49
|
+
readonly 2: "SELL";
|
|
50
|
+
readonly 3: "STOP_BUY";
|
|
51
|
+
readonly 4: "STOP_SELL";
|
|
52
|
+
readonly 5: "TAKE_BUY";
|
|
53
|
+
readonly 6: "TAKE_SELL";
|
|
54
|
+
readonly 7: "BUY_PO";
|
|
55
|
+
readonly 8: "SELL_PO";
|
|
56
|
+
readonly 9: "BUY_ATOMIC";
|
|
57
|
+
readonly 10: "SELL_ATOMIC";
|
|
58
|
+
readonly UNSPECIFIED: 0;
|
|
59
|
+
readonly BUY: 1;
|
|
60
|
+
readonly SELL: 2;
|
|
61
|
+
readonly STOP_BUY: 3;
|
|
62
|
+
readonly STOP_SELL: 4;
|
|
63
|
+
readonly TAKE_BUY: 5;
|
|
64
|
+
readonly TAKE_SELL: 6;
|
|
65
|
+
readonly BUY_PO: 7;
|
|
66
|
+
readonly SELL_PO: 8;
|
|
67
|
+
readonly BUY_ATOMIC: 9;
|
|
68
|
+
readonly SELL_ATOMIC: 10;
|
|
69
|
+
};
|
|
70
|
+
type GrpcOrderType = Exclude<(typeof GrpcOrderTypeMap)[keyof typeof GrpcOrderTypeMap], string>;
|
|
71
|
+
declare const OrderTypeMap: {
|
|
72
|
+
readonly 0: "UNSPECIFIED";
|
|
73
|
+
readonly 1: "BUY";
|
|
74
|
+
readonly 2: "SELL";
|
|
75
|
+
readonly 3: "STOP_BUY";
|
|
76
|
+
readonly 4: "STOP_SELL";
|
|
77
|
+
readonly 5: "TAKE_BUY";
|
|
78
|
+
readonly 6: "TAKE_SELL";
|
|
79
|
+
readonly 7: "BUY_PO";
|
|
80
|
+
readonly 8: "SELL_PO";
|
|
81
|
+
readonly 9: "BUY_ATOMIC";
|
|
82
|
+
readonly 10: "SELL_ATOMIC";
|
|
83
|
+
readonly UNSPECIFIED: 0;
|
|
84
|
+
readonly BUY: 1;
|
|
85
|
+
readonly SELL: 2;
|
|
86
|
+
readonly STOP_BUY: 3;
|
|
87
|
+
readonly STOP_SELL: 4;
|
|
88
|
+
readonly TAKE_BUY: 5;
|
|
89
|
+
readonly TAKE_SELL: 6;
|
|
90
|
+
readonly BUY_PO: 7;
|
|
91
|
+
readonly SELL_PO: 8;
|
|
92
|
+
readonly BUY_ATOMIC: 9;
|
|
93
|
+
readonly SELL_ATOMIC: 10;
|
|
94
|
+
};
|
|
95
|
+
type OrderType = GrpcOrderType;
|
|
96
|
+
declare const GrpcMarketStatusMap: {
|
|
97
|
+
readonly 0: "Unspecified";
|
|
98
|
+
readonly 1: "Active";
|
|
99
|
+
readonly 2: "Paused";
|
|
100
|
+
readonly 3: "Demolished";
|
|
101
|
+
readonly 4: "Expired";
|
|
102
|
+
readonly Unspecified: 0;
|
|
103
|
+
readonly Active: 1;
|
|
104
|
+
readonly Paused: 2;
|
|
105
|
+
readonly Demolished: 3;
|
|
106
|
+
readonly Expired: 4;
|
|
107
|
+
};
|
|
108
|
+
type GrpcMarketStatus = Exclude<(typeof GrpcMarketStatusMap)[keyof typeof GrpcMarketStatusMap], string>;
|
|
109
|
+
declare const MarketStatusMap: {
|
|
110
|
+
readonly 0: "Unspecified";
|
|
111
|
+
readonly 1: "Active";
|
|
112
|
+
readonly 2: "Paused";
|
|
113
|
+
readonly 3: "Demolished";
|
|
114
|
+
readonly 4: "Expired";
|
|
115
|
+
readonly Unspecified: 0;
|
|
116
|
+
readonly Active: 1;
|
|
117
|
+
readonly Paused: 2;
|
|
118
|
+
readonly Demolished: 3;
|
|
119
|
+
readonly Expired: 4;
|
|
120
|
+
};
|
|
121
|
+
type MarketStatus = GrpcMarketStatus;
|
|
122
|
+
declare const OracleTypeMap: {
|
|
123
|
+
readonly 0: "Unspecified";
|
|
124
|
+
readonly 1: "Band";
|
|
125
|
+
readonly 2: "PriceFeed";
|
|
126
|
+
readonly 3: "Coinbase";
|
|
127
|
+
readonly 4: "Chainlink";
|
|
128
|
+
readonly 5: "Razor";
|
|
129
|
+
readonly 6: "Dia";
|
|
130
|
+
readonly 7: "API3";
|
|
131
|
+
readonly 8: "Uma";
|
|
132
|
+
readonly 9: "Pyth";
|
|
133
|
+
readonly 10: "BandIBC";
|
|
134
|
+
readonly 11: "Provider";
|
|
135
|
+
readonly 12: "Stork";
|
|
136
|
+
readonly 13: "ChainlinkDataStreams";
|
|
137
|
+
readonly 14: "PythPro";
|
|
138
|
+
readonly 15: "SedaFast";
|
|
139
|
+
readonly Unspecified: 0;
|
|
140
|
+
readonly Band: 1;
|
|
141
|
+
readonly PriceFeed: 2;
|
|
142
|
+
readonly Coinbase: 3;
|
|
143
|
+
readonly Chainlink: 4;
|
|
144
|
+
readonly Razor: 5;
|
|
145
|
+
readonly Dia: 6;
|
|
146
|
+
readonly API3: 7;
|
|
147
|
+
readonly Uma: 8;
|
|
148
|
+
readonly Pyth: 9;
|
|
149
|
+
readonly BandIBC: 10;
|
|
150
|
+
readonly Provider: 11;
|
|
151
|
+
readonly Stork: 12;
|
|
152
|
+
readonly ChainlinkDataStreams: 13;
|
|
153
|
+
readonly PythPro: 14;
|
|
154
|
+
readonly SedaFast: 15;
|
|
155
|
+
};
|
|
156
|
+
type OracleType = Exclude<(typeof OracleTypeMap)[keyof typeof OracleTypeMap], string>;
|
|
157
|
+
declare const MarketType: {
|
|
158
|
+
readonly Spot: "spot";
|
|
159
|
+
readonly Derivative: "derivative";
|
|
160
|
+
};
|
|
161
|
+
type MarketType = (typeof MarketType)[keyof typeof MarketType];
|
|
162
|
+
declare const GridStrategyType: {
|
|
163
|
+
readonly Geometric: "geometric";
|
|
164
|
+
readonly Arithmetic: "arithmetic";
|
|
165
|
+
readonly Perpetual: "perpetual";
|
|
166
|
+
};
|
|
167
|
+
type GridStrategyType = (typeof GridStrategyType)[keyof typeof GridStrategyType];
|
|
168
|
+
declare const TokenType: {
|
|
169
|
+
readonly Ibc: "ibc";
|
|
170
|
+
readonly Cw20: "cw20";
|
|
171
|
+
readonly Spl: "spl";
|
|
172
|
+
readonly Erc20: "erc20";
|
|
173
|
+
readonly Lp: "lp";
|
|
174
|
+
readonly Evm: "evm";
|
|
175
|
+
readonly Native: "native";
|
|
176
|
+
readonly Symbol: "symbol";
|
|
177
|
+
readonly TokenFactory: "tokenFactory";
|
|
178
|
+
readonly InsuranceFund: "insuranceFund";
|
|
179
|
+
readonly Unknown: "unknown";
|
|
180
|
+
};
|
|
181
|
+
type TokenType = (typeof TokenType)[keyof typeof TokenType];
|
|
182
|
+
declare const TokenVerification: {
|
|
183
|
+
readonly Verified: "verified";
|
|
184
|
+
readonly Submitted: "submitted";
|
|
185
|
+
readonly Internal: "internal";
|
|
186
|
+
readonly External: "external";
|
|
187
|
+
readonly Unverified: "unverified";
|
|
188
|
+
};
|
|
189
|
+
type TokenVerification = (typeof TokenVerification)[keyof typeof TokenVerification];
|
|
190
|
+
declare const GrpcStatusCode: {
|
|
191
|
+
readonly OK: 0;
|
|
192
|
+
readonly CANCELLED: 1;
|
|
193
|
+
readonly UNKNOWN: 2;
|
|
194
|
+
readonly INVALID_ARGUMENT: 3;
|
|
195
|
+
readonly DEADLINE_EXCEEDED: 4;
|
|
196
|
+
readonly NOT_FOUND: 5;
|
|
197
|
+
readonly ALREADY_EXISTS: 6;
|
|
198
|
+
readonly PERMISSION_DENIED: 7;
|
|
199
|
+
readonly RESOURCE_EXHAUSTED: 8;
|
|
200
|
+
readonly FAILED_PRECONDITION: 9;
|
|
201
|
+
readonly ABORTED: 10;
|
|
202
|
+
readonly OUT_OF_RANGE: 11;
|
|
203
|
+
readonly UNIMPLEMENTED: 12;
|
|
204
|
+
readonly INTERNAL: 13;
|
|
205
|
+
readonly UNAVAILABLE: 14;
|
|
206
|
+
readonly DATA_LOSS: 15;
|
|
207
|
+
readonly UNAUTHENTICATED: 16;
|
|
208
|
+
};
|
|
209
|
+
type GrpcStatusCode = (typeof GrpcStatusCode)[keyof typeof GrpcStatusCode];
|
|
210
|
+
declare const StreamOperation: {
|
|
211
|
+
readonly Insert: "insert";
|
|
212
|
+
readonly Delete: "delete";
|
|
213
|
+
readonly Replace: "replace";
|
|
214
|
+
readonly Update: "update";
|
|
215
|
+
readonly Invalidate: "invalidate";
|
|
216
|
+
};
|
|
217
|
+
type StreamOperation = (typeof StreamOperation)[keyof typeof StreamOperation];
|
|
218
|
+
declare const StreamDisconnectReason: {
|
|
219
|
+
readonly UserStopped: "user-stopped";
|
|
220
|
+
readonly StreamError: "stream-error";
|
|
221
|
+
readonly NetworkError: "network-error";
|
|
222
|
+
readonly Timeout: "timeout";
|
|
223
|
+
readonly AuthenticationError: "authentication-error";
|
|
224
|
+
readonly InvalidRequest: "invalid-request";
|
|
225
|
+
readonly RateLimited: "rate-limited";
|
|
226
|
+
readonly MaxRetries: "max-retries";
|
|
227
|
+
readonly StreamEnded: "stream-ended";
|
|
228
|
+
};
|
|
229
|
+
type StreamDisconnectReason = (typeof StreamDisconnectReason)[keyof typeof StreamDisconnectReason];
|
|
230
|
+
declare const StreamEvent: {
|
|
231
|
+
readonly Data: "data";
|
|
232
|
+
readonly Connect: "connect";
|
|
233
|
+
readonly Disconnect: "disconnect";
|
|
234
|
+
readonly Retry: "retry";
|
|
235
|
+
readonly StateChange: "state:change";
|
|
236
|
+
readonly Error: "error";
|
|
237
|
+
readonly Warn: "warn";
|
|
238
|
+
};
|
|
239
|
+
type StreamEvent = (typeof StreamEvent)[keyof typeof StreamEvent];
|
|
240
|
+
//#endregion
|
|
241
|
+
export { TradeExecutionType as C, TradeExecutionSide as S, StreamEvent as _, GrpcOrderTypeMap as a, TokenVerification as b, MarketStatusMap as c, OracleTypeMap as d, OrderSide as f, StreamDisconnectReason as g, OrderTypeMap as h, GrpcOrderType as i, MarketType as l, OrderType as m, GrpcMarketStatus as n, GrpcStatusCode as o, OrderState as p, GrpcMarketStatusMap as r, MarketStatus as s, GridStrategyType as t, OracleType as u, StreamOperation as v, TradeDirection as x, TokenType as y };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as tx_pb_d_exports } from "../tx_pb-
|
|
1
|
+
import { c as tx_pb_d_exports } from "../tx_pb-DhFh6sWY.js";
|
|
2
2
|
export { tx_pb_d_exports as CosmosTxV1Beta1TxPb };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as _defineProperty } from "./defineProperty-C0TI9N8m.js";
|
|
2
|
+
import { u as isCw20ContractAddress } from "./address-light-C9skTx0P.js";
|
|
3
|
+
import { h as TokenVerification, m as TokenType } from "./light-BflupdEX.js";
|
|
4
4
|
import { HttpRestClient } from "@injectivelabs/utils";
|
|
5
5
|
import { Network, isDevnet, isTestnet } from "@injectivelabs/networks";
|
|
6
6
|
|
package/dist/esm/service.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import "./index-
|
|
3
|
-
import
|
|
1
|
+
import "./tx_pb-DhFh6sWY.js";
|
|
2
|
+
import "./index-BJJNBulw.js";
|
|
3
|
+
import "./light-Cr4m0DAA.js";
|
|
4
|
+
import { n as TokenFactoryStatic, r as TokenPrice, t as TokenStaticFactory } from "./index-81riAHnR.js";
|
|
4
5
|
export { TokenFactoryStatic, TokenPrice, TokenStaticFactory };
|
package/dist/esm/service.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
1
|
+
import "./encoding-light-DHtTGSg1.js";
|
|
2
|
+
import "./constants-CCVyqUU9.js";
|
|
3
|
+
import "./defineProperty-C0TI9N8m.js";
|
|
4
|
+
import "./utils-B3t50ZnB.js";
|
|
5
|
+
import "./grpc-aI_RLGoG.js";
|
|
6
|
+
import "./coins-D4vONigS.js";
|
|
7
|
+
import "./address-light-C9skTx0P.js";
|
|
8
|
+
import "./light-BflupdEX.js";
|
|
9
|
+
import "./stream-BqkNM_6g.js";
|
|
10
|
+
import "./types-BAV0654v.js";
|
|
11
|
+
import { n as TokenFactoryStatic, r as TokenPrice, t as TokenStaticFactory } from "./service-BER-mZkG.js";
|
|
7
12
|
|
|
8
13
|
export { TokenFactoryStatic, TokenPrice, TokenStaticFactory };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/types/stream.ts
|
|
2
|
+
/**
|
|
3
|
+
* StreamManager
|
|
4
|
+
*/
|
|
5
|
+
const StreamState = {
|
|
6
|
+
Idle: "idle",
|
|
7
|
+
Connecting: "connecting",
|
|
8
|
+
Connected: "connected",
|
|
9
|
+
Reconnecting: "reconnecting",
|
|
10
|
+
Stopped: "stopped"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { StreamState as t };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as _defineProperty } from "./defineProperty-
|
|
3
|
-
import { S as createSignDoc, T as createSigners, b as createFee, n as PrivateKey, t as BaseAccount, v as createAuthInfo, y as createBody } from "./accounts-
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
1
|
+
import { f as toUtf8, m as uint8ArrayToHex, p as uint8ArrayToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "./encoding-light-DHtTGSg1.js";
|
|
2
|
+
import { t as _defineProperty } from "./defineProperty-C0TI9N8m.js";
|
|
3
|
+
import { S as createSignDoc, T as createSigners, b as createFee, n as PrivateKey, t as BaseAccount, v as createAuthInfo, y as createBody } from "./accounts-3rypojw1.js";
|
|
4
|
+
import { Mt as getGasPriceBasedOnMessage, at as hashToHex, jt as ofacList, kt as sortObjectByKeys, vt as getErrorMessage } from "./utils-B3t50ZnB.js";
|
|
5
|
+
import { i as ChainGrpcAuthApi, n as ChainRestAuthApi, r as ChainGrpcTendermintApi, t as ChainRestTendermintApi } from "./ChainRestTendermintApi-D_FQwKrf.js";
|
|
6
|
+
import { t as BaseGrpcConsumer } from "./BaseGrpcConsumer-Ci8sUY5h.js";
|
|
7
|
+
import { t as IndexerGrpcWeb3GwApi } from "./IndexerGrpcWeb3GwApi-BWuDmOjX.js";
|
|
7
8
|
import * as CosmosTxV1Beta1TxPb from "@injectivelabs/core-proto-ts-v2/generated/cosmos/tx/v1beta1/tx_pb";
|
|
8
9
|
import { keccak256 } from "viem";
|
|
9
10
|
import { DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_BLOCK_TIME_IN_SECONDS, DEFAULT_TX_BLOCK_INCLUSION_TIMEOUT_IN_MS, DEFAULT_TX_POLL_CALL_TIMEOUT_MS, DEFAULT_TX_POLL_INTERVAL_MS, HttpClient, getDefaultStdFee, getStdFee, getStdFeeFromString, sleep, toBigNumber } from "@injectivelabs/utils";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { C as TradeExecutionType, S as TradeExecutionSide, _ as StreamEvent, a as GrpcOrderTypeMap, b as TokenVerification, c as MarketStatusMap, d as OracleTypeMap, f as OrderSide, g as StreamDisconnectReason, h as OrderTypeMap, i as GrpcOrderType, l as MarketType, m as OrderType, n as GrpcMarketStatus, o as GrpcStatusCode, p as OrderState, r as GrpcMarketStatusMap, s as MarketStatus, t as GridStrategyType, u as OracleType, v as StreamOperation, x as TradeDirection, y as TokenType } from "../light-Cr4m0DAA.js";
|
|
2
|
+
export { GridStrategyType, GrpcMarketStatus, GrpcMarketStatusMap, GrpcOrderType, GrpcOrderTypeMap, GrpcStatusCode, MarketStatus, MarketStatusMap, MarketType, OracleType, OracleTypeMap, OrderSide, OrderState, OrderType, OrderTypeMap, StreamDisconnectReason, StreamEvent, StreamOperation, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { _ as TradeExecutionSide, a as MarketStatusMap, c as OrderSide, d as StreamDisconnectReason, f as StreamEvent, g as TradeDirection, h as TokenVerification, i as GrpcStatusCode, l as OrderState, m as TokenType, n as GrpcMarketStatusMap, o as MarketType, p as StreamOperation, r as GrpcOrderTypeMap, s as OracleTypeMap, t as GridStrategyType, u as OrderTypeMap, v as TradeExecutionType } from "../light-BflupdEX.js";
|
|
2
|
+
|
|
3
|
+
export { GridStrategyType, GrpcMarketStatusMap, GrpcOrderTypeMap, GrpcStatusCode, MarketStatusMap, MarketType, OracleTypeMap, OrderSide, OrderState, OrderTypeMap, StreamDisconnectReason, StreamEvent, StreamOperation, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as InjectiveExchangeV1Beta1ExchangePb from "@injectivelabs/core-proto-ts-v2/generated/injective/exchange/v1beta1/exchange_pb";
|
|
2
|
+
|
|
3
|
+
//#region src/types/token.ts
|
|
4
|
+
const TokenSource = {
|
|
5
|
+
Aptos: "aptos",
|
|
6
|
+
Solana: "solana",
|
|
7
|
+
Cosmos: "cosmos",
|
|
8
|
+
Ethereum: "ethereum",
|
|
9
|
+
EthereumWh: "ethereum-wormhole",
|
|
10
|
+
Polygon: "polygon",
|
|
11
|
+
Klaytn: "klaytn",
|
|
12
|
+
Arbitrum: "arbitrum",
|
|
13
|
+
Sui: "sui",
|
|
14
|
+
Ibc: "ibc",
|
|
15
|
+
BinanceSmartChain: "binance-smart-chain",
|
|
16
|
+
Axelar: "axelar"
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/types/exchange.ts
|
|
21
|
+
const OrderMaskMap = InjectiveExchangeV1Beta1ExchangePb.OrderMask;
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { TokenSource as n, OrderMaskMap as t };
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import "./tx_pb-
|
|
2
|
-
import {
|
|
1
|
+
import "./tx_pb-DhFh6sWY.js";
|
|
2
|
+
import { a as AminoSignResponse, at as StreamManagerConfig, c as GrpcCoin, ct as StreamState, d as GrpcWebTransportAdditionalOptions, dt as TokenSource, ft as TokenStatic, i as PaginationOption, it as StreamError, l as SignDoc, lt as StreamSubscription, m as OrderMaskMap, n as PagePagination, o as Coin, ot as StreamManagerEvents, p as OrderMask, r as Pagination, rt as ResolvedStreamManagerConfig, s as DirectSignResponse, st as StreamManagerRetryConfig, t as ExchangePagination, u as TxRaw, ut as TokenMeta } from "./index-BJJNBulw.js";
|
|
3
|
+
import { C as TradeExecutionType, S as TradeExecutionSide, _ as StreamEvent, b as TokenVerification, f as OrderSide, g as StreamDisconnectReason, o as GrpcStatusCode, p as OrderState, v as StreamOperation, x as TradeDirection, y as TokenType } from "./light-Cr4m0DAA.js";
|
|
3
4
|
export { AminoSignResponse, Coin, DirectSignResponse, ExchangePagination, GrpcCoin, GrpcStatusCode, GrpcWebTransportAdditionalOptions, OrderMask, OrderMaskMap, OrderSide, OrderState, PagePagination, Pagination, PaginationOption, ResolvedStreamManagerConfig, SignDoc, StreamDisconnectReason, StreamError, StreamEvent, StreamManagerConfig, StreamManagerEvents, StreamManagerRetryConfig, StreamOperation, StreamState, StreamSubscription, TokenMeta, TokenSource, TokenStatic, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType, TxRaw };
|
package/dist/esm/types.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { _ as TradeExecutionSide, c as OrderSide, d as StreamDisconnectReason, f as StreamEvent, g as TradeDirection, h as TokenVerification, i as GrpcStatusCode, l as OrderState, m as TokenType, p as StreamOperation, v as TradeExecutionType } from "./light-BflupdEX.js";
|
|
2
|
+
import { t as StreamState } from "./stream-BqkNM_6g.js";
|
|
3
|
+
import { n as TokenSource, t as OrderMaskMap } from "./types-BAV0654v.js";
|
|
3
4
|
|
|
4
5
|
export { GrpcStatusCode, OrderMaskMap, OrderSide, OrderState, StreamDisconnectReason, StreamEvent, StreamOperation, StreamState, TokenSource, TokenType, TokenVerification, TradeDirection, TradeExecutionSide, TradeExecutionType };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as getEthereumAddress, c as getSubaccountId, d as removeHexPrefix, i as getDefaultSubaccountId, l as hexToBytes, n as bytesToHex, o as getInjectiveAddress, r as getAddressFromInjectiveAddress, s as getInjectiveAddressFromSubaccountId, t as addHexPrefix, u as isCw20ContractAddress } from "../address-light-BcZDS-ks.js";
|
|
2
|
+
export { addHexPrefix, bytesToHex, getAddressFromInjectiveAddress, getDefaultSubaccountId, getEthereumAddress, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSubaccountId, hexToBytes, isCw20ContractAddress, removeHexPrefix };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as getEthereumAddress, c as getSubaccountId, d as removeHexPrefix, i as getDefaultSubaccountId, l as hexToBytes, n as bytesToHex, o as getInjectiveAddress, r as getAddressFromInjectiveAddress, s as getInjectiveAddressFromSubaccountId, t as addHexPrefix, u as isCw20ContractAddress } from "../address-light-C9skTx0P.js";
|
|
2
|
+
|
|
3
|
+
export { addHexPrefix, bytesToHex, getAddressFromInjectiveAddress, getDefaultSubaccountId, getEthereumAddress, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSubaccountId, hexToBytes, isCw20ContractAddress, removeHexPrefix };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as BECH32_PUBKEY_CONS_PREFIX, i as BECH32_PUBKEY_ACC_PREFIX, n as BECH32_ADDR_CONS_PREFIX, o as BECH32_PUBKEY_VAL_PREFIX, r as BECH32_ADDR_VAL_PREFIX, s as DEFAULT_DERIVATION_PATH, t as BECH32_ADDR_ACC_PREFIX } from "../constants-BZ28P_pH.js";
|
|
2
|
+
export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as BECH32_PUBKEY_CONS_PREFIX, i as BECH32_PUBKEY_ACC_PREFIX, n as BECH32_ADDR_CONS_PREFIX, o as BECH32_PUBKEY_VAL_PREFIX, r as BECH32_ADDR_VAL_PREFIX, s as DEFAULT_DERIVATION_PATH, t as BECH32_ADDR_ACC_PREFIX } from "../constants-CCVyqUU9.js";
|
|
2
|
+
|
|
3
|
+
export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as fromBase64, c as hexToBuff, d as toBase64, f as toUtf8, h as uint8ArrayToString, i as concatUint8Arrays, l as hexToUint8Array, m as uint8ArrayToHex, n as base64ToUtf8, o as fromUtf8, p as uint8ArrayToBase64, r as binaryToBase64, s as hexToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "../encoding-light-18k0e_8v.js";
|
|
2
|
+
export { base64ToUint8Array, base64ToUtf8, binaryToBase64, concatUint8Arrays, fromBase64, fromUtf8, hexToBase64, hexToBuff, hexToUint8Array, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as fromBase64, c as hexToBuff, d as toBase64, f as toUtf8, h as uint8ArrayToString, i as concatUint8Arrays, l as hexToUint8Array, m as uint8ArrayToHex, n as base64ToUtf8, o as fromUtf8, p as uint8ArrayToBase64, r as binaryToBase64, s as hexToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "../encoding-light-DHtTGSg1.js";
|
|
2
|
+
|
|
3
|
+
export { base64ToUint8Array, base64ToUtf8, binaryToBase64, concatUint8Arrays, fromBase64, fromUtf8, hexToBase64, hexToBuff, hexToUint8Array, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { t as parseCoins } from "../coins-ceq0Id0M.js";
|
|
2
|
+
import { a as getEthereumAddress, c as getSubaccountId, d as removeHexPrefix, i as getDefaultSubaccountId, l as hexToBytes, n as bytesToHex, o as getInjectiveAddress, r as getAddressFromInjectiveAddress, s as getInjectiveAddressFromSubaccountId, t as addHexPrefix, u as isCw20ContractAddress } from "../address-light-BcZDS-ks.js";
|
|
3
|
+
import { a as fromBase64, c as hexToBuff, d as toBase64, f as toUtf8, h as uint8ArrayToString, i as concatUint8Arrays, l as hexToUint8Array, m as uint8ArrayToHex, n as base64ToUtf8, o as fromUtf8, p as uint8ArrayToBase64, r as binaryToBase64, s as hexToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "../encoding-light-18k0e_8v.js";
|
|
4
|
+
import { a as BECH32_PUBKEY_CONS_PREFIX, i as BECH32_PUBKEY_ACC_PREFIX, n as BECH32_ADDR_CONS_PREFIX, o as BECH32_PUBKEY_VAL_PREFIX, r as BECH32_ADDR_VAL_PREFIX, s as DEFAULT_DERIVATION_PATH, t as BECH32_ADDR_ACC_PREFIX } from "../constants-BZ28P_pH.js";
|
|
5
|
+
export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, addHexPrefix, base64ToUint8Array, base64ToUtf8, binaryToBase64, bytesToHex, concatUint8Arrays, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getDefaultSubaccountId, getEthereumAddress, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSubaccountId, hexToBase64, hexToBuff, hexToBytes, hexToUint8Array, isCw20ContractAddress, parseCoins, removeHexPrefix, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { a as fromBase64, c as hexToBuff, d as toBase64, f as toUtf8, h as uint8ArrayToString, i as concatUint8Arrays, l as hexToUint8Array, m as uint8ArrayToHex, n as base64ToUtf8, o as fromUtf8, p as uint8ArrayToBase64, r as binaryToBase64, s as hexToBase64, t as base64ToUint8Array, u as stringToUint8Array } from "../encoding-light-DHtTGSg1.js";
|
|
2
|
+
import { a as BECH32_PUBKEY_CONS_PREFIX, i as BECH32_PUBKEY_ACC_PREFIX, n as BECH32_ADDR_CONS_PREFIX, o as BECH32_PUBKEY_VAL_PREFIX, r as BECH32_ADDR_VAL_PREFIX, s as DEFAULT_DERIVATION_PATH, t as BECH32_ADDR_ACC_PREFIX } from "../constants-CCVyqUU9.js";
|
|
3
|
+
import { t as parseCoins } from "../coins-D4vONigS.js";
|
|
4
|
+
import { a as getEthereumAddress, c as getSubaccountId, d as removeHexPrefix, i as getDefaultSubaccountId, l as hexToBytes, n as bytesToHex, o as getInjectiveAddress, r as getAddressFromInjectiveAddress, s as getInjectiveAddressFromSubaccountId, t as addHexPrefix, u as isCw20ContractAddress } from "../address-light-C9skTx0P.js";
|
|
5
|
+
|
|
6
|
+
export { BECH32_ADDR_ACC_PREFIX, BECH32_ADDR_CONS_PREFIX, BECH32_ADDR_VAL_PREFIX, BECH32_PUBKEY_ACC_PREFIX, BECH32_PUBKEY_CONS_PREFIX, BECH32_PUBKEY_VAL_PREFIX, DEFAULT_DERIVATION_PATH, addHexPrefix, base64ToUint8Array, base64ToUtf8, binaryToBase64, bytesToHex, concatUint8Arrays, fromBase64, fromUtf8, getAddressFromInjectiveAddress, getDefaultSubaccountId, getEthereumAddress, getInjectiveAddress, getInjectiveAddressFromSubaccountId, getSubaccountId, hexToBase64, hexToBuff, hexToBytes, hexToUint8Array, isCw20ContractAddress, parseCoins, removeHexPrefix, stringToUint8Array, toBase64, toUtf8, uint8ArrayToBase64, uint8ArrayToHex, uint8ArrayToString };
|