@initia/initia.js 0.2.28 → 0.2.30
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/client/rest/api/MarketmapAPI.d.ts +1 -0
- package/dist/client/rest/api/TxAPI.d.ts +3 -0
- package/dist/core/marketmap/msgs/MsgRemoveMarkets.d.ts +32 -0
- package/dist/core/marketmap/msgs/index.d.ts +6 -4
- package/dist/core/tokenfactory/msgs/MsgBurn.d.ts +1 -4
- package/dist/core/tokenfactory/msgs/index.d.ts +4 -6
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +2940 -2955
- package/package.json +2 -2
- package/dist/core/tokenfactory/msgs/MsgForceTransfer.d.ts +0 -39
|
@@ -11,6 +11,7 @@ export declare namespace MarketMap {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class MarketmapAPI extends BaseAPI {
|
|
13
13
|
marketMap(params?: APIParams): Promise<MarketMap>;
|
|
14
|
+
markets(params?: APIParams): Promise<Market[]>;
|
|
14
15
|
market(pair: CurrencyPair, params?: APIParams): Promise<Market>;
|
|
15
16
|
lastUpdated(params?: APIParams): Promise<number>;
|
|
16
17
|
parameters(params?: APIParams): Promise<MarketmapParams>;
|
|
@@ -172,6 +172,9 @@ export declare class TxAPI extends BaseAPI {
|
|
|
172
172
|
gasAdjustment?: number | string;
|
|
173
173
|
signers?: SignerData[];
|
|
174
174
|
}): Promise<string>;
|
|
175
|
+
simulate(options: CreateTxOptions & {
|
|
176
|
+
sequence: number;
|
|
177
|
+
}): Promise<SimulateResponse>;
|
|
175
178
|
static encode(tx: Tx): string;
|
|
176
179
|
static decode(encoded_tx: string): Tx;
|
|
177
180
|
static hash(tx: Tx): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgRemoveMarkets as MsgRemoveMarkets_pb } from '@initia/initia.proto/connect/marketmap/v2/tx';
|
|
5
|
+
export declare class MsgRemoveMarkets extends JSONSerializable<MsgRemoveMarkets.Amino, MsgRemoveMarkets.Data, MsgRemoveMarkets.Proto> {
|
|
6
|
+
authority: AccAddress;
|
|
7
|
+
markets: string[];
|
|
8
|
+
constructor(authority: AccAddress, markets: string[]);
|
|
9
|
+
static fromAmino(data: MsgRemoveMarkets.Amino): MsgRemoveMarkets;
|
|
10
|
+
toAmino(): MsgRemoveMarkets.Amino;
|
|
11
|
+
static fromData(data: MsgRemoveMarkets.Data): MsgRemoveMarkets;
|
|
12
|
+
toData(): MsgRemoveMarkets.Data;
|
|
13
|
+
static fromProto(data: MsgRemoveMarkets.Proto): MsgRemoveMarkets;
|
|
14
|
+
toProto(): MsgRemoveMarkets.Proto;
|
|
15
|
+
packAny(): Any;
|
|
16
|
+
static unpackAny(msgAny: Any): MsgRemoveMarkets;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace MsgRemoveMarkets {
|
|
19
|
+
interface Amino {
|
|
20
|
+
type: 'connect/x/marketmap/MsgRemoveMarkets';
|
|
21
|
+
value: {
|
|
22
|
+
authority: AccAddress;
|
|
23
|
+
markets: string[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface Data {
|
|
27
|
+
'@type': '/connect.marketmap.v2.MsgRemoveMarkets';
|
|
28
|
+
authority: AccAddress;
|
|
29
|
+
markets: string[];
|
|
30
|
+
}
|
|
31
|
+
type Proto = MsgRemoveMarkets_pb;
|
|
32
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { MsgCreateMarkets } from './MsgCreateMarkets';
|
|
2
2
|
import { MsgUpdateMarkets } from './MsgUpdateMarkets';
|
|
3
3
|
import { MsgUpsertMarkets } from './MsgUpsertMarkets';
|
|
4
|
+
import { MsgRemoveMarkets } from './MsgRemoveMarkets';
|
|
4
5
|
import { MsgRemoveMarketAuthorities } from './MsgRemoveMarketAuthorities';
|
|
5
6
|
import { MsgUpdateMarketmapParams } from './MsgUpdateMarketmapParams';
|
|
6
7
|
export * from './MsgCreateMarkets';
|
|
7
8
|
export * from './MsgUpdateMarkets';
|
|
8
9
|
export * from './MsgUpsertMarkets';
|
|
10
|
+
export * from './MsgRemoveMarkets';
|
|
9
11
|
export * from './MsgRemoveMarketAuthorities';
|
|
10
12
|
export * from './MsgUpdateMarketmapParams';
|
|
11
|
-
export type MarketmapMsg = MsgCreateMarkets | MsgUpdateMarkets | MsgUpsertMarkets | MsgRemoveMarketAuthorities | MsgUpdateMarketmapParams;
|
|
13
|
+
export type MarketmapMsg = MsgCreateMarkets | MsgUpdateMarkets | MsgUpsertMarkets | MsgRemoveMarkets | MsgRemoveMarketAuthorities | MsgUpdateMarketmapParams;
|
|
12
14
|
export declare namespace MarketmapMsg {
|
|
13
|
-
type Amino = MsgCreateMarkets.Amino | MsgUpdateMarkets.Amino | MsgUpsertMarkets.Amino | MsgRemoveMarketAuthorities.Amino | MsgUpdateMarketmapParams.Amino;
|
|
14
|
-
type Data = MsgCreateMarkets.Data | MsgUpdateMarkets.Data | MsgUpsertMarkets.Data | MsgRemoveMarketAuthorities.Data | MsgUpdateMarketmapParams.Data;
|
|
15
|
-
type Proto = MsgCreateMarkets.Proto | MsgUpdateMarkets.Proto | MsgUpsertMarkets.Proto | MsgRemoveMarketAuthorities.Proto | MsgUpdateMarketmapParams.Proto;
|
|
15
|
+
type Amino = MsgCreateMarkets.Amino | MsgUpdateMarkets.Amino | MsgUpsertMarkets.Amino | MsgRemoveMarkets.Amino | MsgRemoveMarketAuthorities.Amino | MsgUpdateMarketmapParams.Amino;
|
|
16
|
+
type Data = MsgCreateMarkets.Data | MsgUpdateMarkets.Data | MsgUpsertMarkets.Data | MsgRemoveMarkets.Data | MsgRemoveMarketAuthorities.Data | MsgUpdateMarketmapParams.Data;
|
|
17
|
+
type Proto = MsgCreateMarkets.Proto | MsgUpdateMarkets.Proto | MsgUpsertMarkets.Proto | MsgRemoveMarkets.Proto | MsgRemoveMarketAuthorities.Proto | MsgUpdateMarketmapParams.Proto;
|
|
16
18
|
}
|
|
@@ -6,8 +6,7 @@ import { MsgBurn as MsgBurn_pb } from '@initia/initia.proto/miniwasm/tokenfactor
|
|
|
6
6
|
export declare class MsgBurn extends JSONSerializable<MsgBurn.Amino, MsgBurn.Data, MsgBurn.Proto> {
|
|
7
7
|
sender: AccAddress;
|
|
8
8
|
amount: Coin;
|
|
9
|
-
|
|
10
|
-
constructor(sender: AccAddress, amount: Coin, burn_from_address: AccAddress);
|
|
9
|
+
constructor(sender: AccAddress, amount: Coin);
|
|
11
10
|
static fromAmino(data: MsgBurn.Amino): MsgBurn;
|
|
12
11
|
toAmino(): MsgBurn.Amino;
|
|
13
12
|
static fromData(data: MsgBurn.Data): MsgBurn;
|
|
@@ -23,14 +22,12 @@ export declare namespace MsgBurn {
|
|
|
23
22
|
value: {
|
|
24
23
|
sender: AccAddress;
|
|
25
24
|
amount: Coin.Amino;
|
|
26
|
-
burn_from_address: AccAddress;
|
|
27
25
|
};
|
|
28
26
|
}
|
|
29
27
|
interface Data {
|
|
30
28
|
'@type': '/miniwasm.tokenfactory.v1.MsgBurn';
|
|
31
29
|
sender: AccAddress;
|
|
32
30
|
amount: Coin.Data;
|
|
33
|
-
burn_from_address: AccAddress;
|
|
34
31
|
}
|
|
35
32
|
type Proto = MsgBurn_pb;
|
|
36
33
|
}
|
|
@@ -4,7 +4,6 @@ import { MsgBurn } from './MsgBurn';
|
|
|
4
4
|
import { MsgChangeAdmin } from './MsgChangeAdmin';
|
|
5
5
|
import { MsgSetDenomMetadataWasm } from './MsgSetDenomMetadataWasm';
|
|
6
6
|
import { MsgSetBeforeSendHook } from './MsgSetBeforeSendHook';
|
|
7
|
-
import { MsgForceTransfer } from './MsgForceTransfer';
|
|
8
7
|
import { MsgUpdateTokenfactoryParams } from './MsgUpdateTokenfactoryParams';
|
|
9
8
|
export * from './MsgCreateDenom';
|
|
10
9
|
export * from './MsgMint';
|
|
@@ -12,11 +11,10 @@ export * from './MsgBurn';
|
|
|
12
11
|
export * from './MsgChangeAdmin';
|
|
13
12
|
export * from './MsgSetDenomMetadataWasm';
|
|
14
13
|
export * from './MsgSetBeforeSendHook';
|
|
15
|
-
export * from './MsgForceTransfer';
|
|
16
14
|
export * from './MsgUpdateTokenfactoryParams';
|
|
17
|
-
export type TokenfactoryMsg = MsgCreateDenom | MsgMint | MsgBurn | MsgChangeAdmin | MsgSetDenomMetadataWasm | MsgSetBeforeSendHook |
|
|
15
|
+
export type TokenfactoryMsg = MsgCreateDenom | MsgMint | MsgBurn | MsgChangeAdmin | MsgSetDenomMetadataWasm | MsgSetBeforeSendHook | MsgUpdateTokenfactoryParams;
|
|
18
16
|
export declare namespace TokenfactoryMsg {
|
|
19
|
-
type Amino = MsgCreateDenom.Amino | MsgMint.Amino | MsgBurn.Amino | MsgChangeAdmin.Amino | MsgSetDenomMetadataWasm.Amino | MsgSetBeforeSendHook.Amino |
|
|
20
|
-
type Data = MsgCreateDenom.Data | MsgMint.Data | MsgBurn.Data | MsgChangeAdmin.Data | MsgSetDenomMetadataWasm.Data | MsgSetBeforeSendHook.Data |
|
|
21
|
-
type Proto = MsgCreateDenom.Proto | MsgMint.Proto | MsgBurn.Proto | MsgChangeAdmin.Proto | MsgSetDenomMetadataWasm.Proto | MsgSetBeforeSendHook.Proto |
|
|
17
|
+
type Amino = MsgCreateDenom.Amino | MsgMint.Amino | MsgBurn.Amino | MsgChangeAdmin.Amino | MsgSetDenomMetadataWasm.Amino | MsgSetBeforeSendHook.Amino | MsgUpdateTokenfactoryParams.Amino;
|
|
18
|
+
type Data = MsgCreateDenom.Data | MsgMint.Data | MsgBurn.Data | MsgChangeAdmin.Data | MsgSetDenomMetadataWasm.Data | MsgSetBeforeSendHook.Data | MsgUpdateTokenfactoryParams.Data;
|
|
19
|
+
type Proto = MsgCreateDenom.Proto | MsgMint.Proto | MsgBurn.Proto | MsgChangeAdmin.Proto | MsgSetDenomMetadataWasm.Proto | MsgSetBeforeSendHook.Proto | MsgUpdateTokenfactoryParams.Proto;
|
|
22
20
|
}
|