@humanode-hyperlane/cosmos-sdk 0.0.0-stage → 30.0.0-humanode.1
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/LICENSE.md +193 -0
- package/README.md +82 -2
- package/dist/clients/protocol.d.ts +24 -0
- package/dist/clients/protocol.d.ts.map +1 -0
- package/dist/clients/protocol.js +70 -0
- package/dist/clients/protocol.js.map +1 -0
- package/dist/clients/provider.d.ts +70 -0
- package/dist/clients/provider.d.ts.map +1 -0
- package/dist/clients/provider.js +397 -0
- package/dist/clients/provider.js.map +1 -0
- package/dist/clients/signer.d.ts +55 -0
- package/dist/clients/signer.d.ts.map +1 -0
- package/dist/clients/signer.js +377 -0
- package/dist/clients/signer.js.map +1 -0
- package/dist/hook/hook-artifact-manager.d.ts +72 -0
- package/dist/hook/hook-artifact-manager.d.ts.map +1 -0
- package/dist/hook/hook-artifact-manager.js +139 -0
- package/dist/hook/hook-artifact-manager.js.map +1 -0
- package/dist/hook/hook-query.d.ts +42 -0
- package/dist/hook/hook-query.d.ts.map +1 -0
- package/dist/hook/hook-query.js +95 -0
- package/dist/hook/hook-query.js.map +1 -0
- package/dist/hook/hook-tx.d.ts +47 -0
- package/dist/hook/hook-tx.d.ts.map +1 -0
- package/dist/hook/hook-tx.js +76 -0
- package/dist/hook/hook-tx.js.map +1 -0
- package/dist/hook/igp-hook.d.ts +30 -0
- package/dist/hook/igp-hook.d.ts.map +1 -0
- package/dist/hook/igp-hook.js +150 -0
- package/dist/hook/igp-hook.js.map +1 -0
- package/dist/hook/merkle-tree-hook.d.ts +32 -0
- package/dist/hook/merkle-tree-hook.d.ts.map +1 -0
- package/dist/hook/merkle-tree-hook.js +60 -0
- package/dist/hook/merkle-tree-hook.js.map +1 -0
- package/dist/hyperlane/core/messages.d.ts +16 -0
- package/dist/hyperlane/core/messages.d.ts.map +1 -0
- package/dist/hyperlane/core/messages.js +2 -0
- package/dist/hyperlane/core/messages.js.map +1 -0
- package/dist/hyperlane/core/query.d.ts +18 -0
- package/dist/hyperlane/core/query.d.ts.map +1 -0
- package/dist/hyperlane/core/query.js +18 -0
- package/dist/hyperlane/core/query.js.map +1 -0
- package/dist/hyperlane/interchain_security/messages.d.ts +36 -0
- package/dist/hyperlane/interchain_security/messages.d.ts.map +1 -0
- package/dist/hyperlane/interchain_security/messages.js +2 -0
- package/dist/hyperlane/interchain_security/messages.js.map +1 -0
- package/dist/hyperlane/interchain_security/query.d.ts +36 -0
- package/dist/hyperlane/interchain_security/query.d.ts.map +1 -0
- package/dist/hyperlane/interchain_security/query.js +49 -0
- package/dist/hyperlane/interchain_security/query.js.map +1 -0
- package/dist/hyperlane/post_dispatch/messages.d.ts +32 -0
- package/dist/hyperlane/post_dispatch/messages.d.ts.map +1 -0
- package/dist/hyperlane/post_dispatch/messages.js +2 -0
- package/dist/hyperlane/post_dispatch/messages.js.map +1 -0
- package/dist/hyperlane/post_dispatch/query.d.ts +24 -0
- package/dist/hyperlane/post_dispatch/query.d.ts.map +1 -0
- package/dist/hyperlane/post_dispatch/query.js +21 -0
- package/dist/hyperlane/post_dispatch/query.js.map +1 -0
- package/dist/hyperlane/warp/messages.d.ts +28 -0
- package/dist/hyperlane/warp/messages.d.ts.map +1 -0
- package/dist/hyperlane/warp/messages.js +2 -0
- package/dist/hyperlane/warp/messages.js.map +1 -0
- package/dist/hyperlane/warp/query.d.ts +18 -0
- package/dist/hyperlane/warp/query.d.ts.map +1 -0
- package/dist/hyperlane/warp/query.js +16 -0
- package/dist/hyperlane/warp/query.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/ism/ism-artifact-manager.d.ts +69 -0
- package/dist/ism/ism-artifact-manager.d.ts.map +1 -0
- package/dist/ism/ism-artifact-manager.js +144 -0
- package/dist/ism/ism-artifact-manager.js.map +1 -0
- package/dist/ism/ism-query.d.ts +71 -0
- package/dist/ism/ism-query.d.ts.map +1 -0
- package/dist/ism/ism-query.js +133 -0
- package/dist/ism/ism-query.js.map +1 -0
- package/dist/ism/ism-tx.d.ts +30 -0
- package/dist/ism/ism-tx.d.ts.map +1 -0
- package/dist/ism/ism-tx.js +76 -0
- package/dist/ism/ism-tx.js.map +1 -0
- package/dist/ism/multisig-ism.d.ts +51 -0
- package/dist/ism/multisig-ism.d.ts.map +1 -0
- package/dist/ism/multisig-ism.js +120 -0
- package/dist/ism/multisig-ism.js.map +1 -0
- package/dist/ism/routing-ism.d.ts +30 -0
- package/dist/ism/routing-ism.d.ts.map +1 -0
- package/dist/ism/routing-ism.js +126 -0
- package/dist/ism/routing-ism.js.map +1 -0
- package/dist/ism/test-ism.d.ts +29 -0
- package/dist/ism/test-ism.d.ts.map +1 -0
- package/dist/ism/test-ism.js +56 -0
- package/dist/ism/test-ism.js.map +1 -0
- package/dist/mailbox/mailbox-artifact-manager.d.ts +48 -0
- package/dist/mailbox/mailbox-artifact-manager.d.ts.map +1 -0
- package/dist/mailbox/mailbox-artifact-manager.js +82 -0
- package/dist/mailbox/mailbox-artifact-manager.js.map +1 -0
- package/dist/mailbox/mailbox-query.d.ts +12 -0
- package/dist/mailbox/mailbox-query.d.ts.map +1 -0
- package/dist/mailbox/mailbox-query.js +29 -0
- package/dist/mailbox/mailbox-query.js.map +1 -0
- package/dist/mailbox/mailbox-tx.d.ts +37 -0
- package/dist/mailbox/mailbox-tx.d.ts.map +1 -0
- package/dist/mailbox/mailbox-tx.js +68 -0
- package/dist/mailbox/mailbox-tx.js.map +1 -0
- package/dist/mailbox/mailbox.d.ts +30 -0
- package/dist/mailbox/mailbox.d.ts.map +1 -0
- package/dist/mailbox/mailbox.js +168 -0
- package/dist/mailbox/mailbox.js.map +1 -0
- package/dist/registry.d.ts +21 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +373 -0
- package/dist/registry.js.map +1 -0
- package/dist/testing/constants.d.ts +10 -0
- package/dist/testing/constants.d.ts.map +1 -0
- package/dist/testing/constants.js +30 -0
- package/dist/testing/constants.js.map +1 -0
- package/dist/testing/index.d.ts +8 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +10 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/node.d.ts +4 -0
- package/dist/testing/node.d.ts.map +1 -0
- package/dist/testing/node.js +35 -0
- package/dist/testing/node.js.map +1 -0
- package/dist/testing/utils.d.ts +10 -0
- package/dist/testing/utils.d.ts.map +1 -0
- package/dist/testing/utils.js +29 -0
- package/dist/testing/utils.js.map +1 -0
- package/dist/tests/1_interchain_security.e2e-test.d.ts +2 -0
- package/dist/tests/1_interchain_security.e2e-test.d.ts.map +1 -0
- package/dist/tests/1_interchain_security.e2e-test.js +171 -0
- package/dist/tests/1_interchain_security.e2e-test.js.map +1 -0
- package/dist/tests/2_core.e2e-test.d.ts +2 -0
- package/dist/tests/2_core.e2e-test.d.ts.map +1 -0
- package/dist/tests/2_core.e2e-test.js +120 -0
- package/dist/tests/2_core.e2e-test.js.map +1 -0
- package/dist/tests/3_post_dispatch.e2e-test.d.ts +2 -0
- package/dist/tests/3_post_dispatch.e2e-test.d.ts.map +1 -0
- package/dist/tests/3_post_dispatch.e2e-test.js +130 -0
- package/dist/tests/3_post_dispatch.e2e-test.js.map +1 -0
- package/dist/tests/4_warp.e2e-test.d.ts +2 -0
- package/dist/tests/4_warp.e2e-test.d.ts.map +1 -0
- package/dist/tests/4_warp.e2e-test.js +284 -0
- package/dist/tests/4_warp.e2e-test.js.map +1 -0
- package/dist/tests/5_warp_artifact.e2e-test.d.ts +2 -0
- package/dist/tests/5_warp_artifact.e2e-test.d.ts.map +1 -0
- package/dist/tests/5_warp_artifact.e2e-test.js +520 -0
- package/dist/tests/5_warp_artifact.e2e-test.js.map +1 -0
- package/dist/tests/e2e-test.setup.d.ts +2 -0
- package/dist/tests/e2e-test.setup.d.ts.map +1 -0
- package/dist/tests/e2e-test.setup.js +13 -0
- package/dist/tests/e2e-test.setup.js.map +1 -0
- package/dist/tests/hooks.e2e-test.d.ts +2 -0
- package/dist/tests/hooks.e2e-test.d.ts.map +1 -0
- package/dist/tests/hooks.e2e-test.js +314 -0
- package/dist/tests/hooks.e2e-test.js.map +1 -0
- package/dist/tests/mailbox.e2e-test.d.ts +2 -0
- package/dist/tests/mailbox.e2e-test.d.ts.map +1 -0
- package/dist/tests/mailbox.e2e-test.js +355 -0
- package/dist/tests/mailbox.e2e-test.js.map +1 -0
- package/dist/utils/base.d.ts +22 -0
- package/dist/utils/base.d.ts.map +1 -0
- package/dist/utils/base.js +35 -0
- package/dist/utils/base.js.map +1 -0
- package/dist/utils/types.d.ts +44 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +2 -0
- package/dist/utils/types.js.map +1 -0
- package/dist/warp/collateral-token.d.ts +21 -0
- package/dist/warp/collateral-token.d.ts.map +1 -0
- package/dist/warp/collateral-token.js +119 -0
- package/dist/warp/collateral-token.js.map +1 -0
- package/dist/warp/synthetic-token.d.ts +21 -0
- package/dist/warp/synthetic-token.d.ts.map +1 -0
- package/dist/warp/synthetic-token.js +98 -0
- package/dist/warp/synthetic-token.js.map +1 -0
- package/dist/warp/warp-artifact-manager.d.ts +17 -0
- package/dist/warp/warp-artifact-manager.d.ts.map +1 -0
- package/dist/warp/warp-artifact-manager.js +101 -0
- package/dist/warp/warp-artifact-manager.js.map +1 -0
- package/dist/warp/warp-query.d.ts +9 -0
- package/dist/warp/warp-query.d.ts.map +1 -0
- package/dist/warp/warp-query.js +105 -0
- package/dist/warp/warp-query.js.map +1 -0
- package/dist/warp/warp-tx.d.ts +31 -0
- package/dist/warp/warp-tx.d.ts.map +1 -0
- package/dist/warp/warp-tx.js +127 -0
- package/dist/warp/warp-tx.js.map +1 -0
- package/package.json +61 -3
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { ArtifactState, } from '@humanode-hyperlane/provider-sdk/artifact';
|
|
2
|
+
import { ZERO_ADDRESS_HEX_32, eqAddressCosmos, eqOptionalAddress, } from '@humanode-hyperlane/utils';
|
|
3
|
+
import { getNewContractAddress } from '../utils/base.js';
|
|
4
|
+
import { getMailboxConfig, } from './mailbox-query.js';
|
|
5
|
+
import { getCreateMailboxTx, getSetMailboxDefaultHookTx, getSetMailboxDefaultIsmTx, getSetMailboxOwnerTx, getSetMailboxRequiredHookTx, } from './mailbox-tx.js';
|
|
6
|
+
/**
|
|
7
|
+
* Reader for Cosmos Mailbox.
|
|
8
|
+
* Reads deployed mailbox configuration from the chain.
|
|
9
|
+
*/
|
|
10
|
+
export class CosmosMailboxReader {
|
|
11
|
+
query;
|
|
12
|
+
constructor(query) {
|
|
13
|
+
this.query = query;
|
|
14
|
+
}
|
|
15
|
+
async read(address) {
|
|
16
|
+
const mailboxConfig = await getMailboxConfig(this.query, address);
|
|
17
|
+
return {
|
|
18
|
+
artifactState: ArtifactState.DEPLOYED,
|
|
19
|
+
config: {
|
|
20
|
+
owner: mailboxConfig.owner,
|
|
21
|
+
defaultIsm: {
|
|
22
|
+
artifactState: ArtifactState.UNDERIVED,
|
|
23
|
+
deployed: {
|
|
24
|
+
address: mailboxConfig.defaultIsm,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
defaultHook: {
|
|
28
|
+
artifactState: ArtifactState.UNDERIVED,
|
|
29
|
+
deployed: {
|
|
30
|
+
address: mailboxConfig.defaultHook,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
requiredHook: {
|
|
34
|
+
artifactState: ArtifactState.UNDERIVED,
|
|
35
|
+
deployed: {
|
|
36
|
+
address: mailboxConfig.requiredHook,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
deployed: {
|
|
41
|
+
address: mailboxConfig.address,
|
|
42
|
+
domainId: mailboxConfig.localDomain,
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Writer for Cosmos Mailbox.
|
|
49
|
+
* Handles deployment and updates.
|
|
50
|
+
*/
|
|
51
|
+
export class CosmosMailboxWriter extends CosmosMailboxReader {
|
|
52
|
+
signer;
|
|
53
|
+
domainId;
|
|
54
|
+
constructor(query, signer, domainId) {
|
|
55
|
+
super(query);
|
|
56
|
+
this.signer = signer;
|
|
57
|
+
this.domainId = domainId;
|
|
58
|
+
}
|
|
59
|
+
async create(artifact) {
|
|
60
|
+
const { config } = artifact;
|
|
61
|
+
const allReceipts = [];
|
|
62
|
+
const signerAddress = this.signer.getSignerAddress();
|
|
63
|
+
// Extract addresses from artifacts (can be UNDERIVED or DEPLOYED)
|
|
64
|
+
const defaultIsmAddress = config.defaultIsm.deployed.address;
|
|
65
|
+
const defaultHookAddress = config.defaultHook.deployed.address;
|
|
66
|
+
const requiredHookAddress = config.requiredHook.deployed.address;
|
|
67
|
+
// 1. Create mailbox with signer as initial owner
|
|
68
|
+
const createTx = getCreateMailboxTx(signerAddress, {
|
|
69
|
+
domainId: this.domainId,
|
|
70
|
+
defaultIsmAddress,
|
|
71
|
+
});
|
|
72
|
+
const createReceipt = await this.signer.sendAndConfirmTransaction(createTx);
|
|
73
|
+
const mailboxAddress = getNewContractAddress(createReceipt);
|
|
74
|
+
allReceipts.push(createReceipt);
|
|
75
|
+
// 2. Set default hook if provided
|
|
76
|
+
if (!eqOptionalAddress(defaultHookAddress, ZERO_ADDRESS_HEX_32, eqAddressCosmos)) {
|
|
77
|
+
const setDefaultHookTx = getSetMailboxDefaultHookTx(signerAddress, {
|
|
78
|
+
mailboxAddress,
|
|
79
|
+
hookAddress: defaultHookAddress,
|
|
80
|
+
});
|
|
81
|
+
const hookReceipt = await this.signer.sendAndConfirmTransaction(setDefaultHookTx);
|
|
82
|
+
allReceipts.push(hookReceipt);
|
|
83
|
+
}
|
|
84
|
+
// 3. Set required hook if provided
|
|
85
|
+
if (!eqOptionalAddress(requiredHookAddress, ZERO_ADDRESS_HEX_32, eqAddressCosmos)) {
|
|
86
|
+
const setRequiredHookTx = getSetMailboxRequiredHookTx(signerAddress, {
|
|
87
|
+
mailboxAddress,
|
|
88
|
+
hookAddress: requiredHookAddress,
|
|
89
|
+
});
|
|
90
|
+
const hookReceipt = await this.signer.sendAndConfirmTransaction(setRequiredHookTx);
|
|
91
|
+
allReceipts.push(hookReceipt);
|
|
92
|
+
}
|
|
93
|
+
// Note: Ownership is NOT transferred during creation. The deployer retains
|
|
94
|
+
// ownership to allow setting ISM and hooks after initial deployment, which
|
|
95
|
+
// require owner permissions. Use update() to transfer ownership to the
|
|
96
|
+
// intended owner once all configuration is complete.
|
|
97
|
+
const deployedArtifact = {
|
|
98
|
+
artifactState: ArtifactState.DEPLOYED,
|
|
99
|
+
config: { ...config, owner: signerAddress },
|
|
100
|
+
deployed: {
|
|
101
|
+
address: mailboxAddress,
|
|
102
|
+
domainId: this.domainId,
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
return [deployedArtifact, allReceipts];
|
|
106
|
+
}
|
|
107
|
+
async update(artifact) {
|
|
108
|
+
const { config, deployed } = artifact;
|
|
109
|
+
const updateTxs = [];
|
|
110
|
+
// Read current state
|
|
111
|
+
const currentState = await this.read(deployed.address);
|
|
112
|
+
const currentConfig = currentState.config;
|
|
113
|
+
const currentOwner = currentConfig.owner;
|
|
114
|
+
const expectedDefaultIsmAddress = config.defaultIsm.deployed.address;
|
|
115
|
+
const expectedDefaultHookAddress = config.defaultHook.deployed.address;
|
|
116
|
+
const expectedRequiredHookAddress = config.requiredHook.deployed.address;
|
|
117
|
+
const currentDefaultIsmAddress = currentConfig.defaultIsm.deployed.address;
|
|
118
|
+
const currentDefaultHookAddress = currentConfig.defaultHook.deployed.address;
|
|
119
|
+
const currentRequiredHookAddress = currentConfig.requiredHook.deployed.address;
|
|
120
|
+
// Compare and generate update transactions
|
|
121
|
+
// 1. Update default ISM
|
|
122
|
+
if (!eqOptionalAddress(currentDefaultIsmAddress, expectedDefaultIsmAddress, eqAddressCosmos)) {
|
|
123
|
+
const setIsmTx = getSetMailboxDefaultIsmTx(currentOwner, {
|
|
124
|
+
mailboxAddress: deployed.address,
|
|
125
|
+
ismAddress: expectedDefaultIsmAddress,
|
|
126
|
+
});
|
|
127
|
+
updateTxs.push({
|
|
128
|
+
annotation: `Update mailbox default ISM to ${expectedDefaultIsmAddress}`,
|
|
129
|
+
...setIsmTx,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
// 2. Update default hook
|
|
133
|
+
if (!eqOptionalAddress(currentDefaultHookAddress, expectedDefaultHookAddress, eqAddressCosmos)) {
|
|
134
|
+
const setDefaultHookTx = getSetMailboxDefaultHookTx(currentOwner, {
|
|
135
|
+
mailboxAddress: deployed.address,
|
|
136
|
+
hookAddress: expectedDefaultHookAddress,
|
|
137
|
+
});
|
|
138
|
+
updateTxs.push({
|
|
139
|
+
annotation: `Update mailbox default hook to ${expectedDefaultHookAddress}`,
|
|
140
|
+
...setDefaultHookTx,
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
// 3. Update required hook
|
|
144
|
+
if (!eqOptionalAddress(currentRequiredHookAddress, expectedRequiredHookAddress, eqAddressCosmos)) {
|
|
145
|
+
const setRequiredHookTx = getSetMailboxRequiredHookTx(currentOwner, {
|
|
146
|
+
mailboxAddress: deployed.address,
|
|
147
|
+
hookAddress: expectedRequiredHookAddress,
|
|
148
|
+
});
|
|
149
|
+
updateTxs.push({
|
|
150
|
+
annotation: `Update mailbox required hook to ${expectedRequiredHookAddress}`,
|
|
151
|
+
...setRequiredHookTx,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
// 4. Update owner (LAST to avoid permission issues)
|
|
155
|
+
if (!eqOptionalAddress(currentOwner, config.owner, eqAddressCosmos)) {
|
|
156
|
+
const setOwnerTx = getSetMailboxOwnerTx(currentOwner, {
|
|
157
|
+
mailboxAddress: deployed.address,
|
|
158
|
+
newOwner: config.owner,
|
|
159
|
+
});
|
|
160
|
+
updateTxs.push({
|
|
161
|
+
annotation: `Transfer mailbox ownership to ${config.owner}`,
|
|
162
|
+
...setOwnerTx,
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return updateTxs;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=mailbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mailbox.js","sourceRoot":"","sources":["../../src/mailbox/mailbox.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,aAAa,GAEd,MAAM,2CAA2C,CAAC;AAKnD,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,OAAO,EAEL,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,iBAAiB,CAAC;AAEzB;;;GAGG;AACH,MAAM,OAAO,mBAAmB;IAIC;IAA/B,YAA+B,KAA+B;QAA/B,UAAK,GAAL,KAAK,CAA0B;IAAG,CAAC;IAElE,KAAK,CAAC,IAAI,CACR,OAAe;QAEf,MAAM,aAAa,GAAG,MAAM,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAElE,OAAO;YACL,aAAa,EAAE,aAAa,CAAC,QAAQ;YACrC,MAAM,EAAE;gBACN,KAAK,EAAE,aAAa,CAAC,KAAK;gBAC1B,UAAU,EAAE;oBACV,aAAa,EAAE,aAAa,CAAC,SAAS;oBACtC,QAAQ,EAAE;wBACR,OAAO,EAAE,aAAa,CAAC,UAAU;qBAClC;iBACF;gBACD,WAAW,EAAE;oBACX,aAAa,EAAE,aAAa,CAAC,SAAS;oBACtC,QAAQ,EAAE;wBACR,OAAO,EAAE,aAAa,CAAC,WAAW;qBACnC;iBACF;gBACD,YAAY,EAAE;oBACZ,aAAa,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,IAAI,CAAC;gBACb,UAAU,EAAE,kCAAkC,0BAA0B,EAAE;gBAC1E,GAAG,gBAAgB;aACpB,CAAC,CAAC;QACL,CAAC;QAED,0BAA0B;QAC1B,IACE,CAAC,iBAAiB,CAChB,0BAA0B,EAC1B,2BAA2B,EAC3B,eAAe,CAChB,EACD,CAAC;YACD,MAAM,iBAAiB,GAAG,2BAA2B,CAAC,YAAY,EAAE;gBAClE,cAAc,EAAE,QAAQ,CAAC,OAAO;gBAChC,WAAW,EAAE,2BAA2B;aACzC,CAAC,CAAC;YACH,SAAS,CAAC,IAAI,CAAC;gBACb,UAAU,EAAE,mCAAmC,2BAA2B,EAAE;gBAC5E,GAAG,iBAAiB;aACrB,CAAC,CAAC;QACL,CAAC;QAED,oDAAoD;QACpD,IAAI,CAAC,iBAAiB,CAAC,YAAY,EAAE,MAAM,CAAC,KAAK,EAAE,eAAe,CAAC,EAAE,CAAC;YACpE,MAAM,UAAU,GAAG,oBAAoB,CAAC,YAAY,EAAE;gBACpD,cAAc,EAAE,QAAQ,CAAC,OAAO;gBAChC,QAAQ,EAAE,MAAM,CAAC,KAAK;aACvB,CAAC,CAAC;YACH,SAAS,CAAC,IAAI,CAAC;gBACb,UAAU,EAAE,iCAAiC,MAAM,CAAC,KAAK,EAAE;gBAC3D,GAAG,UAAU;aACd,CAAC,CAAC;QACL,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as types from '@humanode-hyperlane/cosmos-types';
|
|
2
|
+
type RawCosmosModuleMessageRegistry<T> = {
|
|
3
|
+
[Key in keyof Omit<T, 'protobufPackage' | 'MsgServiceName' | 'MsgClientImpl'>]: {
|
|
4
|
+
proto: {
|
|
5
|
+
type: string;
|
|
6
|
+
converter: T[Key];
|
|
7
|
+
};
|
|
8
|
+
amino?: {
|
|
9
|
+
type: string;
|
|
10
|
+
converter?: T[Key];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type CoreCosmosModuleMessageRegistry = RawCosmosModuleMessageRegistry<typeof types.coreTx>;
|
|
15
|
+
type IsmCosmosModuleMessageRegistry = RawCosmosModuleMessageRegistry<typeof types.isTx>;
|
|
16
|
+
type PostDispatchCosmosModuleMessageRegistry = RawCosmosModuleMessageRegistry<typeof types.pdTx>;
|
|
17
|
+
type WarpTransactionCosmosModuleMessageRegistry = RawCosmosModuleMessageRegistry<typeof types.warpTx>;
|
|
18
|
+
type CosmosModuleMessageRegistry = CoreCosmosModuleMessageRegistry & IsmCosmosModuleMessageRegistry & PostDispatchCosmosModuleMessageRegistry & WarpTransactionCosmosModuleMessageRegistry;
|
|
19
|
+
export declare const COSMOS_MODULE_MESSAGE_REGISTRY: CosmosModuleMessageRegistry;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAE1D,KAAK,8BAA8B,CAAC,CAAC,IAAI;KACtC,GAAG,IAAI,MAAM,IAAI,CAChB,CAAC,EACD,iBAAiB,GAAG,gBAAgB,GAAG,eAAe,CACvD,GAAG;QACF,KAAK,EAAE;YACL,IAAI,EAAE,MAAM,CAAC;YACb,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;SACnB,CAAC;QACF,KAAK,CAAC,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,SAAS,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;SACpB,CAAC;KACH;CACF,CAAC;AAEF,KAAK,+BAA+B,GAAG,8BAA8B,CACnE,OAAO,KAAK,CAAC,MAAM,CACpB,CAAC;AACF,KAAK,8BAA8B,GAAG,8BAA8B,CAClE,OAAO,KAAK,CAAC,IAAI,CAClB,CAAC;AACF,KAAK,uCAAuC,GAAG,8BAA8B,CAC3E,OAAO,KAAK,CAAC,IAAI,CAClB,CAAC;AACF,KAAK,0CAA0C,GAC7C,8BAA8B,CAAC,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;AAEtD,KAAK,2BAA2B,GAAG,+BAA+B,GAChE,8BAA8B,GAC9B,uCAAuC,GACvC,0CAA0C,CAAC;AAO7C,eAAO,MAAM,8BAA8B,EAAE,2BAgX5C,CAAC"}
|
package/dist/registry.js
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import * as types from '@humanode-hyperlane/cosmos-types';
|
|
2
|
+
// amino converters can be null by default since the
|
|
3
|
+
// converters for proto can be taken. In rare cases
|
|
4
|
+
// they can differ, in that instance the amino
|
|
5
|
+
// converters can be overridden here by adding the
|
|
6
|
+
// methods "toJSON" and "fromJSON".
|
|
7
|
+
export const COSMOS_MODULE_MESSAGE_REGISTRY = {
|
|
8
|
+
// Core transactions
|
|
9
|
+
MsgCreateMailbox: {
|
|
10
|
+
proto: {
|
|
11
|
+
type: '/hyperlane.core.v1.MsgCreateMailbox',
|
|
12
|
+
converter: types.coreTx.MsgCreateMailbox,
|
|
13
|
+
},
|
|
14
|
+
amino: {
|
|
15
|
+
type: 'hyperlane/v1/MsgCreateMailbox',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
MsgCreateMailboxResponse: {
|
|
19
|
+
proto: {
|
|
20
|
+
type: '/hyperlane.core.v1.MsgCreateMailboxResponse',
|
|
21
|
+
converter: types.coreTx.MsgCreateMailboxResponse,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
MsgSetMailbox: {
|
|
25
|
+
proto: {
|
|
26
|
+
type: '/hyperlane.core.v1.MsgSetMailbox',
|
|
27
|
+
converter: types.coreTx.MsgSetMailbox,
|
|
28
|
+
},
|
|
29
|
+
amino: {
|
|
30
|
+
type: 'hyperlane/v1/MsgSetMailbox',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
MsgSetMailboxResponse: {
|
|
34
|
+
proto: {
|
|
35
|
+
type: '/hyperlane.core.v1.MsgSetMailboxResponse',
|
|
36
|
+
converter: types.coreTx.MsgSetMailboxResponse,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
MsgProcessMessage: {
|
|
40
|
+
proto: {
|
|
41
|
+
type: '/hyperlane.core.v1.MsgProcessMessage',
|
|
42
|
+
converter: types.coreTx.MsgProcessMessage,
|
|
43
|
+
},
|
|
44
|
+
amino: {
|
|
45
|
+
type: 'hyperlane/v1/MsgProcessMessage',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
MsgProcessMessageResponse: {
|
|
49
|
+
proto: {
|
|
50
|
+
type: '/hyperlane.core.v1.MsgProcessMessageResponse',
|
|
51
|
+
converter: types.coreTx.MsgProcessMessageResponse,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
// Interchain security transactions
|
|
55
|
+
MsgCreateMessageIdMultisigIsm: {
|
|
56
|
+
proto: {
|
|
57
|
+
type: '/hyperlane.core.interchain_security.v1.MsgCreateMessageIdMultisigIsm',
|
|
58
|
+
converter: types.isTx.MsgCreateMessageIdMultisigIsm,
|
|
59
|
+
},
|
|
60
|
+
amino: {
|
|
61
|
+
type: 'hyperlane/v1/MsgCreateMessageIdMultisigIsm',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
MsgCreateMessageIdMultisigIsmResponse: {
|
|
65
|
+
proto: {
|
|
66
|
+
type: '/hyperlane.core.interchain_security.v1.MsgCreateMessageIdMultisigIsmResponse',
|
|
67
|
+
converter: types.isTx.MsgCreateMessageIdMultisigIsmResponse,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
MsgCreateMerkleRootMultisigIsm: {
|
|
71
|
+
proto: {
|
|
72
|
+
type: '/hyperlane.core.interchain_security.v1.MsgCreateMerkleRootMultisigIsm',
|
|
73
|
+
converter: types.isTx.MsgCreateMerkleRootMultisigIsm,
|
|
74
|
+
},
|
|
75
|
+
amino: {
|
|
76
|
+
type: 'hyperlane/v1/MsgCreateMerkleRootMultisigIsm',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
MsgCreateMerkleRootMultisigIsmResponse: {
|
|
80
|
+
proto: {
|
|
81
|
+
type: '/hyperlane.core.interchain_security.v1.MsgCreateMerkleRootMultisigIsmResponse',
|
|
82
|
+
converter: types.isTx.MsgCreateMerkleRootMultisigIsmResponse,
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
MsgCreateNoopIsm: {
|
|
86
|
+
proto: {
|
|
87
|
+
type: '/hyperlane.core.interchain_security.v1.MsgCreateNoopIsm',
|
|
88
|
+
converter: types.isTx.MsgCreateNoopIsm,
|
|
89
|
+
},
|
|
90
|
+
amino: {
|
|
91
|
+
type: 'hyperlane/v1/MsgCreateNoopIsm',
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
MsgCreateNoopIsmResponse: {
|
|
95
|
+
proto: {
|
|
96
|
+
type: '/hyperlane.core.interchain_security.v1.MsgCreateNoopIsmResponse',
|
|
97
|
+
converter: types.isTx.MsgCreateNoopIsmResponse,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
MsgAnnounceValidator: {
|
|
101
|
+
proto: {
|
|
102
|
+
type: '/hyperlane.core.interchain_security.v1.MsgAnnounceValidator',
|
|
103
|
+
converter: types.isTx.MsgAnnounceValidator,
|
|
104
|
+
},
|
|
105
|
+
amino: {
|
|
106
|
+
type: 'hyperlane/v1/MsgAnnounceValidator',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
MsgAnnounceValidatorResponse: {
|
|
110
|
+
proto: {
|
|
111
|
+
type: '/hyperlane.core.interchain_security.v1.MsgAnnounceValidatorResponse',
|
|
112
|
+
converter: types.isTx.MsgAnnounceValidatorResponse,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
MsgCreateRoutingIsm: {
|
|
116
|
+
proto: {
|
|
117
|
+
type: '/hyperlane.core.interchain_security.v1.MsgCreateRoutingIsm',
|
|
118
|
+
converter: types.isTx.MsgCreateRoutingIsm,
|
|
119
|
+
},
|
|
120
|
+
amino: {
|
|
121
|
+
type: 'hyperlane/v1/MsgCreateRoutingIsm',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
MsgCreateRoutingIsmResponse: {
|
|
125
|
+
proto: {
|
|
126
|
+
type: '/hyperlane.core.interchain_security.v1.MsgCreateRoutingIsmResponse',
|
|
127
|
+
converter: types.isTx.MsgCreateRoutingIsmResponse,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
MsgSetRoutingIsmDomain: {
|
|
131
|
+
proto: {
|
|
132
|
+
type: '/hyperlane.core.interchain_security.v1.MsgSetRoutingIsmDomain',
|
|
133
|
+
converter: types.isTx.MsgSetRoutingIsmDomain,
|
|
134
|
+
},
|
|
135
|
+
amino: {
|
|
136
|
+
type: 'hyperlane/v1/MsgSetRoutingIsmDomain',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
MsgSetRoutingIsmDomainResponse: {
|
|
140
|
+
proto: {
|
|
141
|
+
type: '/hyperlane.core.interchain_security.v1.MsgSetRoutingIsmDomainResponse',
|
|
142
|
+
converter: types.isTx.MsgSetRoutingIsmDomainResponse,
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
MsgRemoveRoutingIsmDomain: {
|
|
146
|
+
proto: {
|
|
147
|
+
type: '/hyperlane.core.interchain_security.v1.MsgRemoveRoutingIsmDomain',
|
|
148
|
+
converter: types.isTx.MsgRemoveRoutingIsmDomain,
|
|
149
|
+
},
|
|
150
|
+
amino: {
|
|
151
|
+
type: 'hyperlane/v1/MsgRemoveRoutingIsmDomain',
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
MsgRemoveRoutingIsmDomainResponse: {
|
|
155
|
+
proto: {
|
|
156
|
+
type: '/hyperlane.core.interchain_security.v1.MsgRemoveRoutingIsmDomainResponse',
|
|
157
|
+
converter: types.isTx.MsgRemoveRoutingIsmDomainResponse,
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
MsgUpdateRoutingIsmOwner: {
|
|
161
|
+
proto: {
|
|
162
|
+
type: '/hyperlane.core.interchain_security.v1.MsgUpdateRoutingIsmOwner',
|
|
163
|
+
converter: types.isTx.MsgUpdateRoutingIsmOwner,
|
|
164
|
+
},
|
|
165
|
+
amino: {
|
|
166
|
+
type: 'hyperlane/v1/MsgUpdateRoutingIsmOwner',
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
MsgUpdateRoutingIsmOwnerResponse: {
|
|
170
|
+
proto: {
|
|
171
|
+
type: '/hyperlane.core.interchain_security.v1.MsgUpdateRoutingIsmOwnerResponse',
|
|
172
|
+
converter: types.isTx.MsgUpdateRoutingIsmOwnerResponse,
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
// Post dispatch transactions
|
|
176
|
+
MsgCreateIgp: {
|
|
177
|
+
proto: {
|
|
178
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgCreateIgp',
|
|
179
|
+
converter: types.pdTx.MsgCreateIgp,
|
|
180
|
+
},
|
|
181
|
+
amino: {
|
|
182
|
+
type: 'hyperlane/v1/MsgCreateIgp',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
MsgCreateIgpResponse: {
|
|
186
|
+
proto: {
|
|
187
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgCreateIgpResponse',
|
|
188
|
+
converter: types.pdTx.MsgCreateIgpResponse,
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
MsgSetIgpOwner: {
|
|
192
|
+
proto: {
|
|
193
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgSetIgpOwner',
|
|
194
|
+
converter: types.pdTx.MsgSetIgpOwner,
|
|
195
|
+
},
|
|
196
|
+
amino: {
|
|
197
|
+
type: 'hyperlane/v1/MsgSetIgpOwner',
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
MsgSetIgpOwnerResponse: {
|
|
201
|
+
proto: {
|
|
202
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgSetIgpOwnerResponse',
|
|
203
|
+
converter: types.pdTx.MsgSetIgpOwnerResponse,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
MsgSetDestinationGasConfig: {
|
|
207
|
+
proto: {
|
|
208
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgSetDestinationGasConfig',
|
|
209
|
+
converter: types.pdTx.MsgSetDestinationGasConfig,
|
|
210
|
+
},
|
|
211
|
+
amino: {
|
|
212
|
+
type: 'hyperlane/v1/MsgSetDestinationGasConfig',
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
MsgSetDestinationGasConfigResponse: {
|
|
216
|
+
proto: {
|
|
217
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgSetDestinationGasConfigResponse',
|
|
218
|
+
converter: types.pdTx.MsgSetDestinationGasConfigResponse,
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
MsgPayForGas: {
|
|
222
|
+
proto: {
|
|
223
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgPayForGas',
|
|
224
|
+
converter: types.pdTx.MsgPayForGas,
|
|
225
|
+
},
|
|
226
|
+
amino: {
|
|
227
|
+
type: 'hyperlane/v1/MsgPayForGas',
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
MsgPayForGasResponse: {
|
|
231
|
+
proto: {
|
|
232
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgPayForGasResponse',
|
|
233
|
+
converter: types.pdTx.MsgPayForGasResponse,
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
MsgClaim: {
|
|
237
|
+
proto: {
|
|
238
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgClaim',
|
|
239
|
+
converter: types.pdTx.MsgClaim,
|
|
240
|
+
},
|
|
241
|
+
amino: {
|
|
242
|
+
type: 'hyperlane/v1/MsgClaim',
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
MsgClaimResponse: {
|
|
246
|
+
proto: {
|
|
247
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgClaimResponse',
|
|
248
|
+
converter: types.pdTx.MsgClaimResponse,
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
MsgCreateMerkleTreeHook: {
|
|
252
|
+
proto: {
|
|
253
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgCreateMerkleTreeHook',
|
|
254
|
+
converter: types.pdTx.MsgCreateMerkleTreeHook,
|
|
255
|
+
},
|
|
256
|
+
amino: {
|
|
257
|
+
type: 'hyperlane/v1/MsgCreateMerkleTreeHook',
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
MsgCreateMerkleTreeHookResponse: {
|
|
261
|
+
proto: {
|
|
262
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgCreateMerkleTreeHookResponse',
|
|
263
|
+
converter: types.pdTx.MsgCreateMerkleTreeHookResponse,
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
MsgCreateNoopHook: {
|
|
267
|
+
proto: {
|
|
268
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgCreateNoopHook',
|
|
269
|
+
converter: types.pdTx.MsgCreateNoopHook,
|
|
270
|
+
},
|
|
271
|
+
amino: {
|
|
272
|
+
type: 'hyperlane/v1/MsgCreateNoopHook',
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
MsgCreateNoopHookResponse: {
|
|
276
|
+
proto: {
|
|
277
|
+
type: '/hyperlane.core.post_dispatch.v1.MsgCreateNoopHookResponse',
|
|
278
|
+
converter: types.pdTx.MsgCreateNoopHookResponse,
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
// Warp transactions
|
|
282
|
+
MsgCreateCollateralToken: {
|
|
283
|
+
proto: {
|
|
284
|
+
type: '/hyperlane.warp.v1.MsgCreateCollateralToken',
|
|
285
|
+
converter: types.warpTx.MsgCreateCollateralToken,
|
|
286
|
+
},
|
|
287
|
+
amino: {
|
|
288
|
+
type: 'hyperlane/warp/v1/MsgCreateCollateralToken',
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
MsgCreateCollateralTokenResponse: {
|
|
292
|
+
proto: {
|
|
293
|
+
type: '/hyperlane.warp.v1.MsgCreateCollateralTokenResponse',
|
|
294
|
+
converter: types.warpTx.MsgCreateCollateralTokenResponse,
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
MsgCreateSyntheticToken: {
|
|
298
|
+
proto: {
|
|
299
|
+
type: '/hyperlane.warp.v1.MsgCreateSyntheticToken',
|
|
300
|
+
converter: types.warpTx.MsgCreateSyntheticToken,
|
|
301
|
+
},
|
|
302
|
+
amino: {
|
|
303
|
+
type: 'hyperlane/warp/v1/MsgCreateSyntheticToken',
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
MsgCreateSyntheticTokenResponse: {
|
|
307
|
+
proto: {
|
|
308
|
+
type: '/hyperlane.warp.v1.MsgCreateSyntheticTokenResponse',
|
|
309
|
+
converter: types.warpTx.MsgCreateSyntheticTokenResponse,
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
MsgSetToken: {
|
|
313
|
+
proto: {
|
|
314
|
+
type: '/hyperlane.warp.v1.MsgSetToken',
|
|
315
|
+
converter: types.warpTx.MsgSetToken,
|
|
316
|
+
},
|
|
317
|
+
amino: {
|
|
318
|
+
type: 'hyperlane/warp/v1/MsgSetToken',
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
MsgSetTokenResponse: {
|
|
322
|
+
proto: {
|
|
323
|
+
type: '/hyperlane.warp.v1.MsgSetTokenResponse',
|
|
324
|
+
converter: types.warpTx.MsgSetTokenResponse,
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
MsgEnrollRemoteRouter: {
|
|
328
|
+
proto: {
|
|
329
|
+
type: '/hyperlane.warp.v1.MsgEnrollRemoteRouter',
|
|
330
|
+
converter: types.warpTx.MsgEnrollRemoteRouter,
|
|
331
|
+
},
|
|
332
|
+
amino: {
|
|
333
|
+
type: 'hyperlane/warp/v1/MsgEnrollRemoteRouter',
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
MsgEnrollRemoteRouterResponse: {
|
|
337
|
+
proto: {
|
|
338
|
+
type: '/hyperlane.warp.v1.MsgEnrollRemoteRouterResponse',
|
|
339
|
+
converter: types.warpTx.MsgEnrollRemoteRouterResponse,
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
MsgUnrollRemoteRouter: {
|
|
343
|
+
proto: {
|
|
344
|
+
type: '/hyperlane.warp.v1.MsgUnrollRemoteRouter',
|
|
345
|
+
converter: types.warpTx.MsgUnrollRemoteRouter,
|
|
346
|
+
},
|
|
347
|
+
amino: {
|
|
348
|
+
type: 'hyperlane/warp/v1/MsgUnrollRemoteRouter',
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
MsgUnrollRemoteRouterResponse: {
|
|
352
|
+
proto: {
|
|
353
|
+
type: '/hyperlane.warp.v1.MsgUnrollRemoteRouterResponse',
|
|
354
|
+
converter: types.warpTx.MsgUnrollRemoteRouterResponse,
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
MsgRemoteTransfer: {
|
|
358
|
+
proto: {
|
|
359
|
+
type: '/hyperlane.warp.v1.MsgRemoteTransfer',
|
|
360
|
+
converter: types.warpTx.MsgRemoteTransfer,
|
|
361
|
+
},
|
|
362
|
+
amino: {
|
|
363
|
+
type: 'hyperlane/warp/v1/MsgRemoteTransfer',
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
MsgRemoteTransferResponse: {
|
|
367
|
+
proto: {
|
|
368
|
+
type: '/hyperlane.warp.v1.MsgRemoteTransferResponse',
|
|
369
|
+
converter: types.warpTx.MsgRemoteTransferResponse,
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
};
|
|
373
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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AAyB;SAClD;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TestChainMetadata } from '@humanode-hyperlane/provider-sdk/chain';
|
|
2
|
+
/**
|
|
3
|
+
* Test timeout for operations that require node startup and deployment
|
|
4
|
+
*/
|
|
5
|
+
export declare const DEFAULT_E2E_TEST_TIMEOUT = 100000;
|
|
6
|
+
/**
|
|
7
|
+
* Default test chain metadata for Cosmos local network
|
|
8
|
+
*/
|
|
9
|
+
export declare const TEST_COSMOS_CHAIN_METADATA: TestChainMetadata;
|
|
10
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/testing/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,wBAAwB,SAAU,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,iBAoBxC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ProtocolType } from '@humanode-hyperlane/provider-sdk';
|
|
2
|
+
/**
|
|
3
|
+
* Test timeout for operations that require node startup and deployment
|
|
4
|
+
*/
|
|
5
|
+
export const DEFAULT_E2E_TEST_TIMEOUT = 100_000;
|
|
6
|
+
/**
|
|
7
|
+
* Default test chain metadata for Cosmos local network
|
|
8
|
+
*/
|
|
9
|
+
export const TEST_COSMOS_CHAIN_METADATA = {
|
|
10
|
+
bech32Prefix: 'hyp',
|
|
11
|
+
chainId: 'hyperlane-local-1',
|
|
12
|
+
protocol: ProtocolType.CosmosNative,
|
|
13
|
+
domainId: 758986691,
|
|
14
|
+
name: 'hyp1',
|
|
15
|
+
nativeToken: {
|
|
16
|
+
decimals: 6,
|
|
17
|
+
name: 'TEST',
|
|
18
|
+
symbol: 'TEST',
|
|
19
|
+
denom: 'uhyp',
|
|
20
|
+
},
|
|
21
|
+
rpcUrls: [
|
|
22
|
+
{
|
|
23
|
+
http: 'http://127.0.0.1:26657',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
rpcPort: 26657,
|
|
27
|
+
rpcUrl: 'http://127.0.0.1:26657',
|
|
28
|
+
restPort: 1317,
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/testing/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAGhE;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAEhD;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAsB;IAC3D,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,mBAAmB;IAC5B,QAAQ,EAAE,YAAY,CAAC,YAAY;IACnC,QAAQ,EAAE,SAAS;IACnB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE;QACX,QAAQ,EAAE,CAAC;QACX,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE,MAAM;QACd,KAAK,EAAE,MAAM;KACd;IACD,OAAO,EAAE;QACP;YACE,IAAI,EAAE,wBAAwB;SAC/B;KACF;IACD,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,wBAAwB;IAChC,QAAQ,EAAE,IAAI;CACf,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test utilities for Cosmos SDK
|
|
3
|
+
* Export via @humanode-hyperlane/cosmos-sdk/testing
|
|
4
|
+
*/
|
|
5
|
+
export { DEFAULT_E2E_TEST_TIMEOUT, TEST_COSMOS_CHAIN_METADATA, } from './constants.js';
|
|
6
|
+
export { runCosmosNode } from './node.js';
|
|
7
|
+
export { createSigner, createSignerWithPrivateKey } from './utils.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Test utilities for Cosmos SDK
|
|
3
|
+
* Export via @humanode-hyperlane/cosmos-sdk/testing
|
|
4
|
+
*/
|
|
5
|
+
// Constants
|
|
6
|
+
export { DEFAULT_E2E_TEST_TIMEOUT, TEST_COSMOS_CHAIN_METADATA, } from './constants.js';
|
|
7
|
+
// Node management
|
|
8
|
+
export { runCosmosNode } from './node.js';
|
|
9
|
+
export { createSigner, createSignerWithPrivateKey } from './utils.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY;AACZ,OAAO,EACL,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AAExB,kBAAkB;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC"}
|