@hyperlane-xyz/sdk 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/HyperlaneCore.test.d.ts +2 -0
- package/dist/core/HyperlaneCore.test.d.ts.map +1 -0
- package/dist/core/HyperlaneCore.test.js +27 -0
- package/dist/core/HyperlaneCore.test.js.map +1 -0
- package/dist/core/contracts.d.ts +4 -1
- package/dist/core/contracts.d.ts.map +1 -1
- package/dist/core/contracts.js +1 -1
- package/dist/core/contracts.js.map +1 -1
- package/dist/deploy/core/HyperlaneCoreDeployer.d.ts +3 -0
- package/dist/deploy/core/HyperlaneCoreDeployer.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HyperlaneCore.test.d.ts","sourceRoot":"","sources":["../../src/core/HyperlaneCore.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const chainConnectionConfigs_1 = require("../consts/chainConnectionConfigs");
|
|
13
|
+
const MultiProvider_1 = require("../providers/MultiProvider");
|
|
14
|
+
const HyperlaneCore_1 = require("./HyperlaneCore");
|
|
15
|
+
describe('HyperlaneCore', () => {
|
|
16
|
+
describe('fromEnvironment', () => {
|
|
17
|
+
it('creates an object for mainnet', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
const multiProvider = new MultiProvider_1.MultiProvider(chainConnectionConfigs_1.chainConnectionConfigs);
|
|
19
|
+
HyperlaneCore_1.HyperlaneCore.fromEnvironment('mainnet', multiProvider);
|
|
20
|
+
}));
|
|
21
|
+
it('creates an object for testnet2', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
22
|
+
const multiProvider = new MultiProvider_1.MultiProvider(chainConnectionConfigs_1.chainConnectionConfigs);
|
|
23
|
+
HyperlaneCore_1.HyperlaneCore.fromEnvironment('testnet2', multiProvider);
|
|
24
|
+
}));
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=HyperlaneCore.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HyperlaneCore.test.js","sourceRoot":"","sources":["../../src/core/HyperlaneCore.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6EAA0E;AAC1E,8DAA2D;AAE3D,mDAAgD;AAEhD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;QAC/B,EAAE,CAAC,+BAA+B,EAAE,GAAS,EAAE;YAC7C,MAAM,aAAa,GAAG,IAAI,6BAAa,CAAC,+CAAsB,CAAC,CAAC;YAChE,6BAAa,CAAC,eAAe,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAC1D,CAAC,CAAA,CAAC,CAAC;QACH,EAAE,CAAC,gCAAgC,EAAE,GAAS,EAAE;YAC9C,MAAM,aAAa,GAAG,IAAI,6BAAa,CAAC,+CAAsB,CAAC,CAAC;YAChE,6BAAa,CAAC,eAAe,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;QAC3D,CAAC,CAAA,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/core/contracts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbacusConnectionManager, AbacusConnectionManager__factory, Inbox, InboxValidatorManager, InboxValidatorManager__factory, Inbox__factory, InterchainGasPaymaster, InterchainGasPaymaster__factory, Outbox, OutboxValidatorManager, OutboxValidatorManager__factory, Outbox__factory, UpgradeBeaconController, UpgradeBeaconController__factory } from '@hyperlane-xyz/core';
|
|
1
|
+
import { AbacusConnectionManager, AbacusConnectionManager__factory, Create2Factory__factory, Inbox, InboxValidatorManager, InboxValidatorManager__factory, Inbox__factory, InterchainAccountRouter__factory, InterchainGasPaymaster, InterchainGasPaymaster__factory, InterchainQueryRouter__factory, Outbox, OutboxValidatorManager, OutboxValidatorManager__factory, Outbox__factory, UpgradeBeaconController, UpgradeBeaconController__factory } from '@hyperlane-xyz/core';
|
|
2
2
|
import { BeaconProxyAddresses, ProxiedContract } from '../proxy';
|
|
3
3
|
import { ChainName, RemoteChainMap } from '../types';
|
|
4
4
|
export declare type InboxContracts = {
|
|
@@ -22,6 +22,9 @@ export declare const coreFactories: {
|
|
|
22
22
|
outboxValidatorManager: OutboxValidatorManager__factory;
|
|
23
23
|
inbox: Inbox__factory;
|
|
24
24
|
inboxValidatorManager: InboxValidatorManager__factory;
|
|
25
|
+
interchainAccountRouter: InterchainAccountRouter__factory;
|
|
26
|
+
interchainQueryRouter: InterchainQueryRouter__factory;
|
|
27
|
+
create2Factory: Create2Factory__factory;
|
|
25
28
|
connectionManager: AbacusConnectionManager__factory;
|
|
26
29
|
upgradeBeaconController: UpgradeBeaconController__factory;
|
|
27
30
|
interchainGasPaymaster: InterchainGasPaymaster__factory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/core/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,KAAK,EACL,qBAAqB,EACrB,8BAA8B,EAC9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,uBAAuB,EACvB,gCAAgC,EACjC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAErD,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,eAAe,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC;IACpD,qBAAqB,EAAE,qBAAqB,CAAC;CAC9C,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACtD,sBAAsB,EAAE,sBAAsB,CAAC;CAChD,CAAC;AAEF,aAAK,yBAAyB,GAAG;IAC/B,sBAAsB,EAAE,eAAe,CACrC,sBAAsB,EACtB,oBAAoB,CACrB,CAAC;IACF,iBAAiB,EAAE,uBAAuB,CAAC;CAC5C,CAAC;AAEF,oBAAY,aAAa,CACvB,MAAM,SAAS,SAAS,EACxB,KAAK,SAAS,MAAM,IAClB,eAAe,GACjB,yBAAyB,GAAG;IAC1B,OAAO,EAAE,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;IACvD,uBAAuB,EAAE,uBAAuB,CAAC;CAClD,CAAC;AAYJ,eAAO,MAAM,aAAa;;;;;;;;;;;CASzB,CAAC"}
|
package/dist/core/contracts.js
CHANGED
|
@@ -10,5 +10,5 @@ const outboxFactories = {
|
|
|
10
10
|
outbox: new core_1.Outbox__factory(),
|
|
11
11
|
outboxValidatorManager: new core_1.OutboxValidatorManager__factory(),
|
|
12
12
|
};
|
|
13
|
-
exports.coreFactories = Object.assign(Object.assign({ connectionManager: new core_1.AbacusConnectionManager__factory(), upgradeBeaconController: new core_1.UpgradeBeaconController__factory(), interchainGasPaymaster: new core_1.InterchainGasPaymaster__factory() }, inboxFactories), outboxFactories);
|
|
13
|
+
exports.coreFactories = Object.assign(Object.assign({ interchainAccountRouter: new core_1.InterchainAccountRouter__factory(), interchainQueryRouter: new core_1.InterchainQueryRouter__factory(), create2Factory: new core_1.Create2Factory__factory(), connectionManager: new core_1.AbacusConnectionManager__factory(), upgradeBeaconController: new core_1.UpgradeBeaconController__factory(), interchainGasPaymaster: new core_1.InterchainGasPaymaster__factory() }, inboxFactories), outboxFactories);
|
|
14
14
|
//# sourceMappingURL=contracts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/core/contracts.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../src/core/contracts.ts"],"names":[],"mappings":";;;AAAA,8CAkB6B;AAgC7B,MAAM,cAAc,GAAG;IACrB,KAAK,EAAE,IAAI,qBAAc,EAAE;IAC3B,qBAAqB,EAAE,IAAI,qCAA8B,EAAE;CAC5D,CAAC;AAEF,MAAM,eAAe,GAAG;IACtB,MAAM,EAAE,IAAI,sBAAe,EAAE;IAC7B,sBAAsB,EAAE,IAAI,sCAA+B,EAAE;CAC9D,CAAC;AAEW,QAAA,aAAa,iCACxB,uBAAuB,EAAE,IAAI,uCAAgC,EAAE,EAC/D,qBAAqB,EAAE,IAAI,qCAA8B,EAAE,EAC3D,cAAc,EAAE,IAAI,8BAAuB,EAAE,EAC7C,iBAAiB,EAAE,IAAI,uCAAgC,EAAE,EACzD,uBAAuB,EAAE,IAAI,uCAAgC,EAAE,EAC/D,sBAAsB,EAAE,IAAI,sCAA+B,EAAE,IAC1D,cAAc,GACd,eAAe,EAClB"}
|
|
@@ -16,6 +16,9 @@ export declare class HyperlaneCoreDeployer<Chain extends ChainName> extends Hype
|
|
|
16
16
|
outboxValidatorManager: import("@hyperlane-xyz/core").OutboxValidatorManager__factory;
|
|
17
17
|
inbox: import("@hyperlane-xyz/core").Inbox__factory;
|
|
18
18
|
inboxValidatorManager: import("@hyperlane-xyz/core").InboxValidatorManager__factory;
|
|
19
|
+
interchainAccountRouter: import("@hyperlane-xyz/core").InterchainAccountRouter__factory;
|
|
20
|
+
interchainQueryRouter: import("@hyperlane-xyz/core").InterchainQueryRouter__factory;
|
|
21
|
+
create2Factory: import("@hyperlane-xyz/core").Create2Factory__factory;
|
|
19
22
|
connectionManager: import("@hyperlane-xyz/core").AbacusConnectionManager__factory;
|
|
20
23
|
upgradeBeaconController: import("@hyperlane-xyz/core").UpgradeBeaconController__factory;
|
|
21
24
|
interchainGasPaymaster: import("@hyperlane-xyz/core").InterchainGasPaymaster__factory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HyperlaneCoreDeployer.d.ts","sourceRoot":"","sources":["../../../src/deploy/core/HyperlaneCoreDeployer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAW,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EACL,aAAa,EACb,cAAc,EACd,eAAe,EACf,aAAa,EACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAkB,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE7D,qBAAa,qBAAqB,CAChC,KAAK,SAAS,SAAS,CACvB,SAAQ,iBAAiB,CACzB,KAAK,EACL,UAAU,EACV,aA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C,KAAK,EAAE,KAAK,CAAC,EAC1C,KAAK,EAAE,KAAK,CAAC,OAAO,EACpB,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC;CAkBrC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperlane-xyz/sdk",
|
|
3
3
|
"description": "The official SDK for the Hyperlane Network",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.3",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hyperlane-xyz/celo-ethers-provider": "^0.1.1",
|
|
7
|
-
"@hyperlane-xyz/core": "0.5.
|
|
8
|
-
"@hyperlane-xyz/utils": "0.5.
|
|
7
|
+
"@hyperlane-xyz/core": "0.5.3",
|
|
8
|
+
"@hyperlane-xyz/utils": "0.5.3",
|
|
9
9
|
"@types/debug": "^4.1.7",
|
|
10
10
|
"coingecko-api": "^1.0.10",
|
|
11
11
|
"cross-fetch": "^3.1.5",
|