@moonbeam-network/mrl 3.2.0 → 4.0.0
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 -8
- package/build/index.d.ts +9 -2
- package/build/index.mjs +43 -37
- package/build/index.mjs.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -29,13 +29,13 @@ import { Mrl } from '@moonbeam-network/mrl';
|
|
|
29
29
|
|
|
30
30
|
const fromEvm = async () => {
|
|
31
31
|
const transferData = await Mrl()
|
|
32
|
-
.setSource(
|
|
33
|
-
.setDestination(
|
|
34
|
-
.setAsset(
|
|
35
|
-
.setIsAutomatic(
|
|
32
|
+
.setSource(ethereum)
|
|
33
|
+
.setDestination(moonbeam)
|
|
34
|
+
.setAsset(eth)
|
|
35
|
+
.setIsAutomatic(false)
|
|
36
36
|
.setAddresses({
|
|
37
|
-
sourceAddress:
|
|
38
|
-
destinationAddress:
|
|
37
|
+
sourceAddress: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
|
|
38
|
+
destinationAddress: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
|
|
@@ -47,8 +47,11 @@ fromEvm();
|
|
|
47
47
|
```js
|
|
48
48
|
...
|
|
49
49
|
|
|
50
|
-
const hash = await transferData.transfer(
|
|
51
|
-
|
|
50
|
+
const hash = await transferData.transfer({
|
|
51
|
+
amount: 0.1,
|
|
52
|
+
isAutomatic: false,
|
|
53
|
+
signers: { evmSigner: ethereumWalletClient }, // Ethereum Signer, for example created with wagmi
|
|
54
|
+
});
|
|
52
55
|
```
|
|
53
56
|
|
|
54
57
|
# Examples
|
package/build/index.d.ts
CHANGED
|
@@ -19,7 +19,14 @@ interface TransferData {
|
|
|
19
19
|
min: AssetAmount;
|
|
20
20
|
moonChain: MoonChainTransferData;
|
|
21
21
|
source: SourceTransferData;
|
|
22
|
-
transfer(
|
|
22
|
+
transfer(params: TransferParams): Promise<string[]>;
|
|
23
|
+
}
|
|
24
|
+
interface TransferParams {
|
|
25
|
+
amount: number | string;
|
|
26
|
+
isAutomatic: boolean;
|
|
27
|
+
signers: Signers;
|
|
28
|
+
statusCallback?: (status: ISubmittableResult) => void;
|
|
29
|
+
sendOnlyRemoteExecution?: boolean;
|
|
23
30
|
}
|
|
24
31
|
interface SourceTransferData extends SourceChainTransferData {
|
|
25
32
|
destinationFeeBalance: AssetAmount;
|
|
@@ -75,4 +82,4 @@ declare function Mrl(options?: MrlOptions): {
|
|
|
75
82
|
getExecuteTransferData({ txId, chain }: WormholeExecuteTransferParams): Promise<ExecuteTransferData>;
|
|
76
83
|
};
|
|
77
84
|
|
|
78
|
-
export { type ChainTransferData, type DestinationTransferData, type ExecuteTransferData, type MoonChainTransferData, Mrl, type MrlOptions, type Signers, type SourceTransferData, type TransferData };
|
|
85
|
+
export { type ChainTransferData, type DestinationTransferData, type ExecuteTransferData, type MoonChainTransferData, Mrl, type MrlOptions, type Signers, type SourceTransferData, type TransferData, type TransferParams };
|
package/build/index.mjs
CHANGED
|
@@ -156,10 +156,10 @@ __export(ethers_contracts_exports, {
|
|
|
156
156
|
Implementation__factory: () => Implementation__factory
|
|
157
157
|
});
|
|
158
158
|
|
|
159
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
160
|
-
var version = "6.
|
|
159
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/_version.js
|
|
160
|
+
var version = "6.14.4";
|
|
161
161
|
|
|
162
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
162
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/properties.js
|
|
163
163
|
function checkType(value, type, name) {
|
|
164
164
|
const types = type.split("|").map((t) => t.trim());
|
|
165
165
|
for (let i = 0; i < types.length; i++) {
|
|
@@ -200,7 +200,7 @@ function defineProperties(target, values, types) {
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
203
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/errors.js
|
|
204
204
|
function stringify(value, seen) {
|
|
205
205
|
if (value == null) {
|
|
206
206
|
return "null";
|
|
@@ -359,7 +359,7 @@ function assertPrivate(givenGuard, guard, className) {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
362
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/data.js
|
|
363
363
|
function _getBytes(value, name, copy) {
|
|
364
364
|
if (value instanceof Uint8Array) {
|
|
365
365
|
if (copy) {
|
|
@@ -446,7 +446,7 @@ function zeroPadBytes(data, length) {
|
|
|
446
446
|
return zeroPad(data, length, false);
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
449
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/maths.js
|
|
450
450
|
var BN_0 = BigInt(0);
|
|
451
451
|
var BN_1 = BigInt(1);
|
|
452
452
|
var maxValue = 9007199254740991;
|
|
@@ -596,7 +596,7 @@ function toBeArray(_value) {
|
|
|
596
596
|
return result;
|
|
597
597
|
}
|
|
598
598
|
|
|
599
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
599
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/events.js
|
|
600
600
|
var EventPayload = class {
|
|
601
601
|
/**
|
|
602
602
|
* The event filter.
|
|
@@ -626,7 +626,7 @@ var EventPayload = class {
|
|
|
626
626
|
}
|
|
627
627
|
};
|
|
628
628
|
|
|
629
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
629
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/utf8.js
|
|
630
630
|
function errorFunc(reason, offset, bytes3, output2, badCodepoint) {
|
|
631
631
|
assertArgument(false, `invalid codepoint at offset ${offset}; ${reason}`, "bytes", bytes3);
|
|
632
632
|
}
|
|
@@ -771,7 +771,7 @@ function toUtf8String(bytes3, onError) {
|
|
|
771
771
|
return _toUtf8String(getUtf8CodePoints(bytes3, onError));
|
|
772
772
|
}
|
|
773
773
|
|
|
774
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
774
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/rlp-encode.js
|
|
775
775
|
function arrayifyInteger(value) {
|
|
776
776
|
const result = [];
|
|
777
777
|
while (value) {
|
|
@@ -815,7 +815,7 @@ function encodeRlp(object) {
|
|
|
815
815
|
return result;
|
|
816
816
|
}
|
|
817
817
|
|
|
818
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
818
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/abstract-coder.js
|
|
819
819
|
var WordSize = 32;
|
|
820
820
|
var Padding = new Uint8Array(WordSize);
|
|
821
821
|
var passProperties = ["then"];
|
|
@@ -1488,7 +1488,7 @@ var genShake = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts((opts
|
|
|
1488
1488
|
var shake128 = /* @__PURE__ */ genShake(31, 168, 128 / 8);
|
|
1489
1489
|
var shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
|
|
1490
1490
|
|
|
1491
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
1491
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/crypto/keccak.js
|
|
1492
1492
|
var locked = false;
|
|
1493
1493
|
var _keccak256 = function(data) {
|
|
1494
1494
|
return keccak_256(data);
|
|
@@ -1510,10 +1510,10 @@ keccak256.register = function(func) {
|
|
|
1510
1510
|
};
|
|
1511
1511
|
Object.freeze(keccak256);
|
|
1512
1512
|
|
|
1513
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
1513
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/constants/addresses.js
|
|
1514
1514
|
var ZeroAddress = "0x0000000000000000000000000000000000000000";
|
|
1515
1515
|
|
|
1516
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
1516
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/address/address.js
|
|
1517
1517
|
var BN_02 = BigInt(0);
|
|
1518
1518
|
var BN_36 = BigInt(36);
|
|
1519
1519
|
function getChecksumAddress(address) {
|
|
@@ -1596,7 +1596,7 @@ function getAddress(address) {
|
|
|
1596
1596
|
assertArgument(false, "invalid address", "address", address);
|
|
1597
1597
|
}
|
|
1598
1598
|
|
|
1599
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
1599
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/address/contract-address.js
|
|
1600
1600
|
function getCreateAddress(tx) {
|
|
1601
1601
|
const from = getAddress(tx.from);
|
|
1602
1602
|
const nonce = getBigInt(tx.nonce, "tx.nonce");
|
|
@@ -1611,7 +1611,7 @@ function getCreateAddress(tx) {
|
|
|
1611
1611
|
return getAddress(dataSlice(keccak256(encodeRlp([from, nonceHex])), 12));
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
1614
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
1614
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/address/checks.js
|
|
1615
1615
|
function isAddressable(value) {
|
|
1616
1616
|
return value && typeof value.getAddress === "function";
|
|
1617
1617
|
}
|
|
@@ -1638,7 +1638,7 @@ function resolveAddress(target, resolver) {
|
|
|
1638
1638
|
assertArgument(false, "unsupported addressable value", "target", target);
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
1641
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
1641
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/typed.js
|
|
1642
1642
|
var _gaurd = {};
|
|
1643
1643
|
function n(value, width) {
|
|
1644
1644
|
let signed = false;
|
|
@@ -2419,7 +2419,7 @@ var Typed = class _Typed {
|
|
|
2419
2419
|
}
|
|
2420
2420
|
};
|
|
2421
2421
|
|
|
2422
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2422
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/address.js
|
|
2423
2423
|
var AddressCoder = class extends Coder {
|
|
2424
2424
|
constructor(localName) {
|
|
2425
2425
|
super("address", "address", localName, false);
|
|
@@ -2441,7 +2441,7 @@ var AddressCoder = class extends Coder {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
};
|
|
2443
2443
|
|
|
2444
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2444
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/anonymous.js
|
|
2445
2445
|
var AnonymousCoder = class extends Coder {
|
|
2446
2446
|
coder;
|
|
2447
2447
|
constructor(coder) {
|
|
@@ -2459,7 +2459,7 @@ var AnonymousCoder = class extends Coder {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
};
|
|
2461
2461
|
|
|
2462
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2462
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/array.js
|
|
2463
2463
|
function pack(writer, coders, values) {
|
|
2464
2464
|
let arrayValues = [];
|
|
2465
2465
|
if (Array.isArray(values)) {
|
|
@@ -2589,7 +2589,7 @@ var ArrayCoder = class extends Coder {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
};
|
|
2591
2591
|
|
|
2592
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2592
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/boolean.js
|
|
2593
2593
|
var BooleanCoder = class extends Coder {
|
|
2594
2594
|
constructor(localName) {
|
|
2595
2595
|
super("bool", "bool", localName, false);
|
|
@@ -2606,7 +2606,7 @@ var BooleanCoder = class extends Coder {
|
|
|
2606
2606
|
}
|
|
2607
2607
|
};
|
|
2608
2608
|
|
|
2609
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2609
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/bytes.js
|
|
2610
2610
|
var DynamicBytesCoder = class extends Coder {
|
|
2611
2611
|
constructor(type, localName) {
|
|
2612
2612
|
super(type, type, localName, true);
|
|
@@ -2633,7 +2633,7 @@ var BytesCoder = class extends DynamicBytesCoder {
|
|
|
2633
2633
|
}
|
|
2634
2634
|
};
|
|
2635
2635
|
|
|
2636
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2636
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/fixed-bytes.js
|
|
2637
2637
|
var FixedBytesCoder = class extends Coder {
|
|
2638
2638
|
size;
|
|
2639
2639
|
constructor(size, localName) {
|
|
@@ -2656,7 +2656,7 @@ var FixedBytesCoder = class extends Coder {
|
|
|
2656
2656
|
}
|
|
2657
2657
|
};
|
|
2658
2658
|
|
|
2659
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2659
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/null.js
|
|
2660
2660
|
var Empty = new Uint8Array([]);
|
|
2661
2661
|
var NullCoder = class extends Coder {
|
|
2662
2662
|
constructor(localName) {
|
|
@@ -2677,7 +2677,7 @@ var NullCoder = class extends Coder {
|
|
|
2677
2677
|
}
|
|
2678
2678
|
};
|
|
2679
2679
|
|
|
2680
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2680
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/number.js
|
|
2681
2681
|
var BN_03 = BigInt(0);
|
|
2682
2682
|
var BN_12 = BigInt(1);
|
|
2683
2683
|
var BN_MAX_UINT256 = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
|
@@ -2715,7 +2715,7 @@ var NumberCoder = class extends Coder {
|
|
|
2715
2715
|
}
|
|
2716
2716
|
};
|
|
2717
2717
|
|
|
2718
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2718
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/string.js
|
|
2719
2719
|
var StringCoder = class extends DynamicBytesCoder {
|
|
2720
2720
|
constructor(localName) {
|
|
2721
2721
|
super("string", localName);
|
|
@@ -2731,7 +2731,7 @@ var StringCoder = class extends DynamicBytesCoder {
|
|
|
2731
2731
|
}
|
|
2732
2732
|
};
|
|
2733
2733
|
|
|
2734
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2734
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/coders/tuple.js
|
|
2735
2735
|
var TupleCoder = class extends Coder {
|
|
2736
2736
|
coders;
|
|
2737
2737
|
constructor(coders, localName) {
|
|
@@ -2786,7 +2786,7 @@ var TupleCoder = class extends Coder {
|
|
|
2786
2786
|
}
|
|
2787
2787
|
};
|
|
2788
2788
|
|
|
2789
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2789
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/transaction/accesslist.js
|
|
2790
2790
|
function accessSetify(addr, storageKeys) {
|
|
2791
2791
|
return {
|
|
2792
2792
|
address: getAddress(addr),
|
|
@@ -2819,12 +2819,12 @@ function accessListify(value) {
|
|
|
2819
2819
|
return result;
|
|
2820
2820
|
}
|
|
2821
2821
|
|
|
2822
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2822
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/hash/id.js
|
|
2823
2823
|
function id(value) {
|
|
2824
2824
|
return keccak256(toUtf8Bytes(value));
|
|
2825
2825
|
}
|
|
2826
2826
|
|
|
2827
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
2827
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/fragments.js
|
|
2828
2828
|
function setify(items) {
|
|
2829
2829
|
const result = /* @__PURE__ */ new Set();
|
|
2830
2830
|
items.forEach((k) => result.add(k));
|
|
@@ -4072,7 +4072,7 @@ var StructFragment = class _StructFragment extends NamedFragment {
|
|
|
4072
4072
|
}
|
|
4073
4073
|
};
|
|
4074
4074
|
|
|
4075
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
4075
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/abi-coder.js
|
|
4076
4076
|
var PanicReasons = /* @__PURE__ */ new Map();
|
|
4077
4077
|
PanicReasons.set(0, "GENERIC_PANIC");
|
|
4078
4078
|
PanicReasons.set(1, "ASSERT_FALSE");
|
|
@@ -4242,7 +4242,7 @@ var AbiCoder = class _AbiCoder {
|
|
|
4242
4242
|
}
|
|
4243
4243
|
};
|
|
4244
4244
|
|
|
4245
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
4245
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/abi/interface.js
|
|
4246
4246
|
var LogDescription = class {
|
|
4247
4247
|
/**
|
|
4248
4248
|
* The matching fragment for the ``topic0``.
|
|
@@ -5250,7 +5250,7 @@ var Interface = class _Interface {
|
|
|
5250
5250
|
}
|
|
5251
5251
|
};
|
|
5252
5252
|
|
|
5253
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
5253
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/providers/provider.js
|
|
5254
5254
|
var BN_04 = BigInt(0);
|
|
5255
5255
|
function toJson(value) {
|
|
5256
5256
|
if (value == null) {
|
|
@@ -6181,7 +6181,7 @@ function createRemovedLogFilter(log) {
|
|
|
6181
6181
|
} };
|
|
6182
6182
|
}
|
|
6183
6183
|
|
|
6184
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
6184
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/contract/wrappers.js
|
|
6185
6185
|
var EventLog = class extends Log {
|
|
6186
6186
|
/**
|
|
6187
6187
|
* The Contract Interface.
|
|
@@ -6336,7 +6336,7 @@ var ContractEventPayload = class extends ContractUnknownEventPayload {
|
|
|
6336
6336
|
}
|
|
6337
6337
|
};
|
|
6338
6338
|
|
|
6339
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
6339
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/contract/contract.js
|
|
6340
6340
|
var BN_05 = BigInt(0);
|
|
6341
6341
|
function canCall(value) {
|
|
6342
6342
|
return value && typeof value.call === "function";
|
|
@@ -7213,7 +7213,7 @@ function _ContractBase() {
|
|
|
7213
7213
|
var Contract = class extends _ContractBase() {
|
|
7214
7214
|
};
|
|
7215
7215
|
|
|
7216
|
-
// ../../node_modules/.pnpm/ethers@6.
|
|
7216
|
+
// ../../node_modules/.pnpm/ethers@6.14.4_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/contract/factory.js
|
|
7217
7217
|
var ContractFactory = class _ContractFactory {
|
|
7218
7218
|
/**
|
|
7219
7219
|
* The Contract Interface.
|
|
@@ -8738,7 +8738,7 @@ function throws(fn) {
|
|
|
8738
8738
|
}
|
|
8739
8739
|
}
|
|
8740
8740
|
|
|
8741
|
-
// ../../node_modules/.pnpm/binary-layout@1.
|
|
8741
|
+
// ../../node_modules/.pnpm/binary-layout@1.2.2/node_modules/binary-layout/dist/index.mjs
|
|
8742
8742
|
var binaryLiterals = ["int", "uint", "bytes", "array", "switch"];
|
|
8743
8743
|
var defaultEndianness = "big";
|
|
8744
8744
|
var numberMaxSize = 6;
|
|
@@ -17271,7 +17271,13 @@ async function getTransferData({
|
|
|
17271
17271
|
}),
|
|
17272
17272
|
moonChain: moonChainData,
|
|
17273
17273
|
source: sourceData,
|
|
17274
|
-
async transfer(
|
|
17274
|
+
async transfer({
|
|
17275
|
+
amount,
|
|
17276
|
+
isAutomatic: isAutomatic2,
|
|
17277
|
+
signers: { evmSigner, polkadotSigner },
|
|
17278
|
+
statusCallback,
|
|
17279
|
+
sendOnlyRemoteExecution
|
|
17280
|
+
}) {
|
|
17275
17281
|
const source = route.source.chain;
|
|
17276
17282
|
const bigintAmount = toBigInt3(amount, sourceData.balance.decimals);
|
|
17277
17283
|
const asset = AssetAmount3.fromChainAsset(
|