@initia/initia.js 1.0.20 → 1.0.21
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 +11 -0
- package/dist/client/rest/api/EvmAPI.d.ts +3 -2
- package/dist/client/rest/api/IbcNftAPI.d.ts +1 -0
- package/dist/client/rest/api/OpchildAPI.d.ts +12 -1
- package/dist/client/rest/api/OphostAPI.d.ts +2 -1
- package/dist/core/Coin.d.ts +2 -0
- package/dist/core/Coins.d.ts +2 -0
- package/dist/core/authz/authorizations/Authorization.d.ts +5 -4
- package/dist/core/authz/authorizations/CallAuthorization.d.ts +28 -0
- package/dist/core/authz/authorizations/index.d.ts +1 -0
- package/dist/core/evm/EvmParams.d.ts +5 -1
- package/dist/core/evm/GasEnforcement.d.ts +27 -0
- package/dist/core/evm/SetCodeAuthorization.d.ts +30 -0
- package/dist/core/evm/index.d.ts +2 -0
- package/dist/core/evm/msgs/MsgCall.d.ts +5 -1
- package/dist/core/forwarding/msgs/MsgSetAllowedDenoms.d.ts +32 -0
- package/dist/core/forwarding/msgs/MsgSetMemo.d.ts +44 -0
- package/dist/core/forwarding/msgs/index.d.ts +8 -4
- package/dist/core/gov/GovParams.d.ts +5 -2
- package/dist/core/gov/msgs/MsgActivateEmergencyProposal.d.ts +32 -0
- package/dist/core/gov/msgs/MsgAddEmergencySubmitters.d.ts +32 -0
- package/dist/core/gov/msgs/MsgRemoveEmergencySubmitters.d.ts +32 -0
- package/dist/core/gov/msgs/index.d.ts +10 -4
- package/dist/core/opchild/L2MigrationInfo.d.ts +27 -0
- package/dist/core/opchild/index.d.ts +1 -0
- package/dist/core/opchild/msgs/MsgAddAttestor.d.ts +39 -0
- package/dist/core/opchild/msgs/MsgMigrateToken.d.ts +33 -0
- package/dist/core/opchild/msgs/MsgRegisterL2MigrationInfo.d.ts +33 -0
- package/dist/core/opchild/msgs/MsgRemoveAttestor.d.ts +32 -0
- package/dist/core/opchild/msgs/MsgUpdateSequencer.d.ts +39 -0
- package/dist/core/opchild/msgs/index.d.ts +14 -8
- package/dist/core/ophost/BridgeConfig.d.ts +8 -2
- package/dist/core/ophost/L1MigrationInfo.d.ts +30 -0
- package/dist/core/ophost/index.d.ts +1 -0
- package/dist/core/ophost/msgs/MsgDisableBridge.d.ts +32 -0
- package/dist/core/ophost/msgs/MsgRegisterL1MigrationInfo.d.ts +33 -0
- package/dist/core/ophost/msgs/index.d.ts +12 -8
- package/dist/core/reward/msgs/MsgFundCommunityPoolReward.d.ts +33 -0
- package/dist/core/reward/msgs/index.d.ts +6 -4
- package/dist/core/wasm/WasmParams.d.ts +4 -1
- package/dist/core/wasm/msgs/MsgUpdateMaxWasmSize.d.ts +32 -0
- package/dist/core/wasm/msgs/index.d.ts +6 -4
- package/dist/index.cjs +6 -6
- package/dist/index.mjs +42003 -39208
- package/package.json +3 -3
- package/dist/core/opchild/msgs/MsgAddValidator.d.ts +0 -39
- package/dist/core/opchild/msgs/MsgRemoveValidator.d.ts +0 -32
package/README.md
CHANGED
|
@@ -52,6 +52,17 @@ const key = new MnemonicKey({
|
|
|
52
52
|
})
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
+
#### Ledger Hardware Wallet
|
|
56
|
+
|
|
57
|
+
For Ledger hardware wallet support, use [@initia/ledger-key](./ledger-key):
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
import { LedgerKey } from '@initia/ledger-key'
|
|
61
|
+
|
|
62
|
+
// e.g. `transport` from @ledgerhq/hw-transport-webhid / webusb / node-hid
|
|
63
|
+
const key = await LedgerKey.create(transport)
|
|
64
|
+
```
|
|
65
|
+
|
|
55
66
|
### BCS
|
|
56
67
|
|
|
57
68
|
**BCS**(Binary Canonical Serialization) is the binary encoding for Move resources and other non-module values published on-chain.  
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccAddress, AccessTuple, EvmParams } from '../../../core';
|
|
1
|
+
import { AccAddress, AccessTuple, EvmParams, SetCodeAuthorization } from '../../../core';
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
3
|
import { BaseAPI } from './BaseAPI';
|
|
4
4
|
export interface TraceOptions {
|
|
@@ -26,6 +26,7 @@ export interface CallResponse {
|
|
|
26
26
|
data: string;
|
|
27
27
|
}[];
|
|
28
28
|
trace_output: string;
|
|
29
|
+
error: string;
|
|
29
30
|
}
|
|
30
31
|
export declare class EvmAPI extends BaseAPI {
|
|
31
32
|
code(contract_addr: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
@@ -39,6 +40,6 @@ export declare class EvmAPI extends BaseAPI {
|
|
|
39
40
|
erc721ClassInfo(class_id: string, params?: APIParams, headers?: Record<string, string>): Promise<ERC721ClassInfo>;
|
|
40
41
|
erc721TokenInfo(class_id: string, token_id: string, params?: APIParams, headers?: Record<string, string>): Promise<ERC721TokenInfo>;
|
|
41
42
|
denom(contract_addr: AccAddress, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
42
|
-
call(sender: AccAddress, contract_addr: AccAddress, input: string, value: string, access_list
|
|
43
|
+
call(sender: AccAddress, contract_addr: AccAddress, input: string, value: string, access_list: AccessTuple[] | undefined, trace_options: TraceOptions | undefined, auth_list: SetCodeAuthorization[], headers?: Record<string, string>): Promise<CallResponse>;
|
|
43
44
|
parameters(params?: APIParams, headers?: Record<string, string>): Promise<EvmParams>;
|
|
44
45
|
}
|
|
@@ -5,6 +5,7 @@ export declare class IbcNftAPI extends BaseAPI {
|
|
|
5
5
|
classTrace(hash: string, params?: APIParams, headers?: Record<string, string>): Promise<NftClassTrace>;
|
|
6
6
|
classTraces(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[NftClassTrace[], Pagination]>;
|
|
7
7
|
classHash(trace: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
8
|
+
classData(hash: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
8
9
|
escrowAddress(channel_id: string, port_id: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
9
10
|
parameters(params?: APIParams, headers?: Record<string, string>): Promise<IbcNftParams>;
|
|
10
11
|
}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { BaseAPI } from './BaseAPI';
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
|
-
import { OpValidator, ValAddress, OpchildParams, BridgeInfo } from '../../../core';
|
|
3
|
+
import { OpValidator, ValAddress, OpchildParams, BridgeInfo, L2MigrationInfo } from '../../../core';
|
|
4
|
+
export interface MigrationInfoResponse {
|
|
5
|
+
migration_info: L2MigrationInfo;
|
|
6
|
+
ibc_denom: string;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace MigrationInfoResponse {
|
|
9
|
+
interface Data {
|
|
10
|
+
migration_info: L2MigrationInfo.Data;
|
|
11
|
+
ibc_denom: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
4
14
|
export declare class OpchildAPI extends BaseAPI {
|
|
5
15
|
validators(params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[OpValidator[], Pagination]>;
|
|
6
16
|
validator(validator_addr: ValAddress, params?: APIParams, headers?: Record<string, string>): Promise<OpValidator>;
|
|
@@ -8,5 +18,6 @@ export declare class OpchildAPI extends BaseAPI {
|
|
|
8
18
|
nextL1Sequence(params?: APIParams, headers?: Record<string, string>): Promise<number>;
|
|
9
19
|
nextL2Sequence(params?: APIParams, headers?: Record<string, string>): Promise<number>;
|
|
10
20
|
baseDenom(denom: string, params?: APIParams, headers?: Record<string, string>): Promise<string>;
|
|
21
|
+
migrationInfo(denom: string, params?: APIParams, headers?: Record<string, string>): Promise<MigrationInfoResponse>;
|
|
11
22
|
parameters(params?: APIParams, headers?: Record<string, string>): Promise<OpchildParams>;
|
|
12
23
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseAPI } from './BaseAPI';
|
|
2
2
|
import { APIParams, Pagination, PaginationOptions } from '../APIRequester';
|
|
3
|
-
import { OphostParams, Output, BridgeInfo, BatchInfoWithOutput } from '../../../core';
|
|
3
|
+
import { OphostParams, Output, BridgeInfo, BatchInfoWithOutput, L1MigrationInfo } from '../../../core';
|
|
4
4
|
export interface TokenPair {
|
|
5
5
|
l1_denom: string;
|
|
6
6
|
l2_denom: string;
|
|
@@ -29,5 +29,6 @@ export declare class OphostAPI extends BaseAPI {
|
|
|
29
29
|
withdrawalClaimed(bridge_id: number, withdrawal_hash: string, params?: APIParams, headers?: Record<string, string>): Promise<boolean>;
|
|
30
30
|
nextL1Sequence(bridge_id: number, params?: APIParams, headers?: Record<string, string>): Promise<number>;
|
|
31
31
|
batchInfos(bridge_id: number, params?: Partial<PaginationOptions & APIParams>, headers?: Record<string, string>): Promise<[BatchInfoWithOutput[], Pagination]>;
|
|
32
|
+
migrationInfo(bridge_id: number, l1_denom: string, params?: APIParams, headers?: Record<string, string>): Promise<L1MigrationInfo>;
|
|
32
33
|
parameters(params?: APIParams, headers?: Record<string, string>): Promise<OphostParams>;
|
|
33
34
|
}
|
package/dist/core/Coin.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export declare class Coin extends JSONSerializable<Coin.Amino, Coin.Data, Coin.P
|
|
|
22
22
|
toData(): Coin.Data;
|
|
23
23
|
static fromProto(proto: Coin.Proto): Coin;
|
|
24
24
|
toProto(): Coin.Proto;
|
|
25
|
+
static fromProtoDec(proto: Coin.Proto): Coin;
|
|
26
|
+
toProtoDec(): Coin.Proto;
|
|
25
27
|
}
|
|
26
28
|
export declare namespace Coin {
|
|
27
29
|
interface Amino {
|
package/dist/core/Coins.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export declare class Coins extends JSONSerializable<Coins.Amino, Coins.Data, Coi
|
|
|
32
32
|
toData(): Coins.Data;
|
|
33
33
|
static fromProto(data?: Coins.Proto): Coins;
|
|
34
34
|
toProto(): Coins.Proto;
|
|
35
|
+
static fromProtoDec(data?: Coins.Proto): Coins;
|
|
36
|
+
toProtoDec(): Coins.Proto;
|
|
35
37
|
}
|
|
36
38
|
export declare namespace Coins {
|
|
37
39
|
type Input = Coins.AminoDict | Coin[] | Coins | string;
|
|
@@ -6,6 +6,7 @@ import { PublishAuthorization } from './PublishAuthorization';
|
|
|
6
6
|
import { ExecuteAuthorization } from './ExecuteAuthorization';
|
|
7
7
|
import { StoreCodeAuthorization, ContractExecutionAuthorization, ContractMigrationAuthorization } from '../../wasm';
|
|
8
8
|
import { TransferAuthorization } from '../../ibc/applications/transfer';
|
|
9
|
+
import { CallAuthorization } from './CallAuthorization';
|
|
9
10
|
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
10
11
|
import { Grant as Grant_pb } from '@initia/initia.proto/cosmos/authz/v1beta1/authz';
|
|
11
12
|
export declare class AuthorizationGrant extends JSONSerializable<AuthorizationGrant.Amino, AuthorizationGrant.Data, AuthorizationGrant.Proto> {
|
|
@@ -30,11 +31,11 @@ export declare namespace AuthorizationGrant {
|
|
|
30
31
|
}
|
|
31
32
|
type Proto = Grant_pb;
|
|
32
33
|
}
|
|
33
|
-
export type Authorization = SendAuthorization | GenericAuthorization | StakeAuthorization | PublishAuthorization | ExecuteAuthorization | StoreCodeAuthorization | ContractExecutionAuthorization | ContractMigrationAuthorization | TransferAuthorization;
|
|
34
|
+
export type Authorization = SendAuthorization | GenericAuthorization | StakeAuthorization | PublishAuthorization | ExecuteAuthorization | StoreCodeAuthorization | ContractExecutionAuthorization | ContractMigrationAuthorization | TransferAuthorization | CallAuthorization;
|
|
34
35
|
export declare namespace Authorization {
|
|
35
|
-
type Amino = SendAuthorization.Amino | GenericAuthorization.Amino | StakeAuthorization.Amino | PublishAuthorization.Amino | ExecuteAuthorization.Amino | StoreCodeAuthorization.Amino | ContractExecutionAuthorization.Amino | ContractMigrationAuthorization.Amino;
|
|
36
|
-
type Data = SendAuthorization.Data | GenericAuthorization.Data | StakeAuthorization.Data | PublishAuthorization.Data | ExecuteAuthorization.Data | StoreCodeAuthorization.Data | ContractExecutionAuthorization.Data | ContractMigrationAuthorization.Data | TransferAuthorization.Data;
|
|
37
|
-
type Proto = SendAuthorization.Proto | GenericAuthorization.Proto | StakeAuthorization.Proto | PublishAuthorization.Proto | ExecuteAuthorization.Proto | StoreCodeAuthorization.Proto | ContractExecutionAuthorization.Proto | ContractMigrationAuthorization.Proto | TransferAuthorization.Proto;
|
|
36
|
+
type Amino = SendAuthorization.Amino | GenericAuthorization.Amino | StakeAuthorization.Amino | PublishAuthorization.Amino | ExecuteAuthorization.Amino | StoreCodeAuthorization.Amino | ContractExecutionAuthorization.Amino | ContractMigrationAuthorization.Amino | CallAuthorization.Amino;
|
|
37
|
+
type Data = SendAuthorization.Data | GenericAuthorization.Data | StakeAuthorization.Data | PublishAuthorization.Data | ExecuteAuthorization.Data | StoreCodeAuthorization.Data | ContractExecutionAuthorization.Data | ContractMigrationAuthorization.Data | TransferAuthorization.Data | CallAuthorization.Data;
|
|
38
|
+
type Proto = SendAuthorization.Proto | GenericAuthorization.Proto | StakeAuthorization.Proto | PublishAuthorization.Proto | ExecuteAuthorization.Proto | StoreCodeAuthorization.Proto | ContractExecutionAuthorization.Proto | ContractMigrationAuthorization.Proto | TransferAuthorization.Proto | CallAuthorization.Proto;
|
|
38
39
|
function fromAmino(data: Authorization.Amino): Authorization;
|
|
39
40
|
function fromData(data: Authorization.Data): Authorization;
|
|
40
41
|
function fromProto(proto: Any): Authorization;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { CallAuthorization as CallAuthorization_pb } from '@initia/initia.proto/minievm/evm/v1/authz';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
export declare class CallAuthorization extends JSONSerializable<CallAuthorization.Amino, CallAuthorization.Data, CallAuthorization.Proto> {
|
|
5
|
+
contracts: string[];
|
|
6
|
+
constructor(contracts: string[]);
|
|
7
|
+
static fromAmino(data: CallAuthorization.Amino): CallAuthorization;
|
|
8
|
+
toAmino(): CallAuthorization.Amino;
|
|
9
|
+
static fromData(data: CallAuthorization.Data): CallAuthorization;
|
|
10
|
+
toData(): CallAuthorization.Data;
|
|
11
|
+
static fromProto(proto: CallAuthorization.Proto): CallAuthorization;
|
|
12
|
+
toProto(): CallAuthorization.Proto;
|
|
13
|
+
packAny(): Any;
|
|
14
|
+
static unpackAny(msgAny: Any): CallAuthorization;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace CallAuthorization {
|
|
17
|
+
interface Amino {
|
|
18
|
+
type: 'evm/CallAuthorization';
|
|
19
|
+
value: {
|
|
20
|
+
contracts: string[] | null;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
interface Data {
|
|
24
|
+
'@type': '/minievm.evm.v1.CallAuthorization';
|
|
25
|
+
contracts: string[];
|
|
26
|
+
}
|
|
27
|
+
type Proto = CallAuthorization_pb;
|
|
28
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSONSerializable } from '../../util/json';
|
|
2
|
+
import { GasEnforcement } from './GasEnforcement';
|
|
2
3
|
import { Params as Params_pb } from '@initia/initia.proto/minievm/evm/v1/types';
|
|
3
4
|
export declare class EvmParams extends JSONSerializable<EvmParams.Amino, EvmParams.Data, EvmParams.Proto> {
|
|
4
5
|
extra_eips: number[];
|
|
@@ -8,7 +9,8 @@ export declare class EvmParams extends JSONSerializable<EvmParams.Amino, EvmPara
|
|
|
8
9
|
fee_denom: string;
|
|
9
10
|
gas_refund_ratio: string;
|
|
10
11
|
num_retain_block_hashes: number;
|
|
11
|
-
|
|
12
|
+
gas_enforcement?: GasEnforcement | undefined;
|
|
13
|
+
constructor(extra_eips: number[], allowed_publishers: string[], allow_custom_erc20: boolean, allowed_custom_erc20s: string[], fee_denom: string, gas_refund_ratio: string, num_retain_block_hashes: number, gas_enforcement?: GasEnforcement | undefined);
|
|
12
14
|
static fromAmino(data: EvmParams.Amino): EvmParams;
|
|
13
15
|
toAmino(): EvmParams.Amino;
|
|
14
16
|
static fromData(data: EvmParams.Data): EvmParams;
|
|
@@ -25,6 +27,7 @@ export declare namespace EvmParams {
|
|
|
25
27
|
fee_denom: string;
|
|
26
28
|
gas_refund_ratio: string;
|
|
27
29
|
num_retain_block_hashes: string;
|
|
30
|
+
gas_enforcement: GasEnforcement.Amino | null;
|
|
28
31
|
}
|
|
29
32
|
interface Data {
|
|
30
33
|
extra_eips: string[];
|
|
@@ -34,6 +37,7 @@ export declare namespace EvmParams {
|
|
|
34
37
|
fee_denom: string;
|
|
35
38
|
gas_refund_ratio: string;
|
|
36
39
|
num_retain_block_hashes: string;
|
|
40
|
+
gas_enforcement: GasEnforcement.Data | null;
|
|
37
41
|
}
|
|
38
42
|
type Proto = Params_pb;
|
|
39
43
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../util/json';
|
|
2
|
+
import { GasEnforcement as GasEnforcement_pb } from '@initia/initia.proto/minievm/evm/v1/types';
|
|
3
|
+
export declare class GasEnforcement extends JSONSerializable<GasEnforcement.Amino, GasEnforcement.Data, GasEnforcement.Proto> {
|
|
4
|
+
max_gas_fee_cap: string;
|
|
5
|
+
max_gas_limit: number;
|
|
6
|
+
unlimited_gas_senders: string[];
|
|
7
|
+
constructor(max_gas_fee_cap: string, max_gas_limit: number, unlimited_gas_senders: string[]);
|
|
8
|
+
static fromAmino(data: GasEnforcement.Amino): GasEnforcement;
|
|
9
|
+
toAmino(): GasEnforcement.Amino;
|
|
10
|
+
static fromData(data: GasEnforcement.Data): GasEnforcement;
|
|
11
|
+
toData(): GasEnforcement.Data;
|
|
12
|
+
static fromProto(data: GasEnforcement.Proto): GasEnforcement;
|
|
13
|
+
toProto(): GasEnforcement.Proto;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace GasEnforcement {
|
|
16
|
+
interface Amino {
|
|
17
|
+
max_gas_fee_cap: string;
|
|
18
|
+
max_gas_limit: string;
|
|
19
|
+
unlimited_gas_senders: string[];
|
|
20
|
+
}
|
|
21
|
+
interface Data {
|
|
22
|
+
max_gas_fee_cap: string;
|
|
23
|
+
max_gas_limit: string;
|
|
24
|
+
unlimited_gas_senders: string[];
|
|
25
|
+
}
|
|
26
|
+
type Proto = GasEnforcement_pb;
|
|
27
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../util/json';
|
|
2
|
+
import { SetCodeAuthorization as SetCodeAuthorization_pb } from '@initia/initia.proto/minievm/evm/v1/types';
|
|
3
|
+
export declare class SetCodeAuthorization extends JSONSerializable<SetCodeAuthorization.Amino, SetCodeAuthorization.Data, SetCodeAuthorization.Proto> {
|
|
4
|
+
chain_id: string;
|
|
5
|
+
address: string;
|
|
6
|
+
nonce: number;
|
|
7
|
+
signature: string;
|
|
8
|
+
constructor(chain_id: string, address: string, nonce: number, signature: string);
|
|
9
|
+
static fromAmino(data: SetCodeAuthorization.Amino): SetCodeAuthorization;
|
|
10
|
+
toAmino(): SetCodeAuthorization.Amino;
|
|
11
|
+
static fromData(data: SetCodeAuthorization.Data): SetCodeAuthorization;
|
|
12
|
+
toData(): SetCodeAuthorization.Data;
|
|
13
|
+
static fromProto(data: SetCodeAuthorization.Proto): SetCodeAuthorization;
|
|
14
|
+
toProto(): SetCodeAuthorization.Proto;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace SetCodeAuthorization {
|
|
17
|
+
interface Amino {
|
|
18
|
+
chain_id: string;
|
|
19
|
+
address: string;
|
|
20
|
+
nonce: string;
|
|
21
|
+
signature: string;
|
|
22
|
+
}
|
|
23
|
+
interface Data {
|
|
24
|
+
chain_id: string;
|
|
25
|
+
address: string;
|
|
26
|
+
nonce: string;
|
|
27
|
+
signature: string;
|
|
28
|
+
}
|
|
29
|
+
type Proto = SetCodeAuthorization_pb;
|
|
30
|
+
}
|
package/dist/core/evm/index.d.ts
CHANGED
|
@@ -3,13 +3,15 @@ import { AccAddress } from '../../bech32';
|
|
|
3
3
|
import { AccessTuple } from '../AccessTuple';
|
|
4
4
|
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
5
5
|
import { MsgCall as MsgCall_pb } from '@initia/initia.proto/minievm/evm/v1/tx';
|
|
6
|
+
import { SetCodeAuthorization } from '../SetCodeAuthorization';
|
|
6
7
|
export declare class MsgCall extends JSONSerializable<MsgCall.Amino, MsgCall.Data, MsgCall.Proto> {
|
|
7
8
|
sender: AccAddress;
|
|
8
9
|
contract_addr: AccAddress;
|
|
9
10
|
input: string;
|
|
10
11
|
value: string;
|
|
11
12
|
access_list: AccessTuple[];
|
|
12
|
-
|
|
13
|
+
auth_list?: SetCodeAuthorization[] | undefined;
|
|
14
|
+
constructor(sender: AccAddress, contract_addr: AccAddress, input: string, value: string, access_list: AccessTuple[], auth_list?: SetCodeAuthorization[] | undefined);
|
|
13
15
|
static fromAmino(data: MsgCall.Amino): MsgCall;
|
|
14
16
|
toAmino(): MsgCall.Amino;
|
|
15
17
|
static fromData(data: MsgCall.Data): MsgCall;
|
|
@@ -28,6 +30,7 @@ export declare namespace MsgCall {
|
|
|
28
30
|
input: string;
|
|
29
31
|
value: string;
|
|
30
32
|
access_list: AccessTuple.Amino[] | null;
|
|
33
|
+
auth_list?: SetCodeAuthorization.Amino[];
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
interface Data {
|
|
@@ -37,6 +40,7 @@ export declare namespace MsgCall {
|
|
|
37
40
|
input: string;
|
|
38
41
|
value: string;
|
|
39
42
|
access_list: AccessTuple.Data[];
|
|
43
|
+
auth_list?: SetCodeAuthorization.Data[];
|
|
40
44
|
}
|
|
41
45
|
type Proto = MsgCall_pb;
|
|
42
46
|
}
|
|
@@ -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 { MsgSetAllowedDenoms as MsgSetAllowedDenoms_pb } from '@initia/initia.proto/noble/forwarding/v1/tx';
|
|
5
|
+
export declare class MsgSetAllowedDenoms extends JSONSerializable<MsgSetAllowedDenoms.Amino, MsgSetAllowedDenoms.Data, MsgSetAllowedDenoms.Proto> {
|
|
6
|
+
signer: AccAddress;
|
|
7
|
+
denoms: string[];
|
|
8
|
+
constructor(signer: AccAddress, denoms: string[]);
|
|
9
|
+
static fromAmino(data: MsgSetAllowedDenoms.Amino): MsgSetAllowedDenoms;
|
|
10
|
+
toAmino(): MsgSetAllowedDenoms.Amino;
|
|
11
|
+
static fromData(data: MsgSetAllowedDenoms.Data): MsgSetAllowedDenoms;
|
|
12
|
+
toData(): MsgSetAllowedDenoms.Data;
|
|
13
|
+
static fromProto(data: MsgSetAllowedDenoms.Proto): MsgSetAllowedDenoms;
|
|
14
|
+
toProto(): MsgSetAllowedDenoms.Proto;
|
|
15
|
+
packAny(): Any;
|
|
16
|
+
static unpackAny(msgAny: Any): MsgSetAllowedDenoms;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace MsgSetAllowedDenoms {
|
|
19
|
+
interface Amino {
|
|
20
|
+
type: 'noble/forwarding/SetAllowedDenoms';
|
|
21
|
+
value: {
|
|
22
|
+
signer: AccAddress;
|
|
23
|
+
denoms: string[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface Data {
|
|
27
|
+
'@type': '/noble.forwarding.v1.MsgSetAllowedDenoms';
|
|
28
|
+
signer: AccAddress;
|
|
29
|
+
denoms: string[];
|
|
30
|
+
}
|
|
31
|
+
type Proto = MsgSetAllowedDenoms_pb;
|
|
32
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { AccAddress } from '../../bech32';
|
|
3
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
4
|
+
import { MsgSetMemo as MsgSetMemo_pb } from '@initia/initia.proto/noble/forwarding/v1/tx';
|
|
5
|
+
export declare class MsgSetMemo extends JSONSerializable<MsgSetMemo.Amino, MsgSetMemo.Data, MsgSetMemo.Proto> {
|
|
6
|
+
signer: AccAddress;
|
|
7
|
+
recipient: string;
|
|
8
|
+
channel: string;
|
|
9
|
+
fallback: AccAddress;
|
|
10
|
+
denom: string;
|
|
11
|
+
memo: string;
|
|
12
|
+
constructor(signer: AccAddress, recipient: string, channel: string, fallback: AccAddress, denom: string, memo: string);
|
|
13
|
+
static fromAmino(data: MsgSetMemo.Amino): MsgSetMemo;
|
|
14
|
+
toAmino(): MsgSetMemo.Amino;
|
|
15
|
+
static fromData(data: MsgSetMemo.Data): MsgSetMemo;
|
|
16
|
+
toData(): MsgSetMemo.Data;
|
|
17
|
+
static fromProto(data: MsgSetMemo.Proto): MsgSetMemo;
|
|
18
|
+
toProto(): MsgSetMemo.Proto;
|
|
19
|
+
packAny(): Any;
|
|
20
|
+
static unpackAny(msgAny: Any): MsgSetMemo;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace MsgSetMemo {
|
|
23
|
+
interface Amino {
|
|
24
|
+
type: 'noble/forwarding/SetMemo';
|
|
25
|
+
value: {
|
|
26
|
+
signer: AccAddress;
|
|
27
|
+
recipient: string;
|
|
28
|
+
channel: string;
|
|
29
|
+
fallback: AccAddress;
|
|
30
|
+
denom: string;
|
|
31
|
+
memo: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
interface Data {
|
|
35
|
+
'@type': '/noble.forwarding.v1.MsgSetMemo';
|
|
36
|
+
signer: AccAddress;
|
|
37
|
+
recipient: string;
|
|
38
|
+
channel: string;
|
|
39
|
+
fallback: AccAddress;
|
|
40
|
+
denom: string;
|
|
41
|
+
memo: string;
|
|
42
|
+
}
|
|
43
|
+
type Proto = MsgSetMemo_pb;
|
|
44
|
+
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { MsgRegisterForwardingAccount } from './MsgRegisterForwardingAccount';
|
|
2
2
|
import { MsgClearForwardingAccount } from './MsgClearForwardingAccount';
|
|
3
|
+
import { MsgSetAllowedDenoms } from './MsgSetAllowedDenoms';
|
|
4
|
+
import { MsgSetMemo } from './MsgSetMemo';
|
|
3
5
|
export * from './MsgRegisterForwardingAccount';
|
|
4
6
|
export * from './MsgClearForwardingAccount';
|
|
5
|
-
export
|
|
7
|
+
export * from './MsgSetAllowedDenoms';
|
|
8
|
+
export * from './MsgSetMemo';
|
|
9
|
+
export type ForwardingMsg = MsgRegisterForwardingAccount | MsgClearForwardingAccount | MsgSetAllowedDenoms | MsgSetMemo;
|
|
6
10
|
export declare namespace ForwardingMsg {
|
|
7
|
-
type Amino = MsgRegisterForwardingAccount.Amino | MsgClearForwardingAccount.Amino;
|
|
8
|
-
type Data = MsgRegisterForwardingAccount.Data | MsgClearForwardingAccount.Data;
|
|
9
|
-
type Proto = MsgRegisterForwardingAccount.Proto | MsgClearForwardingAccount.Proto;
|
|
11
|
+
type Amino = MsgRegisterForwardingAccount.Amino | MsgClearForwardingAccount.Amino | MsgSetAllowedDenoms.Amino | MsgSetMemo.Amino;
|
|
12
|
+
type Data = MsgRegisterForwardingAccount.Data | MsgClearForwardingAccount.Data | MsgSetAllowedDenoms.Data | MsgSetMemo.Data;
|
|
13
|
+
type Proto = MsgRegisterForwardingAccount.Proto | MsgClearForwardingAccount.Proto | MsgSetAllowedDenoms.Proto | MsgSetMemo.Proto;
|
|
10
14
|
}
|
|
@@ -21,11 +21,12 @@ export declare class GovParams extends JSONSerializable<GovParams.Amino, GovPara
|
|
|
21
21
|
min_deposit_ratio: string;
|
|
22
22
|
emergency_tally_interval: Duration;
|
|
23
23
|
low_threshold_functions: string[];
|
|
24
|
-
vesting
|
|
24
|
+
vesting: Vesting | undefined;
|
|
25
|
+
emergency_submitters: string[];
|
|
25
26
|
min_deposit: Coins;
|
|
26
27
|
expedited_min_deposit: Coins;
|
|
27
28
|
emergency_min_deposit: Coins;
|
|
28
|
-
constructor(min_deposit: Coins.Input, max_deposit_period: Duration, voting_period: Duration, quorum: string, threshold: string, veto_threshold: string, min_initial_deposit_ratio: string, proposal_cancel_ratio: string, proposal_cancel_dest: AccAddress, expedited_voting_period: Duration, expedited_threshold: string, expedited_min_deposit: Coins.Input, burn_vote_quorum: boolean, burn_proposal_deposit_prevote: boolean, burn_vote_veto: boolean, min_deposit_ratio: string, emergency_min_deposit: Coins.Input, emergency_tally_interval: Duration, low_threshold_functions: string[], vesting
|
|
29
|
+
constructor(min_deposit: Coins.Input, max_deposit_period: Duration, voting_period: Duration, quorum: string, threshold: string, veto_threshold: string, min_initial_deposit_ratio: string, proposal_cancel_ratio: string, proposal_cancel_dest: AccAddress, expedited_voting_period: Duration, expedited_threshold: string, expedited_min_deposit: Coins.Input, burn_vote_quorum: boolean, burn_proposal_deposit_prevote: boolean, burn_vote_veto: boolean, min_deposit_ratio: string, emergency_min_deposit: Coins.Input, emergency_tally_interval: Duration, low_threshold_functions: string[], vesting: Vesting | undefined, emergency_submitters: string[]);
|
|
29
30
|
static fromAmino(data: GovParams.Amino): GovParams;
|
|
30
31
|
toAmino(): GovParams.Amino;
|
|
31
32
|
static fromData(data: GovParams.Data): GovParams;
|
|
@@ -55,6 +56,7 @@ export declare namespace GovParams {
|
|
|
55
56
|
emergency_tally_interval: Duration.Amino;
|
|
56
57
|
low_threshold_functions: string[];
|
|
57
58
|
vesting?: Vesting.Amino;
|
|
59
|
+
emergency_submitters: string[] | null;
|
|
58
60
|
}
|
|
59
61
|
interface Data {
|
|
60
62
|
min_deposit: Coins.Data;
|
|
@@ -77,6 +79,7 @@ export declare namespace GovParams {
|
|
|
77
79
|
emergency_tally_interval: Duration.Data;
|
|
78
80
|
low_threshold_functions: string[];
|
|
79
81
|
vesting?: Vesting.Data;
|
|
82
|
+
emergency_submitters: string[];
|
|
80
83
|
}
|
|
81
84
|
type Proto = Params_pb;
|
|
82
85
|
}
|
|
@@ -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 { MsgActivateEmergencyProposal as MsgActivateEmergencyProposal_pb } from '@initia/initia.proto/initia/gov/v1/tx';
|
|
5
|
+
export declare class MsgActivateEmergencyProposal extends JSONSerializable<MsgActivateEmergencyProposal.Amino, MsgActivateEmergencyProposal.Data, MsgActivateEmergencyProposal.Proto> {
|
|
6
|
+
sender: AccAddress;
|
|
7
|
+
proposal_id: number;
|
|
8
|
+
constructor(sender: AccAddress, proposal_id: number);
|
|
9
|
+
static fromAmino(data: MsgActivateEmergencyProposal.Amino): MsgActivateEmergencyProposal;
|
|
10
|
+
toAmino(): MsgActivateEmergencyProposal.Amino;
|
|
11
|
+
static fromData(data: MsgActivateEmergencyProposal.Data): MsgActivateEmergencyProposal;
|
|
12
|
+
toData(): MsgActivateEmergencyProposal.Data;
|
|
13
|
+
static fromProto(data: MsgActivateEmergencyProposal.Proto): MsgActivateEmergencyProposal;
|
|
14
|
+
toProto(): MsgActivateEmergencyProposal.Proto;
|
|
15
|
+
packAny(): Any;
|
|
16
|
+
static unpackAny(msgAny: Any): MsgActivateEmergencyProposal;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace MsgActivateEmergencyProposal {
|
|
19
|
+
interface Amino {
|
|
20
|
+
type: 'gov/MsgActivateEmergencyProposal';
|
|
21
|
+
value: {
|
|
22
|
+
sender: AccAddress;
|
|
23
|
+
proposal_id: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface Data {
|
|
27
|
+
'@type': '/initia.gov.v1.MsgActivateEmergencyProposal';
|
|
28
|
+
sender: AccAddress;
|
|
29
|
+
proposal_id: string;
|
|
30
|
+
}
|
|
31
|
+
type Proto = MsgActivateEmergencyProposal_pb;
|
|
32
|
+
}
|
|
@@ -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 { MsgAddEmergencySubmitters as MsgAddEmergencySubmitters_pb } from '@initia/initia.proto/initia/gov/v1/tx';
|
|
5
|
+
export declare class MsgAddEmergencySubmitters extends JSONSerializable<MsgAddEmergencySubmitters.Amino, MsgAddEmergencySubmitters.Data, MsgAddEmergencySubmitters.Proto> {
|
|
6
|
+
authority: AccAddress;
|
|
7
|
+
emergency_submitters: string[];
|
|
8
|
+
constructor(authority: AccAddress, emergency_submitters: string[]);
|
|
9
|
+
static fromAmino(data: MsgAddEmergencySubmitters.Amino): MsgAddEmergencySubmitters;
|
|
10
|
+
toAmino(): MsgAddEmergencySubmitters.Amino;
|
|
11
|
+
static fromData(data: MsgAddEmergencySubmitters.Data): MsgAddEmergencySubmitters;
|
|
12
|
+
toData(): MsgAddEmergencySubmitters.Data;
|
|
13
|
+
static fromProto(data: MsgAddEmergencySubmitters.Proto): MsgAddEmergencySubmitters;
|
|
14
|
+
toProto(): MsgAddEmergencySubmitters.Proto;
|
|
15
|
+
packAny(): Any;
|
|
16
|
+
static unpackAny(msgAny: Any): MsgAddEmergencySubmitters;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace MsgAddEmergencySubmitters {
|
|
19
|
+
interface Amino {
|
|
20
|
+
type: 'gov/MsgAddEmergencySubmitters';
|
|
21
|
+
value: {
|
|
22
|
+
authority: AccAddress;
|
|
23
|
+
emergency_submitters: string[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface Data {
|
|
27
|
+
'@type': '/initia.gov.v1.MsgAddEmergencySubmitters';
|
|
28
|
+
authority: AccAddress;
|
|
29
|
+
emergency_submitters: string[];
|
|
30
|
+
}
|
|
31
|
+
type Proto = MsgAddEmergencySubmitters_pb;
|
|
32
|
+
}
|
|
@@ -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 { MsgRemoveEmergencySubmitters as MsgRemoveEmergencySubmitters_pb } from '@initia/initia.proto/initia/gov/v1/tx';
|
|
5
|
+
export declare class MsgRemoveEmergencySubmitters extends JSONSerializable<MsgRemoveEmergencySubmitters.Amino, MsgRemoveEmergencySubmitters.Data, MsgRemoveEmergencySubmitters.Proto> {
|
|
6
|
+
authority: AccAddress;
|
|
7
|
+
emergency_submitters: string[];
|
|
8
|
+
constructor(authority: AccAddress, emergency_submitters: string[]);
|
|
9
|
+
static fromAmino(data: MsgRemoveEmergencySubmitters.Amino): MsgRemoveEmergencySubmitters;
|
|
10
|
+
toAmino(): MsgRemoveEmergencySubmitters.Amino;
|
|
11
|
+
static fromData(data: MsgRemoveEmergencySubmitters.Data): MsgRemoveEmergencySubmitters;
|
|
12
|
+
toData(): MsgRemoveEmergencySubmitters.Data;
|
|
13
|
+
static fromProto(data: MsgRemoveEmergencySubmitters.Proto): MsgRemoveEmergencySubmitters;
|
|
14
|
+
toProto(): MsgRemoveEmergencySubmitters.Proto;
|
|
15
|
+
packAny(): Any;
|
|
16
|
+
static unpackAny(msgAny: Any): MsgRemoveEmergencySubmitters;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace MsgRemoveEmergencySubmitters {
|
|
19
|
+
interface Amino {
|
|
20
|
+
type: 'gov/MsgRemoveEmergencySubmitters';
|
|
21
|
+
value: {
|
|
22
|
+
authority: AccAddress;
|
|
23
|
+
emergency_submitters: string[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface Data {
|
|
27
|
+
'@type': '/initia.gov.v1.MsgRemoveEmergencySubmitters';
|
|
28
|
+
authority: AccAddress;
|
|
29
|
+
emergency_submitters: string[];
|
|
30
|
+
}
|
|
31
|
+
type Proto = MsgRemoveEmergencySubmitters_pb;
|
|
32
|
+
}
|
|
@@ -8,6 +8,9 @@ import { MsgDeposit } from './MsgDeposit';
|
|
|
8
8
|
import { MsgVoteWeightedLegacy } from './MsgVoteWeightedLegacy';
|
|
9
9
|
import { MsgVoteWeighted } from './MsgVoteWeighted';
|
|
10
10
|
import { MsgUpdateGovParams } from './MsgUpdateGovParams';
|
|
11
|
+
import { MsgAddEmergencySubmitters } from './MsgAddEmergencySubmitters';
|
|
12
|
+
import { MsgRemoveEmergencySubmitters } from './MsgRemoveEmergencySubmitters';
|
|
13
|
+
import { MsgActivateEmergencyProposal } from './MsgActivateEmergencyProposal';
|
|
11
14
|
export * from './MsgCancelProposal';
|
|
12
15
|
export * from './MsgDepositLegacy';
|
|
13
16
|
export * from './MsgDeposit';
|
|
@@ -18,9 +21,12 @@ export * from './MsgVote';
|
|
|
18
21
|
export * from './MsgVoteWeightedLegacy';
|
|
19
22
|
export * from './MsgVoteWeighted';
|
|
20
23
|
export * from './MsgUpdateGovParams';
|
|
21
|
-
export
|
|
24
|
+
export * from './MsgAddEmergencySubmitters';
|
|
25
|
+
export * from './MsgRemoveEmergencySubmitters';
|
|
26
|
+
export * from './MsgActivateEmergencyProposal';
|
|
27
|
+
export type GovMsg = MsgCancelProposal | MsgDepositLegacy | MsgDeposit | MsgSubmitProposalLegacy | MsgSubmitProposal | MsgVoteLegacy | MsgVote | MsgVoteWeightedLegacy | MsgVoteWeighted | MsgUpdateGovParams | MsgAddEmergencySubmitters | MsgRemoveEmergencySubmitters | MsgActivateEmergencyProposal;
|
|
22
28
|
export declare namespace GovMsg {
|
|
23
|
-
type Amino = MsgCancelProposal.Amino | MsgDepositLegacy.Amino | MsgDeposit.Amino | MsgSubmitProposalLegacy.Amino | MsgSubmitProposal.Amino | MsgVoteLegacy.Amino | MsgVote.Amino | MsgVoteWeightedLegacy.Amino | MsgVoteWeighted.Amino | MsgUpdateGovParams.Amino;
|
|
24
|
-
type Data = MsgCancelProposal.Data | MsgDepositLegacy.Data | MsgDeposit.Data | MsgSubmitProposalLegacy.Data | MsgSubmitProposal.Data | MsgVoteLegacy.Data | MsgVote.Data | MsgVoteWeightedLegacy.Data | MsgVoteWeighted.Data | MsgUpdateGovParams.Data;
|
|
25
|
-
type Proto = MsgCancelProposal.Proto | MsgDepositLegacy.Proto | MsgDeposit.Proto | MsgSubmitProposalLegacy.Proto | MsgSubmitProposal.Proto | MsgVoteLegacy.Proto | MsgVote.Proto | MsgVoteWeightedLegacy.Proto | MsgVoteWeighted.Proto | MsgUpdateGovParams.Proto;
|
|
29
|
+
type Amino = MsgCancelProposal.Amino | MsgDepositLegacy.Amino | MsgDeposit.Amino | MsgSubmitProposalLegacy.Amino | MsgSubmitProposal.Amino | MsgVoteLegacy.Amino | MsgVote.Amino | MsgVoteWeightedLegacy.Amino | MsgVoteWeighted.Amino | MsgUpdateGovParams.Amino | MsgAddEmergencySubmitters.Amino | MsgRemoveEmergencySubmitters.Amino | MsgActivateEmergencyProposal.Amino;
|
|
30
|
+
type Data = MsgCancelProposal.Data | MsgDepositLegacy.Data | MsgDeposit.Data | MsgSubmitProposalLegacy.Data | MsgSubmitProposal.Data | MsgVoteLegacy.Data | MsgVote.Data | MsgVoteWeightedLegacy.Data | MsgVoteWeighted.Data | MsgUpdateGovParams.Data | MsgAddEmergencySubmitters.Data | MsgRemoveEmergencySubmitters.Data | MsgActivateEmergencyProposal.Data;
|
|
31
|
+
type Proto = MsgCancelProposal.Proto | MsgDepositLegacy.Proto | MsgDeposit.Proto | MsgSubmitProposalLegacy.Proto | MsgSubmitProposal.Proto | MsgVoteLegacy.Proto | MsgVote.Proto | MsgVoteWeightedLegacy.Proto | MsgVoteWeighted.Proto | MsgUpdateGovParams.Proto | MsgAddEmergencySubmitters.Proto | MsgRemoveEmergencySubmitters.Proto | MsgActivateEmergencyProposal.Proto;
|
|
26
32
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../util/json';
|
|
2
|
+
import { MigrationInfo as MigrationInfo_pb } from '@initia/opinit.proto/opinit/opchild/v1/types';
|
|
3
|
+
export declare class L2MigrationInfo extends JSONSerializable<L2MigrationInfo.Amino, L2MigrationInfo.Data, L2MigrationInfo.Proto> {
|
|
4
|
+
denom: string;
|
|
5
|
+
ibc_channel_id: string;
|
|
6
|
+
ibc_port_id: string;
|
|
7
|
+
constructor(denom: string, ibc_channel_id: string, ibc_port_id: string);
|
|
8
|
+
static fromAmino(data: L2MigrationInfo.Amino): L2MigrationInfo;
|
|
9
|
+
toAmino(): L2MigrationInfo.Amino;
|
|
10
|
+
static fromData(data: L2MigrationInfo.Data): L2MigrationInfo;
|
|
11
|
+
toData(): L2MigrationInfo.Data;
|
|
12
|
+
static fromProto(data: L2MigrationInfo.Proto): L2MigrationInfo;
|
|
13
|
+
toProto(): L2MigrationInfo.Proto;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace L2MigrationInfo {
|
|
16
|
+
interface Amino {
|
|
17
|
+
denom: string;
|
|
18
|
+
ibc_channel_id: string;
|
|
19
|
+
ibc_port_id: string;
|
|
20
|
+
}
|
|
21
|
+
interface Data {
|
|
22
|
+
denom: string;
|
|
23
|
+
ibc_channel_id: string;
|
|
24
|
+
ibc_port_id: string;
|
|
25
|
+
}
|
|
26
|
+
type Proto = MigrationInfo_pb;
|
|
27
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { JSONSerializable } from '../../../util/json';
|
|
2
|
+
import { AccAddress, ValAddress } from '../../bech32';
|
|
3
|
+
import { ValConsPublicKey } from '../../PublicKey';
|
|
4
|
+
import { MsgAddAttestor as MsgAddAttestor_pb } from '@initia/opinit.proto/opinit/opchild/v1/tx';
|
|
5
|
+
import { Any } from '@initia/initia.proto/google/protobuf/any';
|
|
6
|
+
export declare class MsgAddAttestor extends JSONSerializable<MsgAddAttestor.Amino, MsgAddAttestor.Data, MsgAddAttestor.Proto> {
|
|
7
|
+
authority: AccAddress;
|
|
8
|
+
moniker: string;
|
|
9
|
+
attestor_address: ValAddress;
|
|
10
|
+
pubkey: ValConsPublicKey;
|
|
11
|
+
constructor(authority: AccAddress, moniker: string, attestor_address: ValAddress, pubkey: ValConsPublicKey);
|
|
12
|
+
static fromAmino(data: MsgAddAttestor.Amino): MsgAddAttestor;
|
|
13
|
+
toAmino(): MsgAddAttestor.Amino;
|
|
14
|
+
static fromData(data: MsgAddAttestor.Data): MsgAddAttestor;
|
|
15
|
+
toData(): MsgAddAttestor.Data;
|
|
16
|
+
static fromProto(data: MsgAddAttestor.Proto): MsgAddAttestor;
|
|
17
|
+
toProto(): MsgAddAttestor.Proto;
|
|
18
|
+
packAny(): Any;
|
|
19
|
+
static unpackAny(msgAny: Any): MsgAddAttestor;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace MsgAddAttestor {
|
|
22
|
+
interface Amino {
|
|
23
|
+
type: 'opchild/MsgAddAttestor';
|
|
24
|
+
value: {
|
|
25
|
+
authority: AccAddress;
|
|
26
|
+
moniker: string;
|
|
27
|
+
attestor_address: ValAddress;
|
|
28
|
+
pubkey: ValConsPublicKey.Amino;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
interface Data {
|
|
32
|
+
'@type': '/opinit.opchild.v1.MsgAddAttestor';
|
|
33
|
+
authority: AccAddress;
|
|
34
|
+
moniker: string;
|
|
35
|
+
attestor_address: ValAddress;
|
|
36
|
+
pubkey: ValConsPublicKey.Data;
|
|
37
|
+
}
|
|
38
|
+
type Proto = MsgAddAttestor_pb;
|
|
39
|
+
}
|