carbon-js-sdk 0.5.14 → 0.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clients/ETHClient.js +1 -1
- package/lib/clients/GrpcQueryClient.d.ts +1 -1
- package/lib/clients/GrpcQueryClient.js +1 -1
- package/lib/provider/amino/types/erc20.js +2 -2
- package/lib/provider/amino/types/ibc.js +0 -3
- package/lib/provider/amino/types/perpsliquidity.js +6 -6
- package/lib/provider/amino/utils.js +7 -2
- package/lib/provider/metamask/MetaMask.js +0 -1
- package/lib/util/blockchain.d.ts +1 -1
- package/lib/util/eip712.js +7 -7
- package/package.json +1 -1
- package/lib/clients/GrpcNodeQueryClient.d.ts +0 -12
- package/lib/clients/GrpcNodeQueryClient.js +0 -53
- package/lib/clients/GrpcWebQueryClient.d.ts +0 -22
- package/lib/clients/GrpcWebQueryClient.js +0 -56
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.d.ts +0 -76
- package/lib/codec/ibc/applications/interchain_accounts/v1/genesis.js +0 -424
package/lib/clients/ETHClient.js
CHANGED
|
@@ -369,6 +369,6 @@ ETHClient.BLOCKCHAINV2_MAPPING = {
|
|
|
369
369
|
[blockchain_1.Blockchain.Ethereum]: "Ethereum",
|
|
370
370
|
[blockchain_1.Blockchain.Arbitrum]: "Arbitrum",
|
|
371
371
|
[blockchain_1.Blockchain.Polygon]: "Polygon",
|
|
372
|
-
[blockchain_1.Blockchain.Okc]: "
|
|
372
|
+
[blockchain_1.Blockchain.Okc]: "OKC",
|
|
373
373
|
};
|
|
374
374
|
exports.default = ETHClient;
|
|
@@ -7,7 +7,7 @@ export declare class GrpcWebError extends Error {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Uses grpc-web module on cosmos-sdk to simulate gRPC queries
|
|
10
|
-
*
|
|
10
|
+
* throught HTTP/1.1.
|
|
11
11
|
* see https://github.com/cosmos/cosmos-sdk/issues/7345
|
|
12
12
|
*/
|
|
13
13
|
export declare class GrpcQueryClient implements ProtobufRpcClient {
|
|
@@ -12,7 +12,7 @@ class GrpcWebError extends Error {
|
|
|
12
12
|
exports.GrpcWebError = GrpcWebError;
|
|
13
13
|
/**
|
|
14
14
|
* Uses grpc-web module on cosmos-sdk to simulate gRPC queries
|
|
15
|
-
*
|
|
15
|
+
* throught HTTP/1.1.
|
|
16
16
|
* see https://github.com/cosmos/cosmos-sdk/issues/7345
|
|
17
17
|
*/
|
|
18
18
|
class GrpcQueryClient {
|
|
@@ -34,7 +34,7 @@ const MsgConvertCoin = {
|
|
|
34
34
|
valueMap: {},
|
|
35
35
|
};
|
|
36
36
|
const ERC20Amino = {
|
|
37
|
-
[CarbonTx.Types.MsgConvertERC20]:
|
|
38
|
-
[CarbonTx.Types.MsgConvertCoin]:
|
|
37
|
+
[CarbonTx.Types.MsgConvertERC20]: utils_1.generateAminoType(MsgConvertERC20),
|
|
38
|
+
[CarbonTx.Types.MsgConvertCoin]: utils_1.generateAminoType(MsgConvertCoin),
|
|
39
39
|
};
|
|
40
40
|
exports.default = ERC20Amino;
|
|
@@ -63,11 +63,11 @@ const MsgWithdrawFromPlPool = {
|
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
const PerpsliquidityAmino = {
|
|
66
|
-
[CarbonTx.Types.MsgCreatePlPool]:
|
|
67
|
-
[CarbonTx.Types.MsgUpdatePlPool]:
|
|
68
|
-
[CarbonTx.Types.MsgRegisterToPlPool]:
|
|
69
|
-
[CarbonTx.Types.MsgDeregisterFromPlPool]:
|
|
70
|
-
[CarbonTx.Types.MsgDepositToPlPool]:
|
|
71
|
-
[CarbonTx.Types.MsgWithdrawFromPlPool]:
|
|
66
|
+
[CarbonTx.Types.MsgCreatePlPool]: utils_1.generateAminoType(MsgCreatePlPool),
|
|
67
|
+
[CarbonTx.Types.MsgUpdatePlPool]: utils_1.generateAminoType(MsgUpdatePlPool),
|
|
68
|
+
[CarbonTx.Types.MsgRegisterToPlPool]: utils_1.generateAminoType(MsgRegisterToPlPool),
|
|
69
|
+
[CarbonTx.Types.MsgDeregisterFromPlPool]: utils_1.generateAminoType(MsgDeregisterFromPlPool),
|
|
70
|
+
[CarbonTx.Types.MsgDepositToPlPool]: utils_1.generateAminoType(MsgDepositToPlPool),
|
|
71
|
+
[CarbonTx.Types.MsgWithdrawFromPlPool]: utils_1.generateAminoType(MsgWithdrawFromPlPool),
|
|
72
72
|
};
|
|
73
73
|
exports.default = PerpsliquidityAmino;
|
|
@@ -132,7 +132,7 @@ const generateAminoType = (amino, aminoProcess = {}) => {
|
|
|
132
132
|
const { input: newInput = input, amino: newAminoMap = valueMap } = processRes;
|
|
133
133
|
const aminoObj = {};
|
|
134
134
|
Object.keys(newInput).forEach((key) => {
|
|
135
|
-
var _a;
|
|
135
|
+
var _a, _b;
|
|
136
136
|
const snakeKey = util_1.TypeUtils.camelToSnake(key);
|
|
137
137
|
if (!newInput[key])
|
|
138
138
|
return;
|
|
@@ -144,7 +144,12 @@ const generateAminoType = (amino, aminoProcess = {}) => {
|
|
|
144
144
|
aminoObj[snakeKey] = (0, exports.paramConverter)(newInput[key], newAminoMap[key], true);
|
|
145
145
|
}
|
|
146
146
|
else {
|
|
147
|
-
|
|
147
|
+
// empty array should be mapped over too
|
|
148
|
+
if (((_a = newInput[key]) === null || _a === void 0 ? void 0 : _a.length) === 0) {
|
|
149
|
+
aminoObj[snakeKey] = [];
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (((_b = newInput[key]) === null || _b === void 0 ? void 0 : _b.length) && typeof newInput[key] === "object") {
|
|
148
153
|
aminoObj[snakeKey] = newInput[key].map((newItem) => (0, exports.mapEachIndiv)(newItem, newAminoMap[key], true));
|
|
149
154
|
return;
|
|
150
155
|
}
|
|
@@ -330,7 +330,6 @@ class MetaMask {
|
|
|
330
330
|
});
|
|
331
331
|
const signLegacyEip712 = (signerAddress, doc) => __awaiter(this, void 0, void 0, function* () {
|
|
332
332
|
const { account_number, chain_id, msgs, fee, memo, sequence } = doc;
|
|
333
|
-
// Legacy EIP-712 can only accept batch msgs of the same type
|
|
334
333
|
// Only MsgMergeAccount will have an Eth address signer, other generic transaction will be cosmos address signer
|
|
335
334
|
// FeePayer here is only used for legacy EIP-712
|
|
336
335
|
const feePayer = index_1.AminoTypesMap.fromAmino(msgs[0]).typeUrl === codec_1.TxTypes.MsgMergeAccount ? util_1.AddressUtils.ETHAddress.publicKeyToBech32Address(Buffer.from(pubKeyBase64, "base64"), addressOptions) : signerAddress;
|
package/lib/util/blockchain.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export declare function parseBlockchain(value: string | null): Blockchain | null
|
|
|
84
84
|
export declare function getChainFromID(id: number): string | undefined;
|
|
85
85
|
export declare const getBlockchainFromChain: (chainId?: number | undefined) => Blockchain.Ethereum | Blockchain.BinanceSmartChain | Blockchain.Zilliqa | Blockchain.Arbitrum | Blockchain.Polygon | Blockchain.Okc | undefined;
|
|
86
86
|
export declare const blockchainForChainId: (chainId?: number | undefined, network?: Network) => Blockchain | undefined;
|
|
87
|
-
export declare const getBlockchainFromChainV2: (chainId?: number | undefined) => "Carbon" | "Ethereum" | "Binance Smart Chain" | "Arbitrum" | "Polygon" | "
|
|
87
|
+
export declare const getBlockchainFromChainV2: (chainId?: number | undefined) => "Carbon" | "Ethereum" | "Binance Smart Chain" | "Arbitrum" | "Polygon" | "Zilliqa" | "Okc" | undefined;
|
|
88
88
|
export declare const blockchainForChainIdV2: (chainId?: number | undefined, network?: Network) => Blockchain | BlockchainV2 | undefined;
|
|
89
89
|
export declare const EvmChains: readonly ["Ethereum", "Binance Smart Chain", "Arbitrum", "Polygon", "OKC", "Carbon"];
|
|
90
90
|
export declare type EVMChain = (typeof EvmChains)[number];
|
package/lib/util/eip712.js
CHANGED
|
@@ -102,13 +102,13 @@ function getMsgValueType(msgTypeUrl, msgValue, msgTypeName, msgTypeIndex, types,
|
|
|
102
102
|
msgTypeDefinitions[typeName] = [];
|
|
103
103
|
}
|
|
104
104
|
fieldsDefinition.forEach(({ packageName, name, type }) => {
|
|
105
|
-
if (Array.isArray(msgValue) && msgValue.length === 0) {
|
|
106
|
-
msgTypeDefinitions[typeName] = [...msgTypeDefinitions[typeName], { name, type: 'string[]' }];
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
//Assumption: Take first value in array to determine which fields are populated
|
|
110
105
|
const fieldValue = Array.isArray(msgValue) && msgValue.length > 0 ? msgValue[0][name] : msgValue[name];
|
|
106
|
+
//Assumption: Take first value in array to determine which fields are populated
|
|
111
107
|
if (isNonZeroField(fieldValue)) {
|
|
108
|
+
if (Array.isArray(fieldValue) && fieldValue.length === 0) {
|
|
109
|
+
msgTypeDefinitions[typeName] = [...msgTypeDefinitions[typeName], { name, type: 'string[]' }];
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
112
|
//For nested structs
|
|
113
113
|
if (packageName) {
|
|
114
114
|
const isArray = type.includes('[]') ? true : false;
|
|
@@ -167,11 +167,11 @@ function isNonZeroField(fieldValue) {
|
|
|
167
167
|
}
|
|
168
168
|
// empty arrays are considered truthy
|
|
169
169
|
if (Array.isArray(fieldValue)) {
|
|
170
|
-
return
|
|
170
|
+
return true;
|
|
171
171
|
}
|
|
172
172
|
// empty objects are considered truthy
|
|
173
173
|
if (fieldValue && typeof fieldValue === 'object' && Object.keys(fieldValue).length === 0) {
|
|
174
|
-
return
|
|
174
|
+
return true;
|
|
175
175
|
}
|
|
176
176
|
return fieldValue;
|
|
177
177
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GrpcQueryClient } from "../util/type";
|
|
2
|
-
import * as grpc from "@grpc/grpc-js";
|
|
3
|
-
export declare class GrpcNodeQueryClient implements GrpcQueryClient {
|
|
4
|
-
private host;
|
|
5
|
-
private options;
|
|
6
|
-
private client;
|
|
7
|
-
constructor(host: string, options?: {
|
|
8
|
-
metadata?: grpc.Metadata;
|
|
9
|
-
});
|
|
10
|
-
request(serviceName: string, methodName: string, data: Uint8Array): Promise<Uint8Array>;
|
|
11
|
-
}
|
|
12
|
-
export default GrpcNodeQueryClient;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.GrpcNodeQueryClient = void 0;
|
|
27
|
-
const grpc = __importStar(require("@grpc/grpc-js"));
|
|
28
|
-
const PASS_THROUGH_SERIALIZE = (bytes) => Buffer.from(bytes);
|
|
29
|
-
const PASS_THROUGH_DESERIALIZE = (buffer) => new Uint8Array(buffer);
|
|
30
|
-
class GrpcNodeQueryClient {
|
|
31
|
-
constructor(host, options = {}) {
|
|
32
|
-
this.host = host;
|
|
33
|
-
this.options = options;
|
|
34
|
-
this.client = new grpc.Client(this.host, grpc.credentials.createSsl());
|
|
35
|
-
}
|
|
36
|
-
request(serviceName, methodName, data) {
|
|
37
|
-
return new Promise((resolve, reject) => {
|
|
38
|
-
var _a;
|
|
39
|
-
const method = `/${serviceName}/${methodName}`;
|
|
40
|
-
const metadata = (_a = this.options.metadata) !== null && _a !== void 0 ? _a : grpc.Metadata.fromHttp2Headers({});
|
|
41
|
-
this.client.makeUnaryRequest(method, PASS_THROUGH_SERIALIZE, PASS_THROUGH_DESERIALIZE, data, metadata, (error, result) => {
|
|
42
|
-
if (error || !result) {
|
|
43
|
-
reject(error);
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
resolve(result);
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.GrpcNodeQueryClient = GrpcNodeQueryClient;
|
|
53
|
-
exports.default = GrpcNodeQueryClient;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { GrpcQueryClient } from "../util/type";
|
|
2
|
-
import { grpc } from "@improbable-eng/grpc-web";
|
|
3
|
-
export declare class GrpcWebError extends Error {
|
|
4
|
-
code: grpc.Code;
|
|
5
|
-
metadata: grpc.Metadata;
|
|
6
|
-
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Uses grpc-web module on cosmos-sdk to simulate gRPC queries
|
|
10
|
-
* through HTTP/1.1.
|
|
11
|
-
* see https://github.com/cosmos/cosmos-sdk/issues/7345
|
|
12
|
-
*/
|
|
13
|
-
export declare class GrpcWebQueryClient implements GrpcQueryClient {
|
|
14
|
-
private host;
|
|
15
|
-
private options;
|
|
16
|
-
constructor(host: string, options?: {
|
|
17
|
-
transport?: grpc.TransportFactory;
|
|
18
|
-
metadata?: grpc.Metadata;
|
|
19
|
-
});
|
|
20
|
-
request(serviceName: string, methodName: string, data: Uint8Array): Promise<Uint8Array>;
|
|
21
|
-
}
|
|
22
|
-
export default GrpcWebQueryClient;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GrpcWebQueryClient = exports.GrpcWebError = void 0;
|
|
4
|
-
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
5
|
-
class GrpcWebError extends Error {
|
|
6
|
-
constructor(message, code, metadata) {
|
|
7
|
-
super(message);
|
|
8
|
-
this.code = code;
|
|
9
|
-
this.metadata = metadata;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.GrpcWebError = GrpcWebError;
|
|
13
|
-
/**
|
|
14
|
-
* Uses grpc-web module on cosmos-sdk to simulate gRPC queries
|
|
15
|
-
* through HTTP/1.1.
|
|
16
|
-
* see https://github.com/cosmos/cosmos-sdk/issues/7345
|
|
17
|
-
*/
|
|
18
|
-
class GrpcWebQueryClient {
|
|
19
|
-
constructor(host, options = {}) {
|
|
20
|
-
this.host = host;
|
|
21
|
-
this.options = options;
|
|
22
|
-
}
|
|
23
|
-
request(serviceName, methodName, data) {
|
|
24
|
-
return new Promise((resolve, reject) => {
|
|
25
|
-
grpc_web_1.grpc.unary({
|
|
26
|
-
methodName,
|
|
27
|
-
service: { serviceName },
|
|
28
|
-
requestStream: false,
|
|
29
|
-
responseStream: false,
|
|
30
|
-
requestType: {},
|
|
31
|
-
responseType: {
|
|
32
|
-
deserializeBinary: (data) => data,
|
|
33
|
-
},
|
|
34
|
-
}, {
|
|
35
|
-
request: Object.assign(Object.assign({}, data), { toObject: () => data, serializeBinary: () => data }),
|
|
36
|
-
host: this.host,
|
|
37
|
-
metadata: this.options.metadata,
|
|
38
|
-
transport: this.options.transport,
|
|
39
|
-
debug: false,
|
|
40
|
-
onEnd: function (response) {
|
|
41
|
-
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
42
|
-
resolve(response.message);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
const err = new Error(response.statusMessage);
|
|
46
|
-
err.code = response.status;
|
|
47
|
-
err.metadata = response.trailers;
|
|
48
|
-
reject(err);
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.GrpcWebQueryClient = GrpcWebQueryClient;
|
|
56
|
-
exports.default = GrpcWebQueryClient;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import Long from "long";
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Params } from "../controller/v1/controller";
|
|
4
|
-
import { Params as Params1 } from "../host/v1/host";
|
|
5
|
-
export declare const protobufPackage = "ibc.applications.interchain_accounts.v1";
|
|
6
|
-
/** GenesisState defines the interchain accounts genesis state */
|
|
7
|
-
export interface GenesisState {
|
|
8
|
-
controllerGenesisState?: ControllerGenesisState;
|
|
9
|
-
hostGenesisState?: HostGenesisState;
|
|
10
|
-
}
|
|
11
|
-
/** ControllerGenesisState defines the interchain accounts controller genesis state */
|
|
12
|
-
export interface ControllerGenesisState {
|
|
13
|
-
activeChannels: ActiveChannel[];
|
|
14
|
-
interchainAccounts: RegisteredInterchainAccount[];
|
|
15
|
-
ports: string[];
|
|
16
|
-
params?: Params;
|
|
17
|
-
}
|
|
18
|
-
/** HostGenesisState defines the interchain accounts host genesis state */
|
|
19
|
-
export interface HostGenesisState {
|
|
20
|
-
activeChannels: ActiveChannel[];
|
|
21
|
-
interchainAccounts: RegisteredInterchainAccount[];
|
|
22
|
-
port: string;
|
|
23
|
-
params?: Params1;
|
|
24
|
-
}
|
|
25
|
-
/** ActiveChannel contains a connection ID, port ID and associated active channel ID */
|
|
26
|
-
export interface ActiveChannel {
|
|
27
|
-
connectionId: string;
|
|
28
|
-
portId: string;
|
|
29
|
-
channelId: string;
|
|
30
|
-
}
|
|
31
|
-
/** RegisteredInterchainAccount contains a connection ID, port ID and associated interchain account address */
|
|
32
|
-
export interface RegisteredInterchainAccount {
|
|
33
|
-
connectionId: string;
|
|
34
|
-
portId: string;
|
|
35
|
-
accountAddress: string;
|
|
36
|
-
}
|
|
37
|
-
export declare const GenesisState: {
|
|
38
|
-
encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
39
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
|
|
40
|
-
fromJSON(object: any): GenesisState;
|
|
41
|
-
toJSON(message: GenesisState): unknown;
|
|
42
|
-
fromPartial(object: DeepPartial<GenesisState>): GenesisState;
|
|
43
|
-
};
|
|
44
|
-
export declare const ControllerGenesisState: {
|
|
45
|
-
encode(message: ControllerGenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
46
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ControllerGenesisState;
|
|
47
|
-
fromJSON(object: any): ControllerGenesisState;
|
|
48
|
-
toJSON(message: ControllerGenesisState): unknown;
|
|
49
|
-
fromPartial(object: DeepPartial<ControllerGenesisState>): ControllerGenesisState;
|
|
50
|
-
};
|
|
51
|
-
export declare const HostGenesisState: {
|
|
52
|
-
encode(message: HostGenesisState, writer?: _m0.Writer): _m0.Writer;
|
|
53
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): HostGenesisState;
|
|
54
|
-
fromJSON(object: any): HostGenesisState;
|
|
55
|
-
toJSON(message: HostGenesisState): unknown;
|
|
56
|
-
fromPartial(object: DeepPartial<HostGenesisState>): HostGenesisState;
|
|
57
|
-
};
|
|
58
|
-
export declare const ActiveChannel: {
|
|
59
|
-
encode(message: ActiveChannel, writer?: _m0.Writer): _m0.Writer;
|
|
60
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): ActiveChannel;
|
|
61
|
-
fromJSON(object: any): ActiveChannel;
|
|
62
|
-
toJSON(message: ActiveChannel): unknown;
|
|
63
|
-
fromPartial(object: DeepPartial<ActiveChannel>): ActiveChannel;
|
|
64
|
-
};
|
|
65
|
-
export declare const RegisteredInterchainAccount: {
|
|
66
|
-
encode(message: RegisteredInterchainAccount, writer?: _m0.Writer): _m0.Writer;
|
|
67
|
-
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): RegisteredInterchainAccount;
|
|
68
|
-
fromJSON(object: any): RegisteredInterchainAccount;
|
|
69
|
-
toJSON(message: RegisteredInterchainAccount): unknown;
|
|
70
|
-
fromPartial(object: DeepPartial<RegisteredInterchainAccount>): RegisteredInterchainAccount;
|
|
71
|
-
};
|
|
72
|
-
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
73
|
-
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
74
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
75
|
-
} : Partial<T>;
|
|
76
|
-
export {};
|
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.RegisteredInterchainAccount = exports.ActiveChannel = exports.HostGenesisState = exports.ControllerGenesisState = exports.GenesisState = exports.protobufPackage = void 0;
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
const long_1 = __importDefault(require("long"));
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const controller_1 = require("../controller/v1/controller");
|
|
11
|
-
const host_1 = require("../host/v1/host");
|
|
12
|
-
exports.protobufPackage = "ibc.applications.interchain_accounts.v1";
|
|
13
|
-
const baseGenesisState = {};
|
|
14
|
-
exports.GenesisState = {
|
|
15
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
16
|
-
if (message.controllerGenesisState !== undefined) {
|
|
17
|
-
exports.ControllerGenesisState.encode(message.controllerGenesisState, writer.uint32(10).fork()).ldelim();
|
|
18
|
-
}
|
|
19
|
-
if (message.hostGenesisState !== undefined) {
|
|
20
|
-
exports.HostGenesisState.encode(message.hostGenesisState, writer.uint32(18).fork()).ldelim();
|
|
21
|
-
}
|
|
22
|
-
return writer;
|
|
23
|
-
},
|
|
24
|
-
decode(input, length) {
|
|
25
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
26
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
|
-
const message = Object.assign({}, baseGenesisState);
|
|
28
|
-
while (reader.pos < end) {
|
|
29
|
-
const tag = reader.uint32();
|
|
30
|
-
switch (tag >>> 3) {
|
|
31
|
-
case 1:
|
|
32
|
-
message.controllerGenesisState = exports.ControllerGenesisState.decode(reader, reader.uint32());
|
|
33
|
-
break;
|
|
34
|
-
case 2:
|
|
35
|
-
message.hostGenesisState = exports.HostGenesisState.decode(reader, reader.uint32());
|
|
36
|
-
break;
|
|
37
|
-
default:
|
|
38
|
-
reader.skipType(tag & 7);
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return message;
|
|
43
|
-
},
|
|
44
|
-
fromJSON(object) {
|
|
45
|
-
const message = Object.assign({}, baseGenesisState);
|
|
46
|
-
message.controllerGenesisState =
|
|
47
|
-
object.controllerGenesisState !== undefined &&
|
|
48
|
-
object.controllerGenesisState !== null
|
|
49
|
-
? exports.ControllerGenesisState.fromJSON(object.controllerGenesisState)
|
|
50
|
-
: undefined;
|
|
51
|
-
message.hostGenesisState =
|
|
52
|
-
object.hostGenesisState !== undefined && object.hostGenesisState !== null
|
|
53
|
-
? exports.HostGenesisState.fromJSON(object.hostGenesisState)
|
|
54
|
-
: undefined;
|
|
55
|
-
return message;
|
|
56
|
-
},
|
|
57
|
-
toJSON(message) {
|
|
58
|
-
const obj = {};
|
|
59
|
-
message.controllerGenesisState !== undefined &&
|
|
60
|
-
(obj.controllerGenesisState = message.controllerGenesisState
|
|
61
|
-
? exports.ControllerGenesisState.toJSON(message.controllerGenesisState)
|
|
62
|
-
: undefined);
|
|
63
|
-
message.hostGenesisState !== undefined &&
|
|
64
|
-
(obj.hostGenesisState = message.hostGenesisState
|
|
65
|
-
? exports.HostGenesisState.toJSON(message.hostGenesisState)
|
|
66
|
-
: undefined);
|
|
67
|
-
return obj;
|
|
68
|
-
},
|
|
69
|
-
fromPartial(object) {
|
|
70
|
-
const message = Object.assign({}, baseGenesisState);
|
|
71
|
-
message.controllerGenesisState =
|
|
72
|
-
object.controllerGenesisState !== undefined &&
|
|
73
|
-
object.controllerGenesisState !== null
|
|
74
|
-
? exports.ControllerGenesisState.fromPartial(object.controllerGenesisState)
|
|
75
|
-
: undefined;
|
|
76
|
-
message.hostGenesisState =
|
|
77
|
-
object.hostGenesisState !== undefined && object.hostGenesisState !== null
|
|
78
|
-
? exports.HostGenesisState.fromPartial(object.hostGenesisState)
|
|
79
|
-
: undefined;
|
|
80
|
-
return message;
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
const baseControllerGenesisState = { ports: "" };
|
|
84
|
-
exports.ControllerGenesisState = {
|
|
85
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
-
for (const v of message.activeChannels) {
|
|
87
|
-
exports.ActiveChannel.encode(v, writer.uint32(10).fork()).ldelim();
|
|
88
|
-
}
|
|
89
|
-
for (const v of message.interchainAccounts) {
|
|
90
|
-
exports.RegisteredInterchainAccount.encode(v, writer.uint32(18).fork()).ldelim();
|
|
91
|
-
}
|
|
92
|
-
for (const v of message.ports) {
|
|
93
|
-
writer.uint32(26).string(v);
|
|
94
|
-
}
|
|
95
|
-
if (message.params !== undefined) {
|
|
96
|
-
controller_1.Params.encode(message.params, writer.uint32(34).fork()).ldelim();
|
|
97
|
-
}
|
|
98
|
-
return writer;
|
|
99
|
-
},
|
|
100
|
-
decode(input, length) {
|
|
101
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
102
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
103
|
-
const message = Object.assign({}, baseControllerGenesisState);
|
|
104
|
-
message.activeChannels = [];
|
|
105
|
-
message.interchainAccounts = [];
|
|
106
|
-
message.ports = [];
|
|
107
|
-
while (reader.pos < end) {
|
|
108
|
-
const tag = reader.uint32();
|
|
109
|
-
switch (tag >>> 3) {
|
|
110
|
-
case 1:
|
|
111
|
-
message.activeChannels.push(exports.ActiveChannel.decode(reader, reader.uint32()));
|
|
112
|
-
break;
|
|
113
|
-
case 2:
|
|
114
|
-
message.interchainAccounts.push(exports.RegisteredInterchainAccount.decode(reader, reader.uint32()));
|
|
115
|
-
break;
|
|
116
|
-
case 3:
|
|
117
|
-
message.ports.push(reader.string());
|
|
118
|
-
break;
|
|
119
|
-
case 4:
|
|
120
|
-
message.params = controller_1.Params.decode(reader, reader.uint32());
|
|
121
|
-
break;
|
|
122
|
-
default:
|
|
123
|
-
reader.skipType(tag & 7);
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return message;
|
|
128
|
-
},
|
|
129
|
-
fromJSON(object) {
|
|
130
|
-
var _a, _b, _c;
|
|
131
|
-
const message = Object.assign({}, baseControllerGenesisState);
|
|
132
|
-
message.activeChannels = ((_a = object.activeChannels) !== null && _a !== void 0 ? _a : []).map((e) => exports.ActiveChannel.fromJSON(e));
|
|
133
|
-
message.interchainAccounts = ((_b = object.interchainAccounts) !== null && _b !== void 0 ? _b : []).map((e) => exports.RegisteredInterchainAccount.fromJSON(e));
|
|
134
|
-
message.ports = ((_c = object.ports) !== null && _c !== void 0 ? _c : []).map((e) => String(e));
|
|
135
|
-
message.params =
|
|
136
|
-
object.params !== undefined && object.params !== null
|
|
137
|
-
? controller_1.Params.fromJSON(object.params)
|
|
138
|
-
: undefined;
|
|
139
|
-
return message;
|
|
140
|
-
},
|
|
141
|
-
toJSON(message) {
|
|
142
|
-
const obj = {};
|
|
143
|
-
if (message.activeChannels) {
|
|
144
|
-
obj.activeChannels = message.activeChannels.map((e) => e ? exports.ActiveChannel.toJSON(e) : undefined);
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
obj.activeChannels = [];
|
|
148
|
-
}
|
|
149
|
-
if (message.interchainAccounts) {
|
|
150
|
-
obj.interchainAccounts = message.interchainAccounts.map((e) => e ? exports.RegisteredInterchainAccount.toJSON(e) : undefined);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
obj.interchainAccounts = [];
|
|
154
|
-
}
|
|
155
|
-
if (message.ports) {
|
|
156
|
-
obj.ports = message.ports.map((e) => e);
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
obj.ports = [];
|
|
160
|
-
}
|
|
161
|
-
message.params !== undefined &&
|
|
162
|
-
(obj.params = message.params ? controller_1.Params.toJSON(message.params) : undefined);
|
|
163
|
-
return obj;
|
|
164
|
-
},
|
|
165
|
-
fromPartial(object) {
|
|
166
|
-
var _a, _b, _c;
|
|
167
|
-
const message = Object.assign({}, baseControllerGenesisState);
|
|
168
|
-
message.activeChannels = ((_a = object.activeChannels) !== null && _a !== void 0 ? _a : []).map((e) => exports.ActiveChannel.fromPartial(e));
|
|
169
|
-
message.interchainAccounts = ((_b = object.interchainAccounts) !== null && _b !== void 0 ? _b : []).map((e) => exports.RegisteredInterchainAccount.fromPartial(e));
|
|
170
|
-
message.ports = ((_c = object.ports) !== null && _c !== void 0 ? _c : []).map((e) => e);
|
|
171
|
-
message.params =
|
|
172
|
-
object.params !== undefined && object.params !== null
|
|
173
|
-
? controller_1.Params.fromPartial(object.params)
|
|
174
|
-
: undefined;
|
|
175
|
-
return message;
|
|
176
|
-
},
|
|
177
|
-
};
|
|
178
|
-
const baseHostGenesisState = { port: "" };
|
|
179
|
-
exports.HostGenesisState = {
|
|
180
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
181
|
-
for (const v of message.activeChannels) {
|
|
182
|
-
exports.ActiveChannel.encode(v, writer.uint32(10).fork()).ldelim();
|
|
183
|
-
}
|
|
184
|
-
for (const v of message.interchainAccounts) {
|
|
185
|
-
exports.RegisteredInterchainAccount.encode(v, writer.uint32(18).fork()).ldelim();
|
|
186
|
-
}
|
|
187
|
-
if (message.port !== "") {
|
|
188
|
-
writer.uint32(26).string(message.port);
|
|
189
|
-
}
|
|
190
|
-
if (message.params !== undefined) {
|
|
191
|
-
host_1.Params.encode(message.params, writer.uint32(34).fork()).ldelim();
|
|
192
|
-
}
|
|
193
|
-
return writer;
|
|
194
|
-
},
|
|
195
|
-
decode(input, length) {
|
|
196
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
197
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
198
|
-
const message = Object.assign({}, baseHostGenesisState);
|
|
199
|
-
message.activeChannels = [];
|
|
200
|
-
message.interchainAccounts = [];
|
|
201
|
-
while (reader.pos < end) {
|
|
202
|
-
const tag = reader.uint32();
|
|
203
|
-
switch (tag >>> 3) {
|
|
204
|
-
case 1:
|
|
205
|
-
message.activeChannels.push(exports.ActiveChannel.decode(reader, reader.uint32()));
|
|
206
|
-
break;
|
|
207
|
-
case 2:
|
|
208
|
-
message.interchainAccounts.push(exports.RegisteredInterchainAccount.decode(reader, reader.uint32()));
|
|
209
|
-
break;
|
|
210
|
-
case 3:
|
|
211
|
-
message.port = reader.string();
|
|
212
|
-
break;
|
|
213
|
-
case 4:
|
|
214
|
-
message.params = host_1.Params.decode(reader, reader.uint32());
|
|
215
|
-
break;
|
|
216
|
-
default:
|
|
217
|
-
reader.skipType(tag & 7);
|
|
218
|
-
break;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
return message;
|
|
222
|
-
},
|
|
223
|
-
fromJSON(object) {
|
|
224
|
-
var _a, _b;
|
|
225
|
-
const message = Object.assign({}, baseHostGenesisState);
|
|
226
|
-
message.activeChannels = ((_a = object.activeChannels) !== null && _a !== void 0 ? _a : []).map((e) => exports.ActiveChannel.fromJSON(e));
|
|
227
|
-
message.interchainAccounts = ((_b = object.interchainAccounts) !== null && _b !== void 0 ? _b : []).map((e) => exports.RegisteredInterchainAccount.fromJSON(e));
|
|
228
|
-
message.port =
|
|
229
|
-
object.port !== undefined && object.port !== null
|
|
230
|
-
? String(object.port)
|
|
231
|
-
: "";
|
|
232
|
-
message.params =
|
|
233
|
-
object.params !== undefined && object.params !== null
|
|
234
|
-
? host_1.Params.fromJSON(object.params)
|
|
235
|
-
: undefined;
|
|
236
|
-
return message;
|
|
237
|
-
},
|
|
238
|
-
toJSON(message) {
|
|
239
|
-
const obj = {};
|
|
240
|
-
if (message.activeChannels) {
|
|
241
|
-
obj.activeChannels = message.activeChannels.map((e) => e ? exports.ActiveChannel.toJSON(e) : undefined);
|
|
242
|
-
}
|
|
243
|
-
else {
|
|
244
|
-
obj.activeChannels = [];
|
|
245
|
-
}
|
|
246
|
-
if (message.interchainAccounts) {
|
|
247
|
-
obj.interchainAccounts = message.interchainAccounts.map((e) => e ? exports.RegisteredInterchainAccount.toJSON(e) : undefined);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
obj.interchainAccounts = [];
|
|
251
|
-
}
|
|
252
|
-
message.port !== undefined && (obj.port = message.port);
|
|
253
|
-
message.params !== undefined &&
|
|
254
|
-
(obj.params = message.params
|
|
255
|
-
? host_1.Params.toJSON(message.params)
|
|
256
|
-
: undefined);
|
|
257
|
-
return obj;
|
|
258
|
-
},
|
|
259
|
-
fromPartial(object) {
|
|
260
|
-
var _a, _b, _c;
|
|
261
|
-
const message = Object.assign({}, baseHostGenesisState);
|
|
262
|
-
message.activeChannels = ((_a = object.activeChannels) !== null && _a !== void 0 ? _a : []).map((e) => exports.ActiveChannel.fromPartial(e));
|
|
263
|
-
message.interchainAccounts = ((_b = object.interchainAccounts) !== null && _b !== void 0 ? _b : []).map((e) => exports.RegisteredInterchainAccount.fromPartial(e));
|
|
264
|
-
message.port = (_c = object.port) !== null && _c !== void 0 ? _c : "";
|
|
265
|
-
message.params =
|
|
266
|
-
object.params !== undefined && object.params !== null
|
|
267
|
-
? host_1.Params.fromPartial(object.params)
|
|
268
|
-
: undefined;
|
|
269
|
-
return message;
|
|
270
|
-
},
|
|
271
|
-
};
|
|
272
|
-
const baseActiveChannel = {
|
|
273
|
-
connectionId: "",
|
|
274
|
-
portId: "",
|
|
275
|
-
channelId: "",
|
|
276
|
-
};
|
|
277
|
-
exports.ActiveChannel = {
|
|
278
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
279
|
-
if (message.connectionId !== "") {
|
|
280
|
-
writer.uint32(10).string(message.connectionId);
|
|
281
|
-
}
|
|
282
|
-
if (message.portId !== "") {
|
|
283
|
-
writer.uint32(18).string(message.portId);
|
|
284
|
-
}
|
|
285
|
-
if (message.channelId !== "") {
|
|
286
|
-
writer.uint32(26).string(message.channelId);
|
|
287
|
-
}
|
|
288
|
-
return writer;
|
|
289
|
-
},
|
|
290
|
-
decode(input, length) {
|
|
291
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
292
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
293
|
-
const message = Object.assign({}, baseActiveChannel);
|
|
294
|
-
while (reader.pos < end) {
|
|
295
|
-
const tag = reader.uint32();
|
|
296
|
-
switch (tag >>> 3) {
|
|
297
|
-
case 1:
|
|
298
|
-
message.connectionId = reader.string();
|
|
299
|
-
break;
|
|
300
|
-
case 2:
|
|
301
|
-
message.portId = reader.string();
|
|
302
|
-
break;
|
|
303
|
-
case 3:
|
|
304
|
-
message.channelId = reader.string();
|
|
305
|
-
break;
|
|
306
|
-
default:
|
|
307
|
-
reader.skipType(tag & 7);
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
return message;
|
|
312
|
-
},
|
|
313
|
-
fromJSON(object) {
|
|
314
|
-
const message = Object.assign({}, baseActiveChannel);
|
|
315
|
-
message.connectionId =
|
|
316
|
-
object.connectionId !== undefined && object.connectionId !== null
|
|
317
|
-
? String(object.connectionId)
|
|
318
|
-
: "";
|
|
319
|
-
message.portId =
|
|
320
|
-
object.portId !== undefined && object.portId !== null
|
|
321
|
-
? String(object.portId)
|
|
322
|
-
: "";
|
|
323
|
-
message.channelId =
|
|
324
|
-
object.channelId !== undefined && object.channelId !== null
|
|
325
|
-
? String(object.channelId)
|
|
326
|
-
: "";
|
|
327
|
-
return message;
|
|
328
|
-
},
|
|
329
|
-
toJSON(message) {
|
|
330
|
-
const obj = {};
|
|
331
|
-
message.connectionId !== undefined &&
|
|
332
|
-
(obj.connectionId = message.connectionId);
|
|
333
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
334
|
-
message.channelId !== undefined && (obj.channelId = message.channelId);
|
|
335
|
-
return obj;
|
|
336
|
-
},
|
|
337
|
-
fromPartial(object) {
|
|
338
|
-
var _a, _b, _c;
|
|
339
|
-
const message = Object.assign({}, baseActiveChannel);
|
|
340
|
-
message.connectionId = (_a = object.connectionId) !== null && _a !== void 0 ? _a : "";
|
|
341
|
-
message.portId = (_b = object.portId) !== null && _b !== void 0 ? _b : "";
|
|
342
|
-
message.channelId = (_c = object.channelId) !== null && _c !== void 0 ? _c : "";
|
|
343
|
-
return message;
|
|
344
|
-
},
|
|
345
|
-
};
|
|
346
|
-
const baseRegisteredInterchainAccount = {
|
|
347
|
-
connectionId: "",
|
|
348
|
-
portId: "",
|
|
349
|
-
accountAddress: "",
|
|
350
|
-
};
|
|
351
|
-
exports.RegisteredInterchainAccount = {
|
|
352
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
353
|
-
if (message.connectionId !== "") {
|
|
354
|
-
writer.uint32(10).string(message.connectionId);
|
|
355
|
-
}
|
|
356
|
-
if (message.portId !== "") {
|
|
357
|
-
writer.uint32(18).string(message.portId);
|
|
358
|
-
}
|
|
359
|
-
if (message.accountAddress !== "") {
|
|
360
|
-
writer.uint32(26).string(message.accountAddress);
|
|
361
|
-
}
|
|
362
|
-
return writer;
|
|
363
|
-
},
|
|
364
|
-
decode(input, length) {
|
|
365
|
-
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
366
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
367
|
-
const message = Object.assign({}, baseRegisteredInterchainAccount);
|
|
368
|
-
while (reader.pos < end) {
|
|
369
|
-
const tag = reader.uint32();
|
|
370
|
-
switch (tag >>> 3) {
|
|
371
|
-
case 1:
|
|
372
|
-
message.connectionId = reader.string();
|
|
373
|
-
break;
|
|
374
|
-
case 2:
|
|
375
|
-
message.portId = reader.string();
|
|
376
|
-
break;
|
|
377
|
-
case 3:
|
|
378
|
-
message.accountAddress = reader.string();
|
|
379
|
-
break;
|
|
380
|
-
default:
|
|
381
|
-
reader.skipType(tag & 7);
|
|
382
|
-
break;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
return message;
|
|
386
|
-
},
|
|
387
|
-
fromJSON(object) {
|
|
388
|
-
const message = Object.assign({}, baseRegisteredInterchainAccount);
|
|
389
|
-
message.connectionId =
|
|
390
|
-
object.connectionId !== undefined && object.connectionId !== null
|
|
391
|
-
? String(object.connectionId)
|
|
392
|
-
: "";
|
|
393
|
-
message.portId =
|
|
394
|
-
object.portId !== undefined && object.portId !== null
|
|
395
|
-
? String(object.portId)
|
|
396
|
-
: "";
|
|
397
|
-
message.accountAddress =
|
|
398
|
-
object.accountAddress !== undefined && object.accountAddress !== null
|
|
399
|
-
? String(object.accountAddress)
|
|
400
|
-
: "";
|
|
401
|
-
return message;
|
|
402
|
-
},
|
|
403
|
-
toJSON(message) {
|
|
404
|
-
const obj = {};
|
|
405
|
-
message.connectionId !== undefined &&
|
|
406
|
-
(obj.connectionId = message.connectionId);
|
|
407
|
-
message.portId !== undefined && (obj.portId = message.portId);
|
|
408
|
-
message.accountAddress !== undefined &&
|
|
409
|
-
(obj.accountAddress = message.accountAddress);
|
|
410
|
-
return obj;
|
|
411
|
-
},
|
|
412
|
-
fromPartial(object) {
|
|
413
|
-
var _a, _b, _c;
|
|
414
|
-
const message = Object.assign({}, baseRegisteredInterchainAccount);
|
|
415
|
-
message.connectionId = (_a = object.connectionId) !== null && _a !== void 0 ? _a : "";
|
|
416
|
-
message.portId = (_b = object.portId) !== null && _b !== void 0 ? _b : "";
|
|
417
|
-
message.accountAddress = (_c = object.accountAddress) !== null && _c !== void 0 ? _c : "";
|
|
418
|
-
return message;
|
|
419
|
-
},
|
|
420
|
-
};
|
|
421
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
422
|
-
minimal_1.default.util.Long = long_1.default;
|
|
423
|
-
minimal_1.default.configure();
|
|
424
|
-
}
|