carbon-js-sdk 0.3.43-dev.3 → 0.3.44
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/lib/CarbonSDK.js +2 -2
- package/lib/codec/broker/amm.d.ts +1 -1
- package/lib/codec/broker/amm.js +18 -16
- package/lib/codec/index.d.ts +12 -15
- package/lib/codec/index.js +37 -56
- package/lib/codec/liquiditypool/event.d.ts +0 -14
- package/lib/codec/liquiditypool/event.js +1 -107
- package/lib/codec/liquiditypool/genesis.d.ts +1 -2
- package/lib/codec/liquiditypool/genesis.js +2 -17
- package/lib/codec/liquiditypool/liquiditypool.d.ts +0 -40
- package/lib/codec/liquiditypool/liquiditypool.js +2 -320
- package/lib/codec/liquiditypool/proposal.d.ts +25 -37
- package/lib/codec/liquiditypool/proposal.js +61 -139
- package/lib/codec/liquiditypool/query.d.ts +24 -85
- package/lib/codec/liquiditypool/query.js +23 -338
- package/lib/codec/liquiditypool/tx.d.ts +67 -101
- package/lib/codec/liquiditypool/tx.js +597 -817
- package/lib/codec/order/order.d.ts +0 -1
- package/lib/codec/order/order.js +1 -45
- package/lib/modules/admin.d.ts +2 -0
- package/lib/modules/admin.js +26 -0
- package/lib/modules/coin.d.ts +0 -19
- package/lib/modules/coin.js +0 -39
- package/lib/modules/gov.js +14 -0
- package/lib/modules/liquiditypool.d.ts +2 -11
- package/lib/modules/liquiditypool.js +2 -33
- package/lib/modules/market.d.ts +0 -11
- package/lib/modules/market.js +0 -19
- package/lib/provider/amino/types/admin.js +4 -0
- package/lib/provider/amino/types/coin.js +2 -2
- package/lib/provider/amino/types/gov.js +36 -0
- package/lib/provider/amino/types/liquidityPool.js +2 -0
- package/lib/provider/keplr/KeplrAccount.d.ts +2 -0
- package/lib/provider/keplr/KeplrAccount.js +37 -8
- package/lib/util/blockchain.js +10 -0
- package/lib/util/gov.d.ts +2 -0
- package/lib/util/gov.js +6 -0
- package/lib/util/tx.d.ts +6 -9
- package/lib/wallet/CarbonWallet.js +2 -2
- package/lib/websocket/models.d.ts +2 -7
- package/package.json +1 -1
package/lib/util/tx.d.ts
CHANGED
|
@@ -348,6 +348,10 @@ export declare const Types: {
|
|
|
348
348
|
MsgAddLiquidityResponse: string;
|
|
349
349
|
MsgRemoveLiquidity: string;
|
|
350
350
|
MsgRemoveLiquidityResponse: string;
|
|
351
|
+
MsgLinkPool: string;
|
|
352
|
+
MsgLinkPoolResponse: string;
|
|
353
|
+
MsgUnlinkPool: string;
|
|
354
|
+
MsgUnlinkPoolResponse: string;
|
|
351
355
|
MsgSetRewardsWeights: string;
|
|
352
356
|
MsgSetRewardsWeightsResponse: string;
|
|
353
357
|
MsgStakePoolToken: string;
|
|
@@ -362,19 +366,12 @@ export declare const Types: {
|
|
|
362
366
|
MsgSetCommitmentCurveResponse: string;
|
|
363
367
|
MsgUpdatePool: string;
|
|
364
368
|
MsgUpdatePoolResponse: string;
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
MsgRemovePoolRoute: string;
|
|
368
|
-
MsgRemovePoolRouteResponse: string;
|
|
369
|
-
MsgUpdatePoolRoute: string;
|
|
370
|
-
MsgUpdatePoolRouteResponse: string;
|
|
369
|
+
LinkPoolProposal: string;
|
|
370
|
+
UnlinkPoolProposal: string;
|
|
371
371
|
SetRewardCurveProposal: string;
|
|
372
372
|
SetCommitmentCurveProposal: string;
|
|
373
373
|
SetRewardsWeightsProposal: string;
|
|
374
374
|
UpdatePoolProposal: string;
|
|
375
|
-
CreatePoolRouteProposal: string;
|
|
376
|
-
RemovePoolRouteProposal: string;
|
|
377
|
-
UpdatePoolRouteProposal: string;
|
|
378
375
|
MsgSetBackfillTimeInterval: string;
|
|
379
376
|
MsgSetBackfillTimeIntervalResponse: string;
|
|
380
377
|
MsgSetSmoothenBand: string;
|
|
@@ -112,13 +112,13 @@ class CarbonWallet {
|
|
|
112
112
|
static withKeplr(keplr, chainInfo, keplrKey, opts = {}) {
|
|
113
113
|
const signer = provider_1.KeplrAccount.createKeplrSigner(keplr, chainInfo, keplrKey);
|
|
114
114
|
const publicKeyBase64 = Buffer.from(keplrKey.pubKey).toString("base64");
|
|
115
|
-
const wallet = CarbonWallet.withSigner(signer, publicKeyBase64, opts);
|
|
115
|
+
const wallet = CarbonWallet.withSigner(signer, publicKeyBase64, Object.assign(Object.assign({}, opts), { providerAgent: 'keplr-extension' }));
|
|
116
116
|
return wallet;
|
|
117
117
|
}
|
|
118
118
|
static withLeap(leap, chainId, leapKey, opts = {}) {
|
|
119
119
|
const signer = provider_1.LeapAccount.createLeapSigner(leap, chainId);
|
|
120
120
|
const publicKeyBase64 = Buffer.from(leapKey.pubKey).toString("base64");
|
|
121
|
-
const wallet = CarbonWallet.withSigner(signer, publicKeyBase64, opts);
|
|
121
|
+
const wallet = CarbonWallet.withSigner(signer, publicKeyBase64, Object.assign(Object.assign({}, opts), { providerAgent: 'leap-extension' }));
|
|
122
122
|
return wallet;
|
|
123
123
|
}
|
|
124
124
|
static withAddress(bech32Address, opts = {}) {
|
|
@@ -139,17 +139,12 @@ export interface Pool {
|
|
|
139
139
|
amount_b: string;
|
|
140
140
|
weight_b: string;
|
|
141
141
|
swap_fee: string;
|
|
142
|
+
num_quotes: number;
|
|
142
143
|
shares_amount: string;
|
|
144
|
+
market: string;
|
|
143
145
|
amp_bps: string;
|
|
144
146
|
v_amount_a: string;
|
|
145
147
|
v_amount_b: string;
|
|
146
|
-
/**
|
|
147
|
-
* @deprecated num_quotes and market fields have been removed in websocket data
|
|
148
|
-
* Use Pool Routes API to retrieve numQuotes value for market, as well as the attached pool ids
|
|
149
|
-
* i.e. sdk.query.liquiditypool.PoolRoutesAll({})
|
|
150
|
-
**/
|
|
151
|
-
num_quotes?: number;
|
|
152
|
-
market?: string;
|
|
153
148
|
};
|
|
154
149
|
rewards_weight: string;
|
|
155
150
|
total_commitment: string;
|