@initia/initia.js 0.2.20 → 0.2.22
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/README.md +30 -31
- package/dist/TransportWebHID-BJGOHoD4.js +1 -0
- package/dist/TransportWebHID-BpNQALzF.mjs +154 -0
- package/dist/TransportWebUSB-Bog8kAV9.js +1 -0
- package/dist/TransportWebUSB-Bs9AHNsu.mjs +196 -0
- package/dist/client/index.d.ts +0 -1
- package/dist/client/rest/APIRequester.d.ts +1 -0
- package/dist/client/rest/Wallet.d.ts +1 -0
- package/dist/client/rest/api/AuthzAPI.d.ts +1 -1
- package/dist/client/rest/api/EvmAPI.d.ts +4 -4
- package/dist/client/rest/api/ForwardingAPI.d.ts +2 -1
- package/dist/client/rest/api/GovAPI.d.ts +4 -4
- package/dist/client/rest/api/GroupAPI.d.ts +7 -7
- package/dist/client/rest/api/IbcAPI.d.ts +2 -2
- package/dist/client/rest/api/IbcNftAPI.d.ts +1 -1
- package/dist/client/rest/api/IbcPermAPI.d.ts +1 -1
- package/dist/client/rest/api/IbcTransferAPI.d.ts +1 -11
- package/dist/client/rest/api/MoveAPI.d.ts +12 -20
- package/dist/client/rest/api/MstakingAPI.d.ts +1 -1
- package/dist/client/rest/api/OpchildAPI.d.ts +1 -1
- package/dist/client/rest/api/OphostAPI.d.ts +10 -10
- package/dist/client/rest/api/SlashingAPI.d.ts +4 -22
- package/dist/client/rest/api/TxAPI.d.ts +3 -3
- package/dist/client/rest/api/WasmAPI.d.ts +4 -4
- package/dist/core/Duration.d.ts +1 -2
- package/dist/core/auth/BaseAccount.d.ts +2 -2
- package/dist/core/bank/msgs/MsgMultiSend.d.ts +8 -8
- package/dist/core/crisis/msgs/MsgVerifyInvariant.d.ts +7 -7
- package/dist/core/gov/Vote.d.ts +2 -2
- package/dist/core/ibc/applications/transfer/index.d.ts +1 -0
- package/dist/core/ibc/core/client/index.d.ts +1 -0
- package/dist/core/ibc/core/client/msgs/tendermint/crypto.d.ts +2 -2
- package/dist/core/ibc/core/client/msgs/tendermint/types.d.ts +27 -28
- package/dist/core/ibc/lightclient/tendermint/Header.d.ts +5 -5
- package/dist/core/move/Module.d.ts +36 -0
- package/dist/core/move/index.d.ts +1 -0
- package/dist/core/move/msgs/MsgExecute.d.ts +2 -2
- package/dist/core/move/msgs/MsgPublish.d.ts +2 -2
- package/dist/core/move/msgs/MsgScript.d.ts +2 -2
- package/dist/core/mstaking/Redelegation.d.ts +3 -3
- package/dist/core/mstaking/UnbondingDelegation.d.ts +3 -3
- package/dist/core/mstaking/Validator.d.ts +9 -9
- package/dist/core/mstaking/msgs/MsgDelegate.d.ts +2 -2
- package/dist/core/mstaking/msgs/MsgEditValidator.d.ts +2 -2
- package/dist/core/mstaking/msgs/MsgUndelegate.d.ts +2 -2
- package/dist/core/slashing/SlashingParams.d.ts +4 -4
- package/dist/core/slashing/ValidatorSigningInfo.d.ts +37 -0
- package/dist/core/slashing/index.d.ts +1 -0
- package/dist/core/tx/SignatureV2.d.ts +1 -1
- package/dist/index-BNBWMUWc.mjs +456 -0
- package/dist/index-BY4R60_E.js +2 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +11293 -9146
- package/dist/key/RawKey.d.ts +1 -1
- package/dist/util/bcs.d.ts +10 -10
- package/package.json +14 -18
- package/dist/TransportWebHID-BwOWyIog.mjs +0 -313
- package/dist/TransportWebHID-CVJmgfzo.js +0 -1
- package/dist/TransportWebUSB-BjylRdFj.mjs +0 -413
- package/dist/TransportWebUSB-V4VV5RPc.js +0 -1
- package/dist/client/LocalInitia.d.ts +0 -18
- package/dist/index-CGO7OOZz.js +0 -2
- package/dist/index-LYdmc_QU.mjs +0 -449
|
@@ -2,18 +2,18 @@ import { BaseAPI } from './BaseAPI';
|
|
|
2
2
|
import { AccAddress, GroupInfo, GroupMember, GroupPolicyInfo, GroupProposal, GroupVote } from '../../../core';
|
|
3
3
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
4
4
|
export declare class GroupAPI extends BaseAPI {
|
|
5
|
-
groupInfo(
|
|
5
|
+
groupInfo(group_id: number): Promise<GroupInfo>;
|
|
6
6
|
groupPolicyInfo(address: AccAddress): Promise<GroupPolicyInfo>;
|
|
7
|
-
groupMembers(
|
|
7
|
+
groupMembers(group_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupMember[], Pagination]>;
|
|
8
8
|
groupsByAdmin(admin: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupInfo[], Pagination]>;
|
|
9
|
-
groupPoliciesByGroup(
|
|
9
|
+
groupPoliciesByGroup(group_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupPolicyInfo[], Pagination]>;
|
|
10
10
|
groupPoliciesByAdmin(admin: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupPolicyInfo[], Pagination]>;
|
|
11
|
-
proposal(
|
|
11
|
+
proposal(proposal_id: number): Promise<GroupProposal>;
|
|
12
12
|
proposalsByGroupPolicy(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupProposal[], Pagination]>;
|
|
13
|
-
voteByProposalVoter(
|
|
14
|
-
votesByProposal(
|
|
13
|
+
voteByProposalVoter(proposal_id: number, voter: AccAddress): Promise<GroupVote>;
|
|
14
|
+
votesByProposal(proposal_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupVote[], Pagination]>;
|
|
15
15
|
votesByVoter(voter: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupVote[], Pagination]>;
|
|
16
16
|
groupsByMember(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupInfo[], Pagination]>;
|
|
17
|
-
tally(
|
|
17
|
+
tally(proposal_id: number): Promise<GroupProposal.FinalTallyResult>;
|
|
18
18
|
groups(params?: Partial<PaginationOptions & APIParams>): Promise<[GroupInfo[], Pagination]>;
|
|
19
19
|
}
|
|
@@ -37,11 +37,11 @@ export declare class IbcAPI extends BaseAPI {
|
|
|
37
37
|
clientStatus(client_id: string, params?: APIParams): Promise<string>;
|
|
38
38
|
consensusStates(client_id: string, params?: Partial<PaginationOptions & APIParams>): Promise<[ClientConsensusStates, Pagination]>;
|
|
39
39
|
consensusStateHeights(client_id: string, params?: Partial<PaginationOptions & APIParams>): Promise<[Height[], Pagination]>;
|
|
40
|
-
unreceivedPackets(
|
|
40
|
+
unreceivedPackets(port_id: string, channel_id: string, sequences: number[], params?: APIParams): Promise<{
|
|
41
41
|
sequences: string[];
|
|
42
42
|
height: Height;
|
|
43
43
|
}>;
|
|
44
|
-
unreceivedAcks(
|
|
44
|
+
unreceivedAcks(port_id: string, channel_id: string, sequences: number[], params?: APIParams): Promise<{
|
|
45
45
|
sequences: string[];
|
|
46
46
|
height: Height;
|
|
47
47
|
}>;
|
|
@@ -5,6 +5,6 @@ export declare class IbcNftAPI extends BaseAPI {
|
|
|
5
5
|
classTrace(hash: string): Promise<NftClassTrace>;
|
|
6
6
|
classTraces(params?: Partial<PaginationOptions & APIParams>): Promise<[NftClassTrace[], Pagination]>;
|
|
7
7
|
classHash(trace: string): Promise<string>;
|
|
8
|
-
parameters(params?: APIParams): Promise<IbcNftParams>;
|
|
9
8
|
escrowAddress(channel_id: string, port_id: string, params?: APIParams): Promise<string>;
|
|
9
|
+
parameters(params?: APIParams): Promise<IbcNftParams>;
|
|
10
10
|
}
|
|
@@ -8,5 +8,5 @@ export interface ChannelState {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class IbcPermAPI extends BaseAPI {
|
|
10
10
|
channelStates(params?: Partial<PaginationOptions & APIParams>): Promise<[ChannelState[], Pagination]>;
|
|
11
|
-
channelState(
|
|
11
|
+
channelState(channel_id: string, port_id: string): Promise<ChannelState>;
|
|
12
12
|
}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { BaseAPI } from './BaseAPI';
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
|
-
import { DenomTrace } from '../../../core';
|
|
4
|
-
export interface IbcTransferParams {
|
|
5
|
-
send_enabled: boolean;
|
|
6
|
-
receive_enabled: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare namespace IbcTransferParams {
|
|
9
|
-
interface Data {
|
|
10
|
-
send_enabled: boolean;
|
|
11
|
-
receive_enabled: boolean;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
3
|
+
import { DenomTrace, IbcTransferParams } from '../../../core';
|
|
14
4
|
export declare class IbcTransferAPI extends BaseAPI {
|
|
15
5
|
denomTrace(hash: string): Promise<DenomTrace>;
|
|
16
6
|
denomTraces(params?: Partial<PaginationOptions & APIParams>): Promise<[DenomTrace[], Pagination]>;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { BaseAPI } from './BaseAPI';
|
|
2
|
-
import { AccAddress, Denom, MoveParams } from '../../../core';
|
|
2
|
+
import { AccAddress, Denom, Module, MoveParams } from '../../../core';
|
|
3
3
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
4
|
-
import { UpgradePolicy } from '@initia/initia.proto/initia/move/v1/types';
|
|
5
|
-
export interface Module {
|
|
6
|
-
address: AccAddress;
|
|
7
|
-
module_name: string;
|
|
8
|
-
abi: string;
|
|
9
|
-
raw_bytes: string;
|
|
10
|
-
upgrade_policy: UpgradePolicy;
|
|
11
|
-
}
|
|
12
4
|
export interface Resource {
|
|
13
5
|
address: AccAddress;
|
|
14
6
|
struct_tag: string;
|
|
@@ -46,25 +38,25 @@ export interface VMEvent {
|
|
|
46
38
|
}
|
|
47
39
|
export declare class MoveAPI extends BaseAPI {
|
|
48
40
|
modules(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Module[], Pagination]>;
|
|
49
|
-
module(address: AccAddress,
|
|
50
|
-
viewFunction<T>(address: AccAddress, moduleName: string, functionName: string, typeArgs?: string[], args?: string[]): Promise<T>;
|
|
51
|
-
view(address: AccAddress, moduleName: string, functionName: string, typeArgs?: string[], args?: string[]): Promise<ViewResponse>;
|
|
52
|
-
viewBatch(requests: ViewRequest[]): Promise<ViewResponse[]>;
|
|
53
|
-
viewJSON(address: AccAddress, moduleName: string, functionName: string, typeArgs?: string[], args?: string[]): Promise<ViewResponse>;
|
|
54
|
-
viewBatchJSON(requests: ViewRequest[]): Promise<ViewResponse[]>;
|
|
41
|
+
module(address: AccAddress, module_name: string, params?: APIParams): Promise<Module>;
|
|
55
42
|
resources(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[{
|
|
56
43
|
type: string;
|
|
57
44
|
data: any;
|
|
58
45
|
}[], Pagination]>;
|
|
59
|
-
resource<T>(address: AccAddress,
|
|
46
|
+
resource<T>(address: AccAddress, struct_tag: string, params?: APIParams): Promise<{
|
|
60
47
|
type: string;
|
|
61
48
|
data: T;
|
|
62
49
|
}>;
|
|
50
|
+
tableInfo(address: AccAddress, params?: APIParams): Promise<TableInfo>;
|
|
51
|
+
tableEntries(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[TableEntry[], Pagination]>;
|
|
52
|
+
tableEntry(address: AccAddress, key_bytes: string, params?: APIParams): Promise<TableEntry>;
|
|
53
|
+
viewFunction<T>(address: AccAddress, module_name: string, function_name: string, type_args?: string[], args?: string[]): Promise<T>;
|
|
54
|
+
view(address: AccAddress, module_name: string, function_name: string, type_args?: string[], args?: string[]): Promise<ViewResponse>;
|
|
55
|
+
viewBatch(requests: ViewRequest[]): Promise<ViewResponse[]>;
|
|
56
|
+
viewJSON(address: AccAddress, module_name: string, function_name: string, type_args?: string[], args?: string[]): Promise<ViewResponse>;
|
|
57
|
+
viewBatchJSON(requests: ViewRequest[]): Promise<ViewResponse[]>;
|
|
58
|
+
scriptABI(code_bytes: string): Promise<ABI>;
|
|
63
59
|
denom(metadata: string, params?: APIParams): Promise<Denom>;
|
|
64
60
|
metadata(denom: Denom, params?: APIParams): Promise<string>;
|
|
65
61
|
parameters(params?: APIParams): Promise<MoveParams>;
|
|
66
|
-
scriptABI(codeBytes: string): Promise<ABI>;
|
|
67
|
-
tableInfo(address: AccAddress, params?: APIParams): Promise<TableInfo>;
|
|
68
|
-
tableEntries(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[TableEntry[], Pagination]>;
|
|
69
|
-
tableEntry(address: AccAddress, keyBytes: string, params?: APIParams): Promise<TableEntry>;
|
|
70
62
|
}
|
|
@@ -16,7 +16,7 @@ export declare class MstakingAPI extends BaseAPI {
|
|
|
16
16
|
delegation(delegator: AccAddress, validator: ValAddress): Promise<Delegation>;
|
|
17
17
|
unbondingDelegations(delegator?: AccAddress, validator?: ValAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[UnbondingDelegation[], Pagination]>;
|
|
18
18
|
unbondingDelegation(delegator?: AccAddress, validator?: ValAddress): Promise<UnbondingDelegation>;
|
|
19
|
-
redelegations(delegator: AccAddress,
|
|
19
|
+
redelegations(delegator: AccAddress, src_validator_addr?: ValAddress, dst_validator_addr?: ValAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Redelegation[], Pagination]>;
|
|
20
20
|
bondedValidators(delegator: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Validator[], Pagination]>;
|
|
21
21
|
validators(params?: Partial<PaginationOptions & APIParams>): Promise<[Validator[], Pagination]>;
|
|
22
22
|
validator(validator: ValAddress, params?: APIParams): Promise<Validator>;
|
|
@@ -3,7 +3,7 @@ import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
|
3
3
|
import { OpValidator, ValAddress, OpchildParams, BridgeInfo } from '../../../core';
|
|
4
4
|
export declare class OpchildAPI extends BaseAPI {
|
|
5
5
|
validators(params?: Partial<PaginationOptions & APIParams>): Promise<[OpValidator[], Pagination]>;
|
|
6
|
-
validator(
|
|
6
|
+
validator(validator_addr: ValAddress, params?: APIParams): Promise<OpValidator>;
|
|
7
7
|
bridgeInfo(params?: APIParams): Promise<BridgeInfo>;
|
|
8
8
|
nextL1Sequence(params?: APIParams): Promise<number>;
|
|
9
9
|
nextL2Sequence(params?: APIParams): Promise<number>;
|
|
@@ -19,15 +19,15 @@ export declare namespace OutputInfo {
|
|
|
19
19
|
}
|
|
20
20
|
export declare class OphostAPI extends BaseAPI {
|
|
21
21
|
bridgeInfos(params?: Partial<PaginationOptions & APIParams>): Promise<[BridgeInfo[], Pagination]>;
|
|
22
|
-
bridgeInfo(
|
|
23
|
-
tokenPairs(
|
|
24
|
-
tokenPairByL1Denom(
|
|
25
|
-
tokenPairByL2Denom(
|
|
26
|
-
lastFinalizedOutput(
|
|
27
|
-
outputInfos(
|
|
28
|
-
outputInfo(
|
|
29
|
-
withdrawalClaimed(
|
|
30
|
-
nextL1Sequence(
|
|
31
|
-
batchInfos(
|
|
22
|
+
bridgeInfo(bridge_id: number, params?: APIParams): Promise<BridgeInfo>;
|
|
23
|
+
tokenPairs(bridge_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[TokenPair[], Pagination]>;
|
|
24
|
+
tokenPairByL1Denom(bridge_id: number, l1_denom: string, params?: APIParams): Promise<TokenPair>;
|
|
25
|
+
tokenPairByL2Denom(bridge_id: number, l2_denom: string, params?: APIParams): Promise<TokenPair>;
|
|
26
|
+
lastFinalizedOutput(bridge_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<OutputInfo>;
|
|
27
|
+
outputInfos(bridge_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[OutputInfo[], Pagination]>;
|
|
28
|
+
outputInfo(bridge_id: number, output_index: number, params?: APIParams): Promise<OutputInfo>;
|
|
29
|
+
withdrawalClaimed(bridge_id: number, withdrawal_hash: string, params?: APIParams): Promise<boolean>;
|
|
30
|
+
nextL1Sequence(bridge_id: number, params?: APIParams): Promise<number>;
|
|
31
|
+
batchInfos(bridge_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[BatchInfoWithOutput[], Pagination]>;
|
|
32
32
|
parameters(params?: APIParams): Promise<OphostParams>;
|
|
33
33
|
}
|
|
@@ -1,26 +1,8 @@
|
|
|
1
1
|
import { BaseAPI } from './BaseAPI';
|
|
2
|
-
import { ValConsAddress, SlashingParams } from '../../../core';
|
|
3
|
-
import { APIParams } from '../APIRequester';
|
|
4
|
-
export interface SigningInfo {
|
|
5
|
-
address: ValConsAddress;
|
|
6
|
-
start_height: number;
|
|
7
|
-
index_offset: number;
|
|
8
|
-
jailed_until: Date;
|
|
9
|
-
tombstoned: boolean;
|
|
10
|
-
missed_blocks_counter: number;
|
|
11
|
-
}
|
|
12
|
-
export declare namespace SigningInfo {
|
|
13
|
-
interface Data {
|
|
14
|
-
address: string;
|
|
15
|
-
start_height: string;
|
|
16
|
-
index_offset: string;
|
|
17
|
-
jailed_until: string;
|
|
18
|
-
tombstoned: boolean;
|
|
19
|
-
missed_blocks_counter: string;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
2
|
+
import { ValConsAddress, SlashingParams, ValidatorSigningInfo } from '../../../core';
|
|
3
|
+
import { APIParams, Pagination } from '../APIRequester';
|
|
22
4
|
export declare class SlashingAPI extends BaseAPI {
|
|
23
|
-
|
|
24
|
-
|
|
5
|
+
signingInfos(params?: APIParams): Promise<[ValidatorSigningInfo[], Pagination]>;
|
|
6
|
+
signingInfo(val_cons_address: ValConsAddress, params?: APIParams): Promise<ValidatorSigningInfo>;
|
|
25
7
|
parameters(params?: APIParams): Promise<SlashingParams>;
|
|
26
8
|
}
|
|
@@ -164,7 +164,7 @@ export interface TxSearchOptions extends PaginationOptions {
|
|
|
164
164
|
export declare class TxAPI extends BaseAPI {
|
|
165
165
|
rest: RESTClient;
|
|
166
166
|
constructor(rest: RESTClient);
|
|
167
|
-
txInfo(
|
|
167
|
+
txInfo(tx_hash: string, params?: APIParams): Promise<TxInfo>;
|
|
168
168
|
create(signers: SignerOptions[], options: CreateTxOptions): Promise<Tx>;
|
|
169
169
|
txInfosByHeight(height: number | undefined): Promise<TxInfo[]>;
|
|
170
170
|
estimateFee(signers: SignerData[], options: CreateTxOptions): Promise<Fee>;
|
|
@@ -173,13 +173,13 @@ export declare class TxAPI extends BaseAPI {
|
|
|
173
173
|
signers?: SignerData[];
|
|
174
174
|
}): Promise<string>;
|
|
175
175
|
static encode(tx: Tx): string;
|
|
176
|
-
static decode(
|
|
176
|
+
static decode(encoded_tx: string): Tx;
|
|
177
177
|
static hash(tx: Tx): string;
|
|
178
178
|
private _broadcast;
|
|
179
179
|
broadcast(tx: Tx | string, timeout?: number): Promise<WaitTxBroadcastResult>;
|
|
180
180
|
broadcastSync(tx: Tx | string): Promise<SyncTxBroadcastResult>;
|
|
181
181
|
broadcastAsync(tx: Tx | string): Promise<AsyncTxBroadcastResult>;
|
|
182
182
|
search(options: Partial<TxSearchOptions>): Promise<TxSearchResult>;
|
|
183
|
-
searchEvents(
|
|
183
|
+
searchEvents(module_addr: string, module_name: string, start_height: number, end_height: number): Promise<Event[]>;
|
|
184
184
|
}
|
|
185
185
|
export {};
|
|
@@ -63,12 +63,12 @@ export declare namespace CodeInfo {
|
|
|
63
63
|
export declare class WasmAPI extends BaseAPI {
|
|
64
64
|
contractInfo(address: AccAddress, params?: APIParams): Promise<ContractInfo>;
|
|
65
65
|
contractHistory(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[ContractCodeHistoryEntry[], Pagination]>;
|
|
66
|
-
contractsByCode(
|
|
66
|
+
contractsByCode(code_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[string[], Pagination]>;
|
|
67
67
|
allContractState(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Model[], Pagination]>;
|
|
68
|
-
rawContractState(address: AccAddress,
|
|
69
|
-
smartContractState<T>(address: AccAddress,
|
|
68
|
+
rawContractState(address: AccAddress, query_data: string, params?: APIParams): Promise<string>;
|
|
69
|
+
smartContractState<T>(address: AccAddress, query_data: string, params?: APIParams): Promise<T>;
|
|
70
70
|
codeInfos(params?: Partial<PaginationOptions & APIParams>): Promise<[CodeInfo[], Pagination]>;
|
|
71
|
-
codeInfo(
|
|
71
|
+
codeInfo(code_id: number, params?: APIParams): Promise<{
|
|
72
72
|
code_info: CodeInfo;
|
|
73
73
|
data: string;
|
|
74
74
|
}>;
|
package/dist/core/Duration.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Duration as Duration_pb } from '@initia/initia.proto/google/protobuf/duration';
|
|
2
|
-
import { default as Long } from 'long';
|
|
3
2
|
export declare class Duration {
|
|
4
|
-
seconds:
|
|
3
|
+
seconds: number;
|
|
5
4
|
nanos: number;
|
|
6
5
|
constructor(seconds: number, nanos?: number);
|
|
7
6
|
static fromString(str: string): Duration;
|
|
@@ -12,12 +12,12 @@ export declare class BaseAccount extends JSONSerializable<BaseAccount.Amino, Bas
|
|
|
12
12
|
getAccountNumber(): number;
|
|
13
13
|
getSequenceNumber(): number;
|
|
14
14
|
getPublicKey(): PublicKey | undefined;
|
|
15
|
-
toAmino(): BaseAccount.Amino;
|
|
16
15
|
static fromAmino(data: BaseAccount.Amino): BaseAccount;
|
|
16
|
+
toAmino(): BaseAccount.Amino;
|
|
17
17
|
static fromData(data: BaseAccount.Data): BaseAccount;
|
|
18
18
|
toData(): BaseAccount.Data;
|
|
19
|
-
toProto(): BaseAccount.Proto;
|
|
20
19
|
static fromProto(baseAccountProto: BaseAccount.Proto): BaseAccount;
|
|
20
|
+
toProto(): BaseAccount.Proto;
|
|
21
21
|
packAny(): Any;
|
|
22
22
|
static unpackAny(pubkeyAny: Any): BaseAccount;
|
|
23
23
|
}
|
|
@@ -34,24 +34,24 @@ export declare namespace MsgMultiSend {
|
|
|
34
34
|
class Input extends JSONSerializable<Input.Amino, Input.Data, Input.Proto> {
|
|
35
35
|
address: AccAddress;
|
|
36
36
|
coins: Coins;
|
|
37
|
-
constructor(address: AccAddress,
|
|
38
|
-
toAmino(): Input.Amino;
|
|
37
|
+
constructor(address: AccAddress, coins_input: Coins.Input);
|
|
39
38
|
static fromAmino(data: Input.Amino): Input;
|
|
40
|
-
|
|
39
|
+
toAmino(): Input.Amino;
|
|
41
40
|
static fromData(data: Input.Data): Input;
|
|
42
|
-
|
|
41
|
+
toData(): Input.Data;
|
|
43
42
|
static fromProto(proto: Input.Proto): Input;
|
|
43
|
+
toProto(): Input.Proto;
|
|
44
44
|
}
|
|
45
45
|
class Output extends JSONSerializable<Output.Amino, Output.Data, Output.Proto> {
|
|
46
46
|
address: AccAddress;
|
|
47
47
|
coins: Coins;
|
|
48
|
-
constructor(address: AccAddress,
|
|
49
|
-
toAmino(): Output.Amino;
|
|
48
|
+
constructor(address: AccAddress, coins_input: Coins.Input);
|
|
50
49
|
static fromAmino(data: Output.Amino): Output;
|
|
51
|
-
|
|
50
|
+
toAmino(): Output.Amino;
|
|
52
51
|
static fromData(data: Output.Data): Output;
|
|
53
|
-
|
|
52
|
+
toData(): Output.Data;
|
|
54
53
|
static fromProto(proto: Output.Proto): Output;
|
|
54
|
+
toProto(): Output.Proto;
|
|
55
55
|
}
|
|
56
56
|
namespace Input {
|
|
57
57
|
interface Amino {
|
|
@@ -4,9 +4,9 @@ import { MsgVerifyInvariant as MsgVerifyInvariant_pb } from '@initia/initia.prot
|
|
|
4
4
|
import { AccAddress } from '../../bech32';
|
|
5
5
|
export declare class MsgVerifyInvariant extends JSONSerializable<MsgVerifyInvariant.Amino, MsgVerifyInvariant.Data, MsgVerifyInvariant.Proto> {
|
|
6
6
|
sender: AccAddress;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
constructor(sender: AccAddress,
|
|
7
|
+
invariant_module_name: string;
|
|
8
|
+
invariant_route: string;
|
|
9
|
+
constructor(sender: AccAddress, invariant_module_name: string, invariant_route: string);
|
|
10
10
|
static fromAmino(data: MsgVerifyInvariant.Amino): MsgVerifyInvariant;
|
|
11
11
|
toAmino(): MsgVerifyInvariant.Amino;
|
|
12
12
|
static fromData(data: MsgVerifyInvariant.Data): MsgVerifyInvariant;
|
|
@@ -21,15 +21,15 @@ export declare namespace MsgVerifyInvariant {
|
|
|
21
21
|
type: 'cosmos-sdk/MsgVerifyInvariant';
|
|
22
22
|
value: {
|
|
23
23
|
sender: AccAddress;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
invariant_module_name: string;
|
|
25
|
+
invariant_route: string;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
interface Data {
|
|
29
29
|
'@type': '/cosmos.crisis.v1beta1.MsgVerifyInvariant';
|
|
30
30
|
sender: AccAddress;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
invariant_module_name: string;
|
|
32
|
+
invariant_route: string;
|
|
33
33
|
}
|
|
34
34
|
type Proto = MsgVerifyInvariant_pb;
|
|
35
35
|
}
|
package/dist/core/gov/Vote.d.ts
CHANGED
|
@@ -33,8 +33,8 @@ export declare namespace Vote {
|
|
|
33
33
|
}
|
|
34
34
|
export declare class WeightedVoteOption extends JSONSerializable<WeightedVoteOption.Amino, WeightedVoteOption.Data, WeightedVoteOption.Proto> {
|
|
35
35
|
option: VoteOption;
|
|
36
|
-
weight:
|
|
37
|
-
constructor(option: VoteOption, weight: number
|
|
36
|
+
weight: number;
|
|
37
|
+
constructor(option: VoteOption, weight: number);
|
|
38
38
|
static fromAmino(data: WeightedVoteOption.Amino): WeightedVoteOption;
|
|
39
39
|
toAmino(): WeightedVoteOption.Amino;
|
|
40
40
|
static fromData(data: WeightedVoteOption.Data): WeightedVoteOption;
|
|
@@ -4,9 +4,9 @@ import { PublicKey as PublicKey_pb } from '@initia/initia.proto/tendermint/crypt
|
|
|
4
4
|
export declare class Proof extends JSONSerializable<any, Proof.Data, Proof.Proto> {
|
|
5
5
|
total: number;
|
|
6
6
|
index: number;
|
|
7
|
-
|
|
7
|
+
leaf_hash: string;
|
|
8
8
|
aunts: string[];
|
|
9
|
-
constructor(total: number, index: number,
|
|
9
|
+
constructor(total: number, index: number, leaf_hash: string, aunts: string[]);
|
|
10
10
|
static fromAmino(_: any): Proof;
|
|
11
11
|
toAmino(): any;
|
|
12
12
|
static fromData(data: Proof.Data): Proof;
|
|
@@ -3,23 +3,22 @@ import { Header as Header_pb, SignedHeader as SignedHeader_pb, BlockID as BlockI
|
|
|
3
3
|
import { Validator as Validator_pb, ValidatorSet as ValidatorSet_pb, BlockIDFlag } from '@initia/initia.proto/tendermint/types/validator';
|
|
4
4
|
import { Consensus } from './version';
|
|
5
5
|
import { PublicKey } from './crypto';
|
|
6
|
-
import { default as Long } from 'long';
|
|
7
6
|
export declare class Header extends JSONSerializable<any, Header.Data, Header.Proto> {
|
|
8
7
|
version: Consensus | undefined;
|
|
9
|
-
|
|
10
|
-
height:
|
|
8
|
+
chain_id: string;
|
|
9
|
+
height: number;
|
|
11
10
|
time: Date | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
constructor(version: Consensus | undefined,
|
|
11
|
+
last_block_id: BlockID | undefined;
|
|
12
|
+
last_commit_hash: string;
|
|
13
|
+
data_hash: string;
|
|
14
|
+
validators_hash: string;
|
|
15
|
+
next_validators_hash: string;
|
|
16
|
+
consensus_hash: string;
|
|
17
|
+
app_hash: string;
|
|
18
|
+
last_results_hash: string;
|
|
19
|
+
evidence_hash: string;
|
|
20
|
+
proposer_address: string;
|
|
21
|
+
constructor(version: Consensus | undefined, chain_id: string, height: number, time: Date | undefined, last_block_id: BlockID | undefined, last_commit_hash: string, data_hash: string, validators_hash: string, next_validators_hash: string, consensus_hash: string, app_hash: string, last_results_hash: string, evidence_hash: string, proposer_address: string);
|
|
23
22
|
static fromAmino(_: any): Header;
|
|
24
23
|
toAmino(): any;
|
|
25
24
|
static fromData(data: Header.Data): Header;
|
|
@@ -66,8 +65,8 @@ export declare namespace SignedHeader {
|
|
|
66
65
|
}
|
|
67
66
|
export declare class BlockID extends JSONSerializable<any, BlockID.Data, BlockID.Proto> {
|
|
68
67
|
hash: string;
|
|
69
|
-
|
|
70
|
-
constructor(hash: string,
|
|
68
|
+
part_set_header?: PartSetHeader | undefined;
|
|
69
|
+
constructor(hash: string, part_set_header?: PartSetHeader | undefined);
|
|
71
70
|
static fromAmino(_: any): BlockID;
|
|
72
71
|
toAmino(): any;
|
|
73
72
|
static fromData(data: BlockID.Data): BlockID;
|
|
@@ -101,11 +100,11 @@ export declare namespace PartSetHeader {
|
|
|
101
100
|
type Proto = PartSetHeader_pb;
|
|
102
101
|
}
|
|
103
102
|
export declare class Commit extends JSONSerializable<any, Commit.Data, Commit.Proto> {
|
|
104
|
-
height:
|
|
103
|
+
height: number;
|
|
105
104
|
round: number;
|
|
106
|
-
|
|
105
|
+
block_id: BlockID | undefined;
|
|
107
106
|
signatures: CommitSig[];
|
|
108
|
-
constructor(height:
|
|
107
|
+
constructor(height: number, round: number, block_id: BlockID | undefined, signatures: CommitSig[]);
|
|
109
108
|
static fromAmino(_: any): Commit;
|
|
110
109
|
toAmino(): any;
|
|
111
110
|
static fromData(data: Commit.Data): Commit;
|
|
@@ -123,11 +122,11 @@ export declare namespace Commit {
|
|
|
123
122
|
type Proto = Commit_pb;
|
|
124
123
|
}
|
|
125
124
|
export declare class CommitSig extends JSONSerializable<any, CommitSig.Data, CommitSig.Proto> {
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
block_id_flag: BlockIDFlag;
|
|
126
|
+
validator_address?: string | undefined;
|
|
128
127
|
timestamp?: Date | undefined;
|
|
129
128
|
signature?: string | undefined;
|
|
130
|
-
constructor(
|
|
129
|
+
constructor(block_id_flag: BlockIDFlag, validator_address?: string | undefined, timestamp?: Date | undefined, signature?: string | undefined);
|
|
131
130
|
static fromAmino(_: any): CommitSig;
|
|
132
131
|
toAmino(): any;
|
|
133
132
|
static fromData(data: CommitSig.Data): CommitSig;
|
|
@@ -147,8 +146,8 @@ export declare namespace CommitSig {
|
|
|
147
146
|
export declare class ValidatorSet extends JSONSerializable<any, ValidatorSet.Data, ValidatorSet.Proto> {
|
|
148
147
|
validators: Validator[];
|
|
149
148
|
proposer: Validator | undefined;
|
|
150
|
-
|
|
151
|
-
constructor(validators: Validator[], proposer: Validator | undefined,
|
|
149
|
+
total_voting_power: number;
|
|
150
|
+
constructor(validators: Validator[], proposer: Validator | undefined, total_voting_power: number);
|
|
152
151
|
static fromAmino(_: any): ValidatorSet;
|
|
153
152
|
toAmino(): any;
|
|
154
153
|
static fromData(data: ValidatorSet.Data): ValidatorSet;
|
|
@@ -166,10 +165,10 @@ export declare namespace ValidatorSet {
|
|
|
166
165
|
}
|
|
167
166
|
export declare class Validator extends JSONSerializable<any, Validator.Data, Validator.Proto> {
|
|
168
167
|
address: string;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
constructor(address: string,
|
|
168
|
+
pub_key: PublicKey | undefined;
|
|
169
|
+
voting_power: number;
|
|
170
|
+
proposer_priority: number;
|
|
171
|
+
constructor(address: string, pub_key: PublicKey | undefined, voting_power: number, proposer_priority: number);
|
|
173
172
|
static fromAmino(_: any): Validator;
|
|
174
173
|
toAmino(): any;
|
|
175
174
|
static fromData(data: Validator.Data): Validator;
|
|
@@ -4,11 +4,11 @@ import { Height } from '../../core/client/Height';
|
|
|
4
4
|
import { SignedHeader, ValidatorSet } from '../../core/client/msgs/tendermint/types';
|
|
5
5
|
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
6
6
|
export declare class Header extends JSONSerializable<any, Header.Data, Header.Proto> {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
7
|
+
signed_header?: SignedHeader | undefined;
|
|
8
|
+
validator_set?: ValidatorSet | undefined;
|
|
9
|
+
trusted_height?: Height | undefined;
|
|
10
|
+
trusted_validators?: ValidatorSet | undefined;
|
|
11
|
+
constructor(signed_header?: SignedHeader | undefined, validator_set?: ValidatorSet | undefined, trusted_height?: Height | undefined, trusted_validators?: ValidatorSet | undefined);
|
|
12
12
|
static fromAmino(_: any): Header;
|
|
13
13
|
toAmino(): any;
|
|
14
14
|
static fromData(data: Header.Data): Header;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../util/json';
|
|
2
|
+
import { AccAddress } from '../bech32';
|
|
3
|
+
import { Module as Module_pb, UpgradePolicy } from '@initia/initia.proto/initia/move/v1/types';
|
|
4
|
+
export declare class Module extends JSONSerializable<Module.Amino, Module.Data, Module.Proto> {
|
|
5
|
+
address: AccAddress;
|
|
6
|
+
module_name: string;
|
|
7
|
+
abi: string;
|
|
8
|
+
raw_bytes: string;
|
|
9
|
+
upgrade_policy: Module.Policy;
|
|
10
|
+
constructor(address: AccAddress, module_name: string, abi: string, raw_bytes: string, upgrade_policy: Module.Policy);
|
|
11
|
+
static fromAmino(data: Module.Amino): Module;
|
|
12
|
+
toAmino(): Module.Amino;
|
|
13
|
+
static fromData(data: Module.Data): Module;
|
|
14
|
+
toData(): Module.Data;
|
|
15
|
+
static fromProto(data: Module.Proto): Module;
|
|
16
|
+
toProto(): Module.Proto;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace Module {
|
|
19
|
+
type Policy = UpgradePolicy;
|
|
20
|
+
const Policy: typeof UpgradePolicy;
|
|
21
|
+
interface Amino {
|
|
22
|
+
address: AccAddress;
|
|
23
|
+
module_name: string;
|
|
24
|
+
abi: string;
|
|
25
|
+
raw_bytes: string;
|
|
26
|
+
upgrade_policy: string;
|
|
27
|
+
}
|
|
28
|
+
interface Data {
|
|
29
|
+
address: AccAddress;
|
|
30
|
+
module_name: string;
|
|
31
|
+
abi: string;
|
|
32
|
+
raw_bytes: string;
|
|
33
|
+
upgrade_policy: string;
|
|
34
|
+
}
|
|
35
|
+
type Proto = Module_pb;
|
|
36
|
+
}
|
|
@@ -12,12 +12,12 @@ export declare class MsgExecute extends JSONSerializable<MsgExecute.Amino, MsgEx
|
|
|
12
12
|
constructor(sender: AccAddress, module_address: AccAddress, module_name: string, function_name: string, type_args?: string[], args?: string[]);
|
|
13
13
|
static fromAmino(data: MsgExecute.Amino): MsgExecute;
|
|
14
14
|
toAmino(): MsgExecute.Amino;
|
|
15
|
+
static fromData(data: MsgExecute.Data): MsgExecute;
|
|
16
|
+
toData(): MsgExecute.Data;
|
|
15
17
|
static fromProto(data: MsgExecute.Proto): MsgExecute;
|
|
16
18
|
toProto(): MsgExecute.Proto;
|
|
17
19
|
packAny(): Any;
|
|
18
20
|
static unpackAny(msgAny: Any): MsgExecute;
|
|
19
|
-
static fromData(data: MsgExecute.Data): MsgExecute;
|
|
20
|
-
toData(): MsgExecute.Data;
|
|
21
21
|
}
|
|
22
22
|
export declare namespace MsgExecute {
|
|
23
23
|
interface Amino {
|
|
@@ -10,12 +10,12 @@ export declare class MsgPublish extends JSONSerializable<MsgPublish.Amino, MsgPu
|
|
|
10
10
|
constructor(sender: AccAddress, code_bytes: string[], upgrade_policy: MsgPublish.Policy);
|
|
11
11
|
static fromAmino(data: MsgPublish.Amino): MsgPublish;
|
|
12
12
|
toAmino(): MsgPublish.Amino;
|
|
13
|
+
static fromData(data: MsgPublish.Data): MsgPublish;
|
|
14
|
+
toData(): MsgPublish.Data;
|
|
13
15
|
static fromProto(proto: MsgPublish.Proto): MsgPublish;
|
|
14
16
|
toProto(): MsgPublish.Proto;
|
|
15
17
|
packAny(): Any;
|
|
16
18
|
static unpackAny(msgAny: Any): MsgPublish;
|
|
17
|
-
static fromData(data: MsgPublish.Data): MsgPublish;
|
|
18
|
-
toData(): MsgPublish.Data;
|
|
19
19
|
}
|
|
20
20
|
export declare namespace MsgPublish {
|
|
21
21
|
type Policy = UpgradePolicy;
|
|
@@ -10,12 +10,12 @@ export declare class MsgScript extends JSONSerializable<MsgScript.Amino, MsgScri
|
|
|
10
10
|
constructor(sender: AccAddress, code_bytes: string, type_args?: string[], args?: string[]);
|
|
11
11
|
static fromAmino(data: MsgScript.Amino): MsgScript;
|
|
12
12
|
toAmino(): MsgScript.Amino;
|
|
13
|
+
static fromData(data: MsgScript.Data): MsgScript;
|
|
14
|
+
toData(): MsgScript.Data;
|
|
13
15
|
static fromProto(data: MsgScript.Proto): MsgScript;
|
|
14
16
|
toProto(): MsgScript.Proto;
|
|
15
17
|
packAny(): Any;
|
|
16
18
|
static unpackAny(msgAny: Any): MsgScript;
|
|
17
|
-
static fromData(data: MsgScript.Data): MsgScript;
|
|
18
|
-
toData(): MsgScript.Data;
|
|
19
19
|
}
|
|
20
20
|
export declare namespace MsgScript {
|
|
21
21
|
interface Amino {
|
|
@@ -40,12 +40,12 @@ export declare namespace Redelegation {
|
|
|
40
40
|
shares_dst: Coins;
|
|
41
41
|
balance: Coins;
|
|
42
42
|
constructor(initial_balance: Coins.Input, balance: Coins.Input, shares_dst: Coins.Input, creation_height: number, completion_time: Date);
|
|
43
|
-
toAmino(): Entry.Amino;
|
|
44
43
|
static fromAmino(data: Entry.Amino): Entry;
|
|
45
|
-
|
|
44
|
+
toAmino(): Entry.Amino;
|
|
46
45
|
static fromData(data: Entry.Data): Entry;
|
|
47
|
-
|
|
46
|
+
toData(): Entry.Data;
|
|
48
47
|
static fromProto(proto: Entry.Proto): Entry;
|
|
48
|
+
toProto(): Entry.Proto;
|
|
49
49
|
}
|
|
50
50
|
namespace Entry {
|
|
51
51
|
interface Amino {
|