@initia/initia.js 1.0.6 → 1.0.7
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/APIRequester.d.ts +4 -4
- package/dist/client/rest/api/AuctionAPI.d.ts +1 -1
- package/dist/client/rest/api/AuthAPI.d.ts +3 -3
- package/dist/client/rest/api/AuthzAPI.d.ts +3 -3
- package/dist/client/rest/api/BankAPI.d.ts +5 -5
- package/dist/client/rest/api/DistributionAPI.d.ts +7 -7
- package/dist/client/rest/api/EvidenceAPI.d.ts +2 -2
- package/dist/client/rest/api/EvmAPI.d.ts +8 -8
- package/dist/client/rest/api/FeeGrantAPI.d.ts +4 -4
- package/dist/client/rest/api/ForwardingAPI.d.ts +3 -3
- package/dist/client/rest/api/GovAPI.d.ts +7 -7
- package/dist/client/rest/api/GroupAPI.d.ts +14 -14
- package/dist/client/rest/api/IbcAPI.d.ts +13 -13
- package/dist/client/rest/api/IbcHooksAPI.d.ts +3 -3
- package/dist/client/rest/api/IbcNftAPI.d.ts +5 -5
- package/dist/client/rest/api/IbcPermAPI.d.ts +2 -2
- package/dist/client/rest/api/IbcTransferAPI.d.ts +5 -5
- package/dist/client/rest/api/InterTxAPI.d.ts +2 -1
- package/dist/client/rest/api/MarketmapAPI.d.ts +5 -5
- package/dist/client/rest/api/MoveAPI.d.ts +16 -16
- package/dist/client/rest/api/MstakingAPI.d.ts +11 -11
- package/dist/client/rest/api/OpchildAPI.d.ts +7 -7
- package/dist/client/rest/api/OphostAPI.d.ts +12 -12
- package/dist/client/rest/api/OracleAPI.d.ts +2 -2
- package/dist/client/rest/api/RewardAPI.d.ts +3 -3
- package/dist/client/rest/api/SlashingAPI.d.ts +4 -4
- package/dist/client/rest/api/TendermintAPI.d.ts +5 -5
- package/dist/client/rest/api/TokenfactoryAPI.d.ts +4 -4
- package/dist/client/rest/api/TxAPI.d.ts +10 -10
- package/dist/client/rest/api/UpgradeAPI.d.ts +3 -3
- package/dist/client/rest/api/WasmAPI.d.ts +11 -11
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +6357 -6154
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateAxiosDefaults } from 'axios';
|
|
2
2
|
import { OrderBy as OrderBy_pb } from '@initia/initia.proto/cosmos/tx/v1beta1/service';
|
|
3
3
|
export type APIParams = Record<string, string | number | null | undefined>;
|
|
4
4
|
export interface Pagination {
|
|
@@ -21,7 +21,7 @@ export declare class APIRequester {
|
|
|
21
21
|
constructor(baseURL: string, config?: CreateAxiosDefaults<any> | undefined);
|
|
22
22
|
private validateEndpoint;
|
|
23
23
|
private computeEndpoint;
|
|
24
|
-
getRaw<T>(endpoint: string, params?: URLSearchParams | APIParams): Promise<T>;
|
|
25
|
-
get<T>(endpoint: string, params?: URLSearchParams | APIParams, headers?:
|
|
26
|
-
post<T>(endpoint: string, data?: any): Promise<T>;
|
|
24
|
+
getRaw<T>(endpoint: string, params?: URLSearchParams | APIParams, headers?: Record<string, string>): Promise<T>;
|
|
25
|
+
get<T>(endpoint: string, params?: URLSearchParams | APIParams, headers?: Record<string, string>): Promise<T>;
|
|
26
|
+
post<T>(endpoint: string, data?: any, headers?: Record<string, string>): Promise<T>;
|
|
27
27
|
}
|
|
@@ -2,5 +2,5 @@ import { AuctionParams } from '../../../core/auction';
|
|
|
2
2
|
import { APIParams } from '../APIRequester';
|
|
3
3
|
import { BaseAPI } from './BaseAPI';
|
|
4
4
|
export declare class AuctionAPI extends BaseAPI {
|
|
5
|
-
parameters(params?: APIParams): Promise<AuctionParams>;
|
|
5
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<AuctionParams>;
|
|
6
6
|
}
|
|
@@ -2,7 +2,7 @@ import { AccAddress, Account, ModuleAccount, AuthParams } from '../../../core';
|
|
|
2
2
|
import { BaseAPI } from './BaseAPI';
|
|
3
3
|
import { APIParams } from '../APIRequester';
|
|
4
4
|
export declare class AuthAPI extends BaseAPI {
|
|
5
|
-
accountInfo(address: AccAddress, params?: APIParams): Promise<Account>;
|
|
6
|
-
moduleAccount(name: string, params?: APIParams): Promise<ModuleAccount>;
|
|
7
|
-
parameters(params?: APIParams): Promise<AuthParams>;
|
|
5
|
+
accountInfo(address: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<Account>;
|
|
6
|
+
moduleAccount(name: string, params?: APIParams, headers?: Record<string, string>): Promise<ModuleAccount>;
|
|
7
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<AuthParams>;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import { AccAddress, AuthorizationGrant } from '../../../core';
|
|
|
2
2
|
import { BaseAPI } from './BaseAPI';
|
|
3
3
|
import { APIParams, Pagination } from '../APIRequester';
|
|
4
4
|
export declare class AuthzAPI extends BaseAPI {
|
|
5
|
-
grants(granter: AccAddress, grantee: AccAddress, msg_type_url?: string, params?: APIParams): Promise<[AuthorizationGrant[], Pagination]>;
|
|
6
|
-
granter(granter: AccAddress, params?: APIParams): Promise<[AuthorizationGrant[], Pagination]>;
|
|
7
|
-
grantee(grantee: AccAddress, params?: APIParams): Promise<[AuthorizationGrant[], Pagination]>;
|
|
5
|
+
grants(granter: AccAddress, grantee: AccAddress, msg_type_url?: string, params?: APIParams, headers?: Record<string, string>): Promise<[AuthorizationGrant[], Pagination]>;
|
|
6
|
+
granter(granter: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<[AuthorizationGrant[], Pagination]>;
|
|
7
|
+
grantee(grantee: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<[AuthorizationGrant[], Pagination]>;
|
|
8
8
|
}
|
|
@@ -2,9 +2,9 @@ import { BaseAPI } from './BaseAPI';
|
|
|
2
2
|
import { Coins, Coin, AccAddress, BankParams, Denom } from '../../../core';
|
|
3
3
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
4
4
|
export declare class BankAPI extends BaseAPI {
|
|
5
|
-
balance(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Coins, Pagination]>;
|
|
6
|
-
balanceByDenom(address: AccAddress, denom: Denom, params?: APIParams): Promise<Coin>;
|
|
7
|
-
total(params?: Partial<PaginationOptions & APIParams>): Promise<[Coins, Pagination]>;
|
|
8
|
-
spendableBalances(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Coins, Pagination]>;
|
|
9
|
-
parameters(params?: APIParams): Promise<BankParams>;
|
|
5
|
+
balance(address: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Coins, Pagination]>;
|
|
6
|
+
balanceByDenom(address: AccAddress, denom: Denom, params?: APIParams, headers?: Record<string, string>): Promise<Coin>;
|
|
7
|
+
total(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Coins, Pagination]>;
|
|
8
|
+
spendableBalances(address: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Coins, Pagination]>;
|
|
9
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<BankParams>;
|
|
10
10
|
}
|
|
@@ -25,11 +25,11 @@ export declare namespace Rewards {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
export declare class DistributionAPI extends BaseAPI {
|
|
28
|
-
rewards(delegator: AccAddress, params?: APIParams): Promise<Rewards>;
|
|
29
|
-
rewardsByValidator(delegator: AccAddress, validator: AccAddress, params?: APIParams): Promise<Pool[]>;
|
|
30
|
-
validatorRewards(validator: AccAddress, params?: APIParams): Promise<Pool[]>;
|
|
31
|
-
validatorCommission(validator: ValAddress, params?: APIParams): Promise<Pool[]>;
|
|
32
|
-
withdrawAddress(delegator: AccAddress, params?: APIParams): Promise<AccAddress>;
|
|
33
|
-
communityPool(params?: APIParams): Promise<Coins>;
|
|
34
|
-
parameters(params?: APIParams): Promise<DistributionParams>;
|
|
28
|
+
rewards(delegator: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<Rewards>;
|
|
29
|
+
rewardsByValidator(delegator: AccAddress, validator: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<Pool[]>;
|
|
30
|
+
validatorRewards(validator: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<Pool[]>;
|
|
31
|
+
validatorCommission(validator: ValAddress, params?: APIParams, headers?: Record<string, string>): Promise<Pool[]>;
|
|
32
|
+
withdrawAddress(delegator: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<AccAddress>;
|
|
33
|
+
communityPool(params?: APIParams, headers?: Record<string, string>): Promise<Coins>;
|
|
34
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<DistributionParams>;
|
|
35
35
|
}
|
|
@@ -2,6 +2,6 @@ import { BaseAPI } from './BaseAPI';
|
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
3
|
import { Evidence } from '../../../core';
|
|
4
4
|
export declare class EvidenceAPI extends BaseAPI {
|
|
5
|
-
evidences(params?: Partial<PaginationOptions & APIParams>): Promise<[Evidence[], Pagination]>;
|
|
6
|
-
evidence(hash: string, params?: APIParams): Promise<Evidence>;
|
|
5
|
+
evidences(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Evidence[], Pagination]>;
|
|
6
|
+
evidence(hash: string, params?: APIParams, headers?: Record<string, string>): Promise<Evidence>;
|
|
7
7
|
}
|
|
@@ -12,12 +12,12 @@ export interface CallResponse {
|
|
|
12
12
|
trace_output: string;
|
|
13
13
|
}
|
|
14
14
|
export declare class EvmAPI extends BaseAPI {
|
|
15
|
-
code(contract_addr: AccAddress, params?: APIParams): Promise<string>;
|
|
16
|
-
state(contract_addr: AccAddress, key: string, params?: APIParams): Promise<string>;
|
|
17
|
-
erc20Factory(params?: APIParams): Promise<string>;
|
|
18
|
-
erc20Wrapper(params?: APIParams): Promise<string>;
|
|
19
|
-
contractAddrByDenom(denom: string, params?: APIParams): Promise<AccAddress>;
|
|
20
|
-
denom(contract_addr: AccAddress, params?: APIParams): Promise<string>;
|
|
21
|
-
call(sender: AccAddress, contract_addr: AccAddress, input: string, with_trace: boolean): Promise<CallResponse>;
|
|
22
|
-
parameters(params?: APIParams): Promise<EvmParams>;
|
|
15
|
+
code(contract_addr: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
16
|
+
state(contract_addr: AccAddress, key: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
17
|
+
erc20Factory(params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
18
|
+
erc20Wrapper(params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
19
|
+
contractAddrByDenom(denom: string, params?: APIParams, headers?: Record<string, string>): Promise<AccAddress>;
|
|
20
|
+
denom(contract_addr: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
21
|
+
call(sender: AccAddress, contract_addr: AccAddress, input: string, with_trace: boolean, headers?: Record<string, string>): Promise<CallResponse>;
|
|
22
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<EvmParams>;
|
|
23
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AccAddress, Allowance } from '../../../core';
|
|
2
2
|
import { BaseAPI } from './BaseAPI';
|
|
3
|
-
import { Pagination, PaginationOptions } from '../APIRequester';
|
|
3
|
+
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
4
4
|
export declare class FeeGrantAPI extends BaseAPI {
|
|
5
|
-
allowances(grantee: AccAddress, params?: Partial<PaginationOptions>): Promise<{
|
|
5
|
+
allowances(grantee: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<{
|
|
6
6
|
allowances: {
|
|
7
7
|
granter: AccAddress;
|
|
8
8
|
grantee: AccAddress;
|
|
@@ -10,8 +10,8 @@ export declare class FeeGrantAPI extends BaseAPI {
|
|
|
10
10
|
}[];
|
|
11
11
|
pagination: Pagination;
|
|
12
12
|
}>;
|
|
13
|
-
allowance(granter: AccAddress, grantee: AccAddress): Promise<Allowance>;
|
|
14
|
-
allowancesByGranter(granter: AccAddress, params?: Partial<PaginationOptions>): Promise<{
|
|
13
|
+
allowance(granter: AccAddress, grantee: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<Allowance>;
|
|
14
|
+
allowancesByGranter(granter: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<{
|
|
15
15
|
allowances: {
|
|
16
16
|
granter: AccAddress;
|
|
17
17
|
grantee: AccAddress;
|
|
@@ -14,7 +14,7 @@ export declare namespace ForwardingStats {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
export declare class ForwardingAPI extends BaseAPI {
|
|
17
|
-
denoms(params?: APIParams): Promise<string[]>;
|
|
18
|
-
address(channel: string, recipient: string, fallback: string, params?: APIParams): Promise<AccAddress>;
|
|
19
|
-
stats(channel: string, params?: APIParams): Promise<ForwardingStats>;
|
|
17
|
+
denoms(params?: APIParams, headers?: Record<string, string>): Promise<string[]>;
|
|
18
|
+
address(channel: string, recipient: string, fallback: string, params?: APIParams, headers?: Record<string, string>): Promise<AccAddress>;
|
|
19
|
+
stats(channel: string, params?: APIParams, headers?: Record<string, string>): Promise<ForwardingStats>;
|
|
20
20
|
}
|
|
@@ -2,11 +2,11 @@ import { BaseAPI } from './BaseAPI';
|
|
|
2
2
|
import { Proposal, Deposit, Vote, GovParams, TallyResult } from '../../../core';
|
|
3
3
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
4
4
|
export declare class GovAPI extends BaseAPI {
|
|
5
|
-
proposals(params?: Partial<PaginationOptions & APIParams>): Promise<[Proposal[], Pagination]>;
|
|
6
|
-
proposal(proposal_id: number, params?: APIParams): Promise<Proposal>;
|
|
7
|
-
deposits(proposal_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[Deposit[], Pagination]>;
|
|
8
|
-
votes(proposal_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[Vote[], Pagination]>;
|
|
9
|
-
tally(proposal_id: number, params?: APIParams): Promise<TallyResult>;
|
|
10
|
-
parameters(params?: APIParams): Promise<GovParams>;
|
|
11
|
-
emergencyProposals(params?: Partial<PaginationOptions & APIParams>): Promise<[Proposal[], Pagination]>;
|
|
5
|
+
proposals(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Proposal[], Pagination]>;
|
|
6
|
+
proposal(proposal_id: number, params?: APIParams, headers?: Record<string, string>): Promise<Proposal>;
|
|
7
|
+
deposits(proposal_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Deposit[], Pagination]>;
|
|
8
|
+
votes(proposal_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Vote[], Pagination]>;
|
|
9
|
+
tally(proposal_id: number, params?: APIParams, headers?: Record<string, string>): Promise<TallyResult>;
|
|
10
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<GovParams>;
|
|
11
|
+
emergencyProposals(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Proposal[], Pagination]>;
|
|
12
12
|
}
|
|
@@ -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(group_id: number): Promise<GroupInfo>;
|
|
6
|
-
groupPolicyInfo(address: AccAddress): Promise<GroupPolicyInfo>;
|
|
7
|
-
groupMembers(group_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupMember[], Pagination]>;
|
|
8
|
-
groupsByAdmin(admin: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupInfo[], Pagination]>;
|
|
9
|
-
groupPoliciesByGroup(group_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupPolicyInfo[], Pagination]>;
|
|
10
|
-
groupPoliciesByAdmin(admin: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupPolicyInfo[], Pagination]>;
|
|
11
|
-
proposal(proposal_id: number): Promise<GroupProposal>;
|
|
12
|
-
proposalsByGroupPolicy(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupProposal[], Pagination]>;
|
|
13
|
-
voteByProposalVoter(proposal_id: number, voter: AccAddress): Promise<GroupVote>;
|
|
14
|
-
votesByProposal(proposal_id: number, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupVote[], Pagination]>;
|
|
15
|
-
votesByVoter(voter: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupVote[], Pagination]>;
|
|
16
|
-
groupsByMember(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[GroupInfo[], Pagination]>;
|
|
17
|
-
tally(proposal_id: number): Promise<GroupProposal.FinalTallyResult>;
|
|
18
|
-
groups(params?: Partial<PaginationOptions & APIParams>): Promise<[GroupInfo[], Pagination]>;
|
|
5
|
+
groupInfo(group_id: number, params?: APIParams, headers?: Record<string, string>): Promise<GroupInfo>;
|
|
6
|
+
groupPolicyInfo(address: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<GroupPolicyInfo>;
|
|
7
|
+
groupMembers(group_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[GroupMember[], Pagination]>;
|
|
8
|
+
groupsByAdmin(admin: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[GroupInfo[], Pagination]>;
|
|
9
|
+
groupPoliciesByGroup(group_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[GroupPolicyInfo[], Pagination]>;
|
|
10
|
+
groupPoliciesByAdmin(admin: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[GroupPolicyInfo[], Pagination]>;
|
|
11
|
+
proposal(proposal_id: number, params?: APIParams, headers?: Record<string, string>): Promise<GroupProposal>;
|
|
12
|
+
proposalsByGroupPolicy(address: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[GroupProposal[], Pagination]>;
|
|
13
|
+
voteByProposalVoter(proposal_id: number, voter: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<GroupVote>;
|
|
14
|
+
votesByProposal(proposal_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[GroupVote[], Pagination]>;
|
|
15
|
+
votesByVoter(voter: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[GroupVote[], Pagination]>;
|
|
16
|
+
groupsByMember(address: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[GroupInfo[], Pagination]>;
|
|
17
|
+
tally(proposal_id: number, params?: APIParams, headers?: Record<string, string>): Promise<GroupProposal.FinalTallyResult>;
|
|
18
|
+
groups(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[GroupInfo[], Pagination]>;
|
|
19
19
|
}
|
|
@@ -26,22 +26,22 @@ export declare namespace Port {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
export declare class IbcAPI extends BaseAPI {
|
|
29
|
-
channels(params?: APIParams): Promise<[IdentifiedChannel[], Height, Pagination]>;
|
|
30
|
-
port(channel_id: string, port_id: string, params?: APIParams): Promise<Port>;
|
|
31
|
-
connections(params?: APIParams): Promise<[IdentifiedConnection[], Pagination]>;
|
|
32
|
-
connection(connection_id: string, params?: APIParams): Promise<IdentifiedConnection>;
|
|
33
|
-
connectionChannels(connection_id: string, params?: APIParams): Promise<[IdentifiedChannel[], Height, Pagination]>;
|
|
34
|
-
parameters(params?: APIParams): Promise<IbcClientParams>;
|
|
35
|
-
clientStates(params?: Partial<PaginationOptions & APIParams>): Promise<[IdentifiedClientState[], Pagination]>;
|
|
36
|
-
clientState(client_id: string, params?: APIParams): Promise<ClientState>;
|
|
37
|
-
clientStatus(client_id: string, params?: APIParams): Promise<string>;
|
|
38
|
-
consensusStates(client_id: string, params?: Partial<PaginationOptions & APIParams>): Promise<[ClientConsensusStates, Pagination]>;
|
|
39
|
-
consensusStateHeights(client_id: string, params?: Partial<PaginationOptions & APIParams>): Promise<[Height[], Pagination]>;
|
|
40
|
-
unreceivedPackets(port_id: string, channel_id: string, sequences: number[], params?: APIParams): Promise<{
|
|
29
|
+
channels(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[IdentifiedChannel[], Height, Pagination]>;
|
|
30
|
+
port(channel_id: string, port_id: string, params?: APIParams, headers?: Record<string, string>): Promise<Port>;
|
|
31
|
+
connections(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[IdentifiedConnection[], Pagination]>;
|
|
32
|
+
connection(connection_id: string, params?: APIParams, headers?: Record<string, string>): Promise<IdentifiedConnection>;
|
|
33
|
+
connectionChannels(connection_id: string, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[IdentifiedChannel[], Height, Pagination]>;
|
|
34
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<IbcClientParams>;
|
|
35
|
+
clientStates(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[IdentifiedClientState[], Pagination]>;
|
|
36
|
+
clientState(client_id: string, params?: APIParams, headers?: Record<string, string>): Promise<ClientState>;
|
|
37
|
+
clientStatus(client_id: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
38
|
+
consensusStates(client_id: string, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[ClientConsensusStates, Pagination]>;
|
|
39
|
+
consensusStateHeights(client_id: string, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Height[], Pagination]>;
|
|
40
|
+
unreceivedPackets(port_id: string, channel_id: string, sequences: number[], params?: APIParams, headers?: Record<string, string>): Promise<{
|
|
41
41
|
sequences: string[];
|
|
42
42
|
height: Height;
|
|
43
43
|
}>;
|
|
44
|
-
unreceivedAcks(port_id: string, channel_id: string, sequences: number[], params?: APIParams): Promise<{
|
|
44
|
+
unreceivedAcks(port_id: string, channel_id: string, sequences: number[], params?: APIParams, headers?: Record<string, string>): Promise<{
|
|
45
45
|
sequences: string[];
|
|
46
46
|
height: Height;
|
|
47
47
|
}>;
|
|
@@ -2,7 +2,7 @@ import { BaseAPI } from './BaseAPI';
|
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
3
|
import { AccAddress, ACL, IbcHooksParams } from '../../../core';
|
|
4
4
|
export declare class IbcHooksAPI extends BaseAPI {
|
|
5
|
-
acls(params?: Partial<PaginationOptions & APIParams>): Promise<[ACL[], Pagination]>;
|
|
6
|
-
acl(address: AccAddress, params?: APIParams): Promise<ACL>;
|
|
7
|
-
parameters(params?: APIParams): Promise<IbcHooksParams>;
|
|
5
|
+
acls(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[ACL[], Pagination]>;
|
|
6
|
+
acl(address: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<ACL>;
|
|
7
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<IbcHooksParams>;
|
|
8
8
|
}
|
|
@@ -2,9 +2,9 @@ import { BaseAPI } from './BaseAPI';
|
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
3
|
import { NftClassTrace, IbcNftParams } from '../../../core';
|
|
4
4
|
export declare class IbcNftAPI extends BaseAPI {
|
|
5
|
-
classTrace(hash: string): Promise<NftClassTrace>;
|
|
6
|
-
classTraces(params?: Partial<PaginationOptions & APIParams>): Promise<[NftClassTrace[], Pagination]>;
|
|
7
|
-
classHash(trace: string): Promise<string>;
|
|
8
|
-
escrowAddress(channel_id: string, port_id: string, params?: APIParams): Promise<string>;
|
|
9
|
-
parameters(params?: APIParams): Promise<IbcNftParams>;
|
|
5
|
+
classTrace(hash: string, params?: APIParams, headers?: Record<string, string>): Promise<NftClassTrace>;
|
|
6
|
+
classTraces(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[NftClassTrace[], Pagination]>;
|
|
7
|
+
classHash(trace: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
8
|
+
escrowAddress(channel_id: string, port_id: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
9
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<IbcNftParams>;
|
|
10
10
|
}
|
|
@@ -7,6 +7,6 @@ export interface ChannelState {
|
|
|
7
7
|
relayers: string[];
|
|
8
8
|
}
|
|
9
9
|
export declare class IbcPermAPI extends BaseAPI {
|
|
10
|
-
channelStates(params?: Partial<PaginationOptions & APIParams>): Promise<[ChannelState[], Pagination]>;
|
|
11
|
-
channelState(channel_id: string, port_id: string): Promise<ChannelState>;
|
|
10
|
+
channelStates(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[ChannelState[], Pagination]>;
|
|
11
|
+
channelState(channel_id: string, port_id: string, params?: APIParams, headers?: Record<string, string>): Promise<ChannelState>;
|
|
12
12
|
}
|
|
@@ -2,9 +2,9 @@ import { BaseAPI } from './BaseAPI';
|
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
3
|
import { DenomTrace, IbcTransferParams } from '../../../core';
|
|
4
4
|
export declare class IbcTransferAPI extends BaseAPI {
|
|
5
|
-
denomTrace(hash: string): Promise<DenomTrace>;
|
|
6
|
-
denomTraces(params?: Partial<PaginationOptions & APIParams>): Promise<[DenomTrace[], Pagination]>;
|
|
7
|
-
denomHash(trace: string): Promise<string>;
|
|
8
|
-
parameters(params?: APIParams): Promise<IbcTransferParams>;
|
|
9
|
-
escrowAddress(channel_id: string, port_id: string, params?: APIParams): Promise<string>;
|
|
5
|
+
denomTrace(hash: string, params?: APIParams, headers?: Record<string, string>): Promise<DenomTrace>;
|
|
6
|
+
denomTraces(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[DenomTrace[], Pagination]>;
|
|
7
|
+
denomHash(trace: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
8
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<IbcTransferParams>;
|
|
9
|
+
escrowAddress(channel_id: string, port_id: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
10
10
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AccAddress } from '../../../core';
|
|
2
2
|
import { BaseAPI } from './BaseAPI';
|
|
3
|
+
import { APIParams } from '../APIRequester';
|
|
3
4
|
export declare class InterTxAPI extends BaseAPI {
|
|
4
|
-
interchainAccount(owner: AccAddress, connection_id: string): Promise<string>;
|
|
5
|
+
interchainAccount(owner: AccAddress, connection_id: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
5
6
|
}
|
|
@@ -10,9 +10,9 @@ export declare namespace MarketMap {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export declare class MarketmapAPI extends BaseAPI {
|
|
13
|
-
marketMap(params?: APIParams): Promise<MarketMap>;
|
|
14
|
-
markets(params?: APIParams): Promise<Market[]>;
|
|
15
|
-
market(pair: CurrencyPair, params?: APIParams): Promise<Market>;
|
|
16
|
-
lastUpdated(params?: APIParams): Promise<number>;
|
|
17
|
-
parameters(params?: APIParams): Promise<MarketmapParams>;
|
|
13
|
+
marketMap(params?: APIParams, headers?: Record<string, string>): Promise<MarketMap>;
|
|
14
|
+
markets(params?: APIParams, headers?: Record<string, string>): Promise<Market[]>;
|
|
15
|
+
market(pair: CurrencyPair, params?: APIParams, headers?: Record<string, string>): Promise<Market>;
|
|
16
|
+
lastUpdated(params?: APIParams, headers?: Record<string, string>): Promise<number>;
|
|
17
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<MarketmapParams>;
|
|
18
18
|
}
|
|
@@ -37,26 +37,26 @@ export interface VMEvent {
|
|
|
37
37
|
data: string;
|
|
38
38
|
}
|
|
39
39
|
export declare class MoveAPI extends BaseAPI {
|
|
40
|
-
modules(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Module[], Pagination]>;
|
|
41
|
-
module(address: AccAddress, module_name: string, params?: APIParams): Promise<Module>;
|
|
42
|
-
resources(address: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[{
|
|
40
|
+
modules(address: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Module[], Pagination]>;
|
|
41
|
+
module(address: AccAddress, module_name: string, params?: APIParams, headers?: Record<string, string>): Promise<Module>;
|
|
42
|
+
resources(address: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[{
|
|
43
43
|
type: string;
|
|
44
44
|
data: any;
|
|
45
45
|
}[], Pagination]>;
|
|
46
|
-
resource<T>(address: AccAddress, struct_tag: string, params?: APIParams): Promise<{
|
|
46
|
+
resource<T>(address: AccAddress, struct_tag: string, params?: APIParams, headers?: Record<string, string>): Promise<{
|
|
47
47
|
type: string;
|
|
48
48
|
data: T;
|
|
49
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>;
|
|
59
|
-
denom(metadata: string, params?: APIParams): Promise<Denom>;
|
|
60
|
-
metadata(denom: Denom, params?: APIParams): Promise<string>;
|
|
61
|
-
parameters(params?: APIParams): Promise<MoveParams>;
|
|
50
|
+
tableInfo(address: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<TableInfo>;
|
|
51
|
+
tableEntries(address: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[TableEntry[], Pagination]>;
|
|
52
|
+
tableEntry(address: AccAddress, key_bytes: string, params?: APIParams, headers?: Record<string, string>): Promise<TableEntry>;
|
|
53
|
+
viewFunction<T>(address: AccAddress, module_name: string, function_name: string, type_args?: string[], args?: string[], headers?: Record<string, string>): Promise<T>;
|
|
54
|
+
view(address: AccAddress, module_name: string, function_name: string, type_args?: string[], args?: string[], headers?: Record<string, string>): Promise<ViewResponse>;
|
|
55
|
+
viewBatch(requests: ViewRequest[], headers?: Record<string, string>): Promise<ViewResponse[]>;
|
|
56
|
+
viewJSON(address: AccAddress, module_name: string, function_name: string, type_args?: string[], args?: string[], headers?: Record<string, string>): Promise<ViewResponse>;
|
|
57
|
+
viewBatchJSON(requests: ViewRequest[], headers?: Record<string, string>): Promise<ViewResponse[]>;
|
|
58
|
+
scriptABI(code_bytes: string, headers?: Record<string, string>): Promise<ABI>;
|
|
59
|
+
denom(metadata: string, params?: APIParams, headers?: Record<string, string>): Promise<Denom>;
|
|
60
|
+
metadata(denom: Denom, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
61
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<MoveParams>;
|
|
62
62
|
}
|
|
@@ -12,15 +12,15 @@ export declare namespace MstakingPool {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
export declare class MstakingAPI extends BaseAPI {
|
|
15
|
-
delegations(delegator?: AccAddress, validator?: ValAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Delegation[], Pagination]>;
|
|
16
|
-
delegation(delegator: AccAddress, validator: ValAddress): Promise<Delegation>;
|
|
17
|
-
unbondingDelegations(delegator?: AccAddress, validator?: ValAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[UnbondingDelegation[], Pagination]>;
|
|
18
|
-
unbondingDelegation(delegator?: AccAddress, validator?: ValAddress): Promise<UnbondingDelegation>;
|
|
19
|
-
redelegations(delegator: AccAddress, src_validator_addr?: ValAddress, dst_validator_addr?: ValAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Redelegation[], Pagination]>;
|
|
20
|
-
bondedValidators(delegator: AccAddress, params?: Partial<PaginationOptions & APIParams>): Promise<[Validator[], Pagination]>;
|
|
21
|
-
totalDelegationBalance(delegator: AccAddress, params?: APIParams): Promise<Coins>;
|
|
22
|
-
validators(params?: Partial<PaginationOptions & APIParams>): Promise<[Validator[], Pagination]>;
|
|
23
|
-
validator(validator: ValAddress, params?: APIParams): Promise<Validator>;
|
|
24
|
-
pool(params?: APIParams): Promise<MstakingPool>;
|
|
25
|
-
parameters(params?: APIParams): Promise<MstakingParams>;
|
|
15
|
+
delegations(delegator?: AccAddress, validator?: ValAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Delegation[], Pagination]>;
|
|
16
|
+
delegation(delegator: AccAddress, validator: ValAddress, headers?: Record<string, string>): Promise<Delegation>;
|
|
17
|
+
unbondingDelegations(delegator?: AccAddress, validator?: ValAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[UnbondingDelegation[], Pagination]>;
|
|
18
|
+
unbondingDelegation(delegator?: AccAddress, validator?: ValAddress, headers?: Record<string, string>): Promise<UnbondingDelegation>;
|
|
19
|
+
redelegations(delegator: AccAddress, src_validator_addr?: ValAddress, dst_validator_addr?: ValAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Redelegation[], Pagination]>;
|
|
20
|
+
bondedValidators(delegator: AccAddress, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Validator[], Pagination]>;
|
|
21
|
+
totalDelegationBalance(delegator: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<Coins>;
|
|
22
|
+
validators(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[Validator[], Pagination]>;
|
|
23
|
+
validator(validator: ValAddress, params?: APIParams, headers?: Record<string, string>): Promise<Validator>;
|
|
24
|
+
pool(params?: APIParams, headers?: Record<string, string>): Promise<MstakingPool>;
|
|
25
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<MstakingParams>;
|
|
26
26
|
}
|
|
@@ -2,11 +2,11 @@ import { BaseAPI } from './BaseAPI';
|
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
3
|
import { OpValidator, ValAddress, OpchildParams, BridgeInfo } from '../../../core';
|
|
4
4
|
export declare class OpchildAPI extends BaseAPI {
|
|
5
|
-
validators(params?: Partial<PaginationOptions & APIParams>): Promise<[OpValidator[], Pagination]>;
|
|
6
|
-
validator(validator_addr: ValAddress, params?: APIParams): Promise<OpValidator>;
|
|
7
|
-
bridgeInfo(params?: APIParams): Promise<BridgeInfo>;
|
|
8
|
-
nextL1Sequence(params?: APIParams): Promise<number>;
|
|
9
|
-
nextL2Sequence(params?: APIParams): Promise<number>;
|
|
10
|
-
baseDenom(denom: string, params?: APIParams): Promise<string>;
|
|
11
|
-
parameters(params?: APIParams): Promise<OpchildParams>;
|
|
5
|
+
validators(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[OpValidator[], Pagination]>;
|
|
6
|
+
validator(validator_addr: ValAddress, params?: APIParams, headers?: Record<string, string>): Promise<OpValidator>;
|
|
7
|
+
bridgeInfo(params?: APIParams, headers?: Record<string, string>): Promise<BridgeInfo>;
|
|
8
|
+
nextL1Sequence(params?: APIParams, headers?: Record<string, string>): Promise<number>;
|
|
9
|
+
nextL2Sequence(params?: APIParams, headers?: Record<string, string>): Promise<number>;
|
|
10
|
+
baseDenom(denom: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
11
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<OpchildParams>;
|
|
12
12
|
}
|
|
@@ -18,16 +18,16 @@ export declare namespace OutputInfo {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
export declare class OphostAPI extends BaseAPI {
|
|
21
|
-
bridgeInfos(params?: Partial<PaginationOptions & APIParams>): Promise<[BridgeInfo[], Pagination]>;
|
|
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
|
-
parameters(params?: APIParams): Promise<OphostParams>;
|
|
21
|
+
bridgeInfos(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[BridgeInfo[], Pagination]>;
|
|
22
|
+
bridgeInfo(bridge_id: number, params?: APIParams, headers?: Record<string, string>): Promise<BridgeInfo>;
|
|
23
|
+
tokenPairs(bridge_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[TokenPair[], Pagination]>;
|
|
24
|
+
tokenPairByL1Denom(bridge_id: number, l1_denom: string, params?: APIParams, headers?: Record<string, string>): Promise<TokenPair>;
|
|
25
|
+
tokenPairByL2Denom(bridge_id: number, l2_denom: string, params?: APIParams, headers?: Record<string, string>): Promise<TokenPair>;
|
|
26
|
+
lastFinalizedOutput(bridge_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<OutputInfo>;
|
|
27
|
+
outputInfos(bridge_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[OutputInfo[], Pagination]>;
|
|
28
|
+
outputInfo(bridge_id: number, output_index: number, params?: APIParams, headers?: Record<string, string>): Promise<OutputInfo>;
|
|
29
|
+
withdrawalClaimed(bridge_id: number, withdrawal_hash: string, params?: APIParams, headers?: Record<string, string>): Promise<boolean>;
|
|
30
|
+
nextL1Sequence(bridge_id: number, params?: APIParams, headers?: Record<string, string>): Promise<number>;
|
|
31
|
+
batchInfos(bridge_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[BatchInfoWithOutput[], Pagination]>;
|
|
32
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<OphostParams>;
|
|
33
33
|
}
|
|
@@ -2,6 +2,6 @@ import { BaseAPI } from './BaseAPI';
|
|
|
2
2
|
import { APIParams } from '../APIRequester';
|
|
3
3
|
import { CurrencyPair, QuotePrice } from '../../../core';
|
|
4
4
|
export declare class OracleAPI extends BaseAPI {
|
|
5
|
-
currencyPairs(params?: APIParams): Promise<CurrencyPair[]>;
|
|
6
|
-
price(pair: CurrencyPair, params?: APIParams): Promise<QuotePrice>;
|
|
5
|
+
currencyPairs(params?: APIParams, headers?: Record<string, string>): Promise<CurrencyPair[]>;
|
|
6
|
+
price(pair: CurrencyPair, params?: APIParams, headers?: Record<string, string>): Promise<QuotePrice>;
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import { RewardParams } from '../../../core';
|
|
|
2
2
|
import { APIParams } from '../APIRequester';
|
|
3
3
|
import { BaseAPI } from './BaseAPI';
|
|
4
4
|
export declare class RewardAPI extends BaseAPI {
|
|
5
|
-
last_dilution_timestamp(params?: APIParams): Promise<string>;
|
|
6
|
-
annualProvisions(params?: APIParams): Promise<string>;
|
|
7
|
-
parameters(params?: APIParams): Promise<RewardParams>;
|
|
5
|
+
last_dilution_timestamp(params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
6
|
+
annualProvisions(params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
7
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<RewardParams>;
|
|
8
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseAPI } from './BaseAPI';
|
|
2
2
|
import { ValConsAddress, SlashingParams, ValidatorSigningInfo } from '../../../core';
|
|
3
|
-
import { APIParams, Pagination } from '../APIRequester';
|
|
3
|
+
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
4
4
|
export declare class SlashingAPI extends BaseAPI {
|
|
5
|
-
signingInfos(params?: APIParams): Promise<[ValidatorSigningInfo[], Pagination]>;
|
|
6
|
-
signingInfo(val_cons_address: ValConsAddress, params?: APIParams): Promise<ValidatorSigningInfo>;
|
|
7
|
-
parameters(params?: APIParams): Promise<SlashingParams>;
|
|
5
|
+
signingInfos(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[ValidatorSigningInfo[], Pagination]>;
|
|
6
|
+
signingInfo(val_cons_address: ValConsAddress, params?: APIParams, headers?: Record<string, string>): Promise<ValidatorSigningInfo>;
|
|
7
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<SlashingParams>;
|
|
8
8
|
}
|
|
@@ -8,9 +8,9 @@ export interface DelegateValidator {
|
|
|
8
8
|
voting_power: string;
|
|
9
9
|
}
|
|
10
10
|
export declare class TendermintAPI extends BaseAPI {
|
|
11
|
-
nodeInfo(params?: APIParams): Promise<object>;
|
|
12
|
-
chainId(params?: APIParams): Promise<string>;
|
|
13
|
-
syncing(params?: APIParams): Promise<boolean>;
|
|
14
|
-
validatorSet(height?: number, params?: APIParams): Promise<[DelegateValidator[], Pagination]>;
|
|
15
|
-
blockInfo(height?: number, params?: APIParams): Promise<BlockInfo>;
|
|
11
|
+
nodeInfo(params?: APIParams, headers?: Record<string, string>): Promise<object>;
|
|
12
|
+
chainId(params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
13
|
+
syncing(params?: APIParams, headers?: Record<string, string>): Promise<boolean>;
|
|
14
|
+
validatorSet(height?: number, params?: APIParams, headers?: Record<string, string>): Promise<[DelegateValidator[], Pagination]>;
|
|
15
|
+
blockInfo(height?: number, params?: APIParams, headers?: Record<string, string>): Promise<BlockInfo>;
|
|
16
16
|
}
|
|
@@ -5,8 +5,8 @@ export interface AuthorityMetadata {
|
|
|
5
5
|
admin: string;
|
|
6
6
|
}
|
|
7
7
|
export declare class TokenfactoryAPI extends BaseAPI {
|
|
8
|
-
authorityMetadata(denom: string, params?: APIParams): Promise<AuthorityMetadata>;
|
|
9
|
-
beforeSendHookAddr(denom: string, params?: APIParams): Promise<string>;
|
|
10
|
-
denomsFromCreator(creator: string, params?: APIParams): Promise<string[]>;
|
|
11
|
-
parameters(params?: APIParams): Promise<TokenfactoryParams>;
|
|
8
|
+
authorityMetadata(denom: string, params?: APIParams, headers?: Record<string, string>): Promise<AuthorityMetadata>;
|
|
9
|
+
beforeSendHookAddr(denom: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
10
|
+
denomsFromCreator(creator: string, params?: APIParams, headers?: Record<string, string>): Promise<string[]>;
|
|
11
|
+
parameters(params?: APIParams, headers?: Record<string, string>): Promise<TokenfactoryParams>;
|
|
12
12
|
}
|
|
@@ -164,27 +164,27 @@ export interface TxSearchOptions extends PaginationOptions {
|
|
|
164
164
|
export declare class TxAPI extends BaseAPI {
|
|
165
165
|
rest: RESTClient;
|
|
166
166
|
constructor(rest: RESTClient);
|
|
167
|
-
txInfo(tx_hash: string, params?: APIParams): Promise<TxInfo>;
|
|
167
|
+
txInfo(tx_hash: string, params?: APIParams, headers?: Record<string, string>): 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>;
|
|
171
171
|
estimateGas(tx: Tx, options?: {
|
|
172
172
|
gasAdjustment?: number | string;
|
|
173
173
|
signers?: SignerData[];
|
|
174
|
-
}): Promise<string>;
|
|
174
|
+
}, headers?: Record<string, string>): Promise<string>;
|
|
175
175
|
simulate(options: CreateTxOptions & {
|
|
176
176
|
sequence: number;
|
|
177
|
-
}): Promise<SimulateResponse>;
|
|
177
|
+
}, headers?: Record<string, string>): Promise<SimulateResponse>;
|
|
178
178
|
static encode(tx: Tx): string;
|
|
179
179
|
static decode(encoded_tx: string): Tx;
|
|
180
180
|
static hash(tx: Tx): string;
|
|
181
181
|
private _broadcast;
|
|
182
|
-
broadcast(tx: Tx | string, timeout?: number): Promise<WaitTxBroadcastResult>;
|
|
183
|
-
broadcastSync(tx: Tx | string): Promise<SyncTxBroadcastResult>;
|
|
184
|
-
broadcastAsync(tx: Tx | string): Promise<AsyncTxBroadcastResult>;
|
|
185
|
-
search(options: Partial<TxSearchOptions>): Promise<TxSearchResult>;
|
|
186
|
-
searchEvents(module_addr: string, module_name: string, start_height: number, end_height: number): Promise<Event[]>;
|
|
187
|
-
gasPrices(params?: APIParams): Promise<Coins>;
|
|
188
|
-
gasPrice(denom: Denom, params?: APIParams): Promise<Coin>;
|
|
182
|
+
broadcast(tx: Tx | string, timeout?: number, headers?: Record<string, string>): Promise<WaitTxBroadcastResult>;
|
|
183
|
+
broadcastSync(tx: Tx | string, headers?: Record<string, string>): Promise<SyncTxBroadcastResult>;
|
|
184
|
+
broadcastAsync(tx: Tx | string, headers?: Record<string, string>): Promise<AsyncTxBroadcastResult>;
|
|
185
|
+
search(options: Partial<TxSearchOptions>, headers?: Record<string, string>): Promise<TxSearchResult>;
|
|
186
|
+
searchEvents(module_addr: string, module_name: string, start_height: number, end_height: number, headers?: Record<string, string>): Promise<Event[]>;
|
|
187
|
+
gasPrices(params?: APIParams, headers?: Record<string, string>): Promise<Coins>;
|
|
188
|
+
gasPrice(denom: Denom, params?: APIParams, headers?: Record<string, string>): Promise<Coin>;
|
|
189
189
|
}
|
|
190
190
|
export {};
|
|
@@ -12,7 +12,7 @@ export declare namespace ModuleVersion {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
export declare class UpgradeAPI extends BaseAPI {
|
|
15
|
-
appliedPlan(name: string, params?: Partial<PaginationOptions & APIParams>): Promise<number>;
|
|
16
|
-
currentPlan(params?: APIParams): Promise<Plan | undefined>;
|
|
17
|
-
moduleVersions(params?: APIParams): Promise<ModuleVersion[]>;
|
|
15
|
+
appliedPlan(name: string, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<number>;
|
|
16
|
+
currentPlan(params?: APIParams, headers?: Record<string, string>): Promise<Plan | undefined>;
|
|
17
|
+
moduleVersions(params?: APIParams, headers?: Record<string, string>): Promise<ModuleVersion[]>;
|
|
18
18
|
}
|