@pufferfinance/puffer-sdk 1.28.0 → 1.28.2
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/api/puffer-client-helpers.cjs +1 -1
- package/dist/api/puffer-client-helpers.cjs.map +1 -1
- package/dist/api/puffer-client-helpers.js +7 -7
- package/dist/api/puffer-client-helpers.js.map +1 -1
- package/dist/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.cjs.map +1 -1
- package/dist/api/puffer-client.js +119 -122
- package/dist/api/puffer-client.js.map +1 -1
- package/dist/ccip-78YM988s.js +150 -0
- package/dist/{ccip-C76-YhQK.js.map → ccip-78YM988s.js.map} +1 -1
- package/dist/ccip-LIGR3N1A.cjs +2 -0
- package/dist/{ccip-CEodLZ4s.cjs.map → ccip-LIGR3N1A.cjs.map} +1 -1
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.js +1 -1
- package/dist/constants-6kuRTsbU.cjs +9 -0
- package/dist/{constants-CxSgz27h.cjs.map → constants-6kuRTsbU.cjs.map} +1 -1
- package/dist/{constants-C9YZ6Ewc.js → constants-CuIEh_ZS.js} +605 -656
- package/dist/{constants-C9YZ6Ewc.js.map → constants-CuIEh_ZS.js.map} +1 -1
- package/dist/contracts/abis/mainnet/Accountant.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/Accountant.js.map +1 -1
- package/dist/contracts/abis/mainnet/AtomicQueue.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/AtomicQueue.js.map +1 -1
- package/dist/contracts/abis/mainnet/BoringVault.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/BoringVault.js.map +1 -1
- package/dist/contracts/abis/mainnet/CarrotStaker.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/CarrotStaker.js.map +1 -1
- package/dist/contracts/abis/mainnet/CarrotVesting.cjs +1 -1
- package/dist/contracts/abis/mainnet/CarrotVesting.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/CarrotVesting.d.ts +98 -82
- package/dist/contracts/abis/mainnet/CarrotVesting.js +64 -50
- package/dist/contracts/abis/mainnet/CarrotVesting.js.map +1 -1
- package/dist/contracts/abis/mainnet/ConcreteMultiStrategyVault.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/ConcreteMultiStrategyVault.js.map +1 -1
- package/dist/contracts/abis/mainnet/Distributor.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/Distributor.js.map +1 -1
- package/dist/contracts/abis/mainnet/ERC20Permit.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/ERC20Permit.js.map +1 -1
- package/dist/contracts/abis/mainnet/GaugeRegistry.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/GaugeRegistry.js.map +1 -1
- package/dist/contracts/abis/mainnet/GuardianModule.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/GuardianModule.js.map +1 -1
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/InstitutionalAccessManager.js.map +1 -1
- package/dist/contracts/abis/mainnet/InstitutionalVault.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/InstitutionalVault.js.map +1 -1
- package/dist/contracts/abis/mainnet/L1RewardManager.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/L1RewardManager.js.map +1 -1
- package/dist/contracts/abis/mainnet/L2RewardManager.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/L2RewardManager.js.map +1 -1
- package/dist/contracts/abis/mainnet/LagoonVault.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/LagoonVault.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufLocker.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufLocker.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufferDepositor.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufferDepositor.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufferL2Depositor.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufferL2Depositor.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufferOracleV2.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufferOracleV2.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufferProtocol.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufferProtocol.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufferVaultV5.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufferVaultV5.js.map +1 -1
- package/dist/contracts/abis/mainnet/PufferWithdrawalManager.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/PufferWithdrawalManager.js.map +1 -1
- package/dist/contracts/abis/mainnet/Teller.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/Teller.js.map +1 -1
- package/dist/contracts/abis/mainnet/ValidatorTicket.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/ValidatorTicket.js.map +1 -1
- package/dist/contracts/abis/mainnet/mtwCARROT.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/mtwCARROT.js.map +1 -1
- package/dist/contracts/abis/mainnet/vlPUFFER.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/vlPUFFER.js.map +1 -1
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.cjs.map +1 -1
- package/dist/contracts/addresses.js +4 -5
- package/dist/contracts/addresses.js.map +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.cjs.map +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.d.ts +96 -6599
- package/dist/contracts/handlers/carrot-staking-handler.js +13 -16
- package/dist/contracts/handlers/carrot-staking-handler.js.map +1 -1
- package/dist/contracts/handlers/carrot-vesting-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-vesting-handler.cjs.map +1 -1
- package/dist/contracts/handlers/carrot-vesting-handler.d.ts +98 -6600
- package/dist/contracts/handlers/carrot-vesting-handler.js +21 -23
- package/dist/contracts/handlers/carrot-vesting-handler.js.map +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.d.ts +96 -6599
- package/dist/contracts/handlers/concrete-vault-handler.js +15 -18
- package/dist/contracts/handlers/concrete-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/distributor-handler.cjs +1 -1
- package/dist/contracts/handlers/distributor-handler.cjs.map +1 -1
- package/dist/contracts/handlers/distributor-handler.d.ts +96 -6599
- package/dist/contracts/handlers/distributor-handler.js +15 -18
- package/dist/contracts/handlers/distributor-handler.js.map +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.d.ts +96 -6599
- package/dist/contracts/handlers/erc20-permit-handler.js +34 -38
- package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
- package/dist/contracts/handlers/gauge-registry-handler.cjs +1 -1
- package/dist/contracts/handlers/gauge-registry-handler.cjs.map +1 -1
- package/dist/contracts/handlers/gauge-registry-handler.d.ts +96 -6599
- package/dist/contracts/handlers/gauge-registry-handler.js +11 -14
- package/dist/contracts/handlers/gauge-registry-handler.js.map +1 -1
- package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
- package/dist/contracts/handlers/guardian-module-handler.cjs.map +1 -1
- package/dist/contracts/handlers/guardian-module-handler.d.ts +96 -6599
- package/dist/contracts/handlers/guardian-module-handler.js +11 -14
- package/dist/contracts/handlers/guardian-module-handler.js.map +1 -1
- package/dist/contracts/handlers/institutional-access-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/institutional-access-manager-handler.cjs.map +1 -1
- package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +96 -6599
- package/dist/contracts/handlers/institutional-access-manager-handler.js +45 -50
- package/dist/contracts/handlers/institutional-access-manager-handler.js.map +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.d.ts +96 -6599
- package/dist/contracts/handlers/institutional-vault-handler.js +16 -19
- package/dist/contracts/handlers/institutional-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs.map +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +96 -6599
- package/dist/contracts/handlers/l1-reward-manager-handler.js +14 -17
- package/dist/contracts/handlers/l1-reward-manager-handler.js.map +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs.map +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +96 -6599
- package/dist/contracts/handlers/l2-reward-manager-handler.js +13 -16
- package/dist/contracts/handlers/l2-reward-manager-handler.js.map +1 -1
- package/dist/contracts/handlers/lagoon-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/lagoon-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/lagoon-vault-handler.d.ts +96 -6599
- package/dist/contracts/handlers/lagoon-vault-handler.js +11 -14
- package/dist/contracts/handlers/lagoon-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.cjs.map +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.d.ts +96 -6599
- package/dist/contracts/handlers/mtw-carrot-handler.js +12 -15
- package/dist/contracts/handlers/mtw-carrot-handler.js.map +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +96 -6599
- package/dist/contracts/handlers/nucleus-accountant-handler.js +13 -16
- package/dist/contracts/handlers/nucleus-accountant-handler.js.map +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.d.ts +96 -6599
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +14 -17
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js.map +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +96 -6599
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js +18 -21
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.d.ts +96 -6599
- package/dist/contracts/handlers/nucleus-teller-handler.js +35 -38
- package/dist/contracts/handlers/nucleus-teller-handler.js.map +1 -1
- package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
- package/dist/contracts/handlers/puf-locker-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puf-locker-handler.d.ts +96 -6599
- package/dist/contracts/handlers/puf-locker-handler.js +51 -54
- package/dist/contracts/handlers/puf-locker-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.d.ts +96 -6599
- package/dist/contracts/handlers/puffer-depositor-handler.js +28 -31
- package/dist/contracts/handlers/puffer-depositor-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +96 -6599
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js +42 -45
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-oracle-v2-handler.d.ts +96 -6599
- package/dist/contracts/handlers/puffer-oracle-v2-handler.js +13 -16
- package/dist/contracts/handlers/puffer-oracle-v2-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-protocol-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-protocol-handler.d.ts +96 -6599
- package/dist/contracts/handlers/puffer-protocol-handler.js +12 -15
- package/dist/contracts/handlers/puffer-protocol-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.d.ts +96 -6599
- package/dist/contracts/handlers/puffer-vault-handler.js +12 -15
- package/dist/contracts/handlers/puffer-vault-handler.js.map +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs.map +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +96 -6599
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +15 -18
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js.map +1 -1
- package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
- package/dist/contracts/handlers/validator-ticket-handler.cjs.map +1 -1
- package/dist/contracts/handlers/validator-ticket-handler.d.ts +96 -6599
- package/dist/contracts/handlers/validator-ticket-handler.js +12 -15
- package/dist/contracts/handlers/validator-ticket-handler.js.map +1 -1
- package/dist/contracts/handlers/vl-puffer-handler.cjs +1 -1
- package/dist/contracts/handlers/vl-puffer-handler.cjs.map +1 -1
- package/dist/contracts/handlers/vl-puffer-handler.d.ts +96 -6599
- package/dist/contracts/handlers/vl-puffer-handler.js +19 -22
- package/dist/contracts/handlers/vl-puffer-handler.js.map +1 -1
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.cjs.map +1 -1
- package/dist/contracts/tokens.js +1 -1
- package/dist/contracts/tokens.js.map +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.cjs.map +1 -1
- package/dist/contracts/vaults-addresses.js +1 -1
- package/dist/contracts/vaults-addresses.js.map +1 -1
- package/dist/errors/base-error.cjs.map +1 -1
- package/dist/errors/base-error.js.map +1 -1
- package/dist/{getContract-DUA3M2pm.cjs → getContract-D4_SEfqa.cjs} +2 -2
- package/dist/{getContract-DUA3M2pm.cjs.map → getContract-D4_SEfqa.cjs.map} +1 -1
- package/dist/{getContract-DEPNMZxg.js → getContract-DQN7VDBo.js} +2 -2
- package/dist/{getContract-DEPNMZxg.js.map → getContract-DQN7VDBo.js.map} +1 -1
- package/dist/http-CajzXkt4.js +4005 -0
- package/dist/http-CajzXkt4.js.map +1 -0
- package/dist/http-qhIDc8Dn.cjs +5 -0
- package/dist/http-qhIDc8Dn.cjs.map +1 -0
- package/dist/{localBatchGatewayRequest-CKLnLqib.cjs → localBatchGatewayRequest-C7zYTS2c.cjs} +2 -2
- package/dist/{localBatchGatewayRequest-CKLnLqib.cjs.map → localBatchGatewayRequest-C7zYTS2c.cjs.map} +1 -1
- package/dist/{localBatchGatewayRequest-C0QtijkB.js → localBatchGatewayRequest-DtOvBmA9.js} +3 -3
- package/dist/{localBatchGatewayRequest-C0QtijkB.js.map → localBatchGatewayRequest-DtOvBmA9.js.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/secp256k1-CMP_u7qb.cjs +2 -0
- package/dist/secp256k1-CMP_u7qb.cjs.map +1 -0
- package/dist/secp256k1-DCMgMsfV.js +1297 -0
- package/dist/secp256k1-DCMgMsfV.js.map +1 -0
- package/dist/utils/time.cjs.map +1 -1
- package/dist/utils/time.js.map +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/writeContract-BnmmOPwy.cjs +36 -0
- package/dist/writeContract-BnmmOPwy.cjs.map +1 -0
- package/dist/{writeContract-DkC9wV5p.js → writeContract-DYAfDrRz.js} +1788 -1712
- package/dist/writeContract-DYAfDrRz.js.map +1 -0
- package/package.json +8 -8
- package/dist/ccip-C76-YhQK.js +0 -152
- package/dist/ccip-CEodLZ4s.cjs +0 -2
- package/dist/constants-CxSgz27h.cjs +0 -9
- package/dist/createWalletClient-Cct6ojqI.cjs +0 -5
- package/dist/createWalletClient-Cct6ojqI.cjs.map +0 -1
- package/dist/createWalletClient-DAuQCrLq.js +0 -3262
- package/dist/createWalletClient-DAuQCrLq.js.map +0 -1
- package/dist/secp256k1-ClOw2ksU.js +0 -1291
- package/dist/secp256k1-ClOw2ksU.js.map +0 -1
- package/dist/secp256k1-YUzyTLhP.cjs +0 -2
- package/dist/secp256k1-YUzyTLhP.cjs.map +0 -1
- package/dist/writeContract-BfAYISeL.cjs +0 -36
- package/dist/writeContract-BfAYISeL.cjs.map +0 -1
- package/dist/writeContract-DkC9wV5p.js.map +0 -1
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
function
|
|
1
|
+
function q(e, { strict: t = !0 } = {}) {
|
|
2
2
|
return !e || typeof e != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(e) : e.startsWith("0x");
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
return
|
|
4
|
+
function P(e) {
|
|
5
|
+
return q(e, { strict: !1 }) ? Math.ceil((e.length - 2) / 2) : e.length;
|
|
6
6
|
}
|
|
7
|
-
const
|
|
8
|
-
let
|
|
7
|
+
const Ae = "2.37.6";
|
|
8
|
+
let ie = {
|
|
9
9
|
getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: s }) => t ? `${e ?? "https://viem.sh"}${t}${s ? `#${s}` : ""}` : void 0,
|
|
10
|
-
version: `viem@${
|
|
10
|
+
version: `viem@${Ae}`
|
|
11
11
|
};
|
|
12
12
|
class u extends Error {
|
|
13
13
|
constructor(t, s = {}) {
|
|
14
|
-
|
|
15
|
-
const n = (() => {
|
|
16
|
-
var c;
|
|
17
|
-
return s.cause instanceof u ? s.cause.details : (c = s.cause) != null && c.message ? s.cause.message : s.details;
|
|
18
|
-
})(), r = s.cause instanceof u && s.cause.docsPath || s.docsPath, i = (a = R.getDocsUrl) == null ? void 0 : a.call(R, { ...s, docsPath: r }), o = [
|
|
14
|
+
const n = s.cause instanceof u ? s.cause.details : s.cause?.message ? s.cause.message : s.details, r = s.cause instanceof u && s.cause.docsPath || s.docsPath, i = ie.getDocsUrl?.({ ...s, docsPath: r }), o = [
|
|
19
15
|
t || "An error occurred.",
|
|
20
16
|
"",
|
|
21
17
|
...s.metaMessages ? [...s.metaMessages, ""] : [],
|
|
22
18
|
...i ? [`Docs: ${i}`] : [],
|
|
23
19
|
...n ? [`Details: ${n}`] : [],
|
|
24
|
-
...
|
|
20
|
+
...ie.version ? [`Version: ${ie.version}`] : []
|
|
25
21
|
].join(`
|
|
26
22
|
`);
|
|
27
23
|
super(o, s.cause ? { cause: s.cause } : void 0), Object.defineProperty(this, "details", {
|
|
@@ -54,50 +50,50 @@ class u extends Error {
|
|
|
54
50
|
configurable: !0,
|
|
55
51
|
writable: !0,
|
|
56
52
|
value: "BaseError"
|
|
57
|
-
}), this.details = n, this.docsPath = r, this.metaMessages = s.metaMessages, this.name = s.name ?? this.name, this.shortMessage = t, this.version =
|
|
53
|
+
}), this.details = n, this.docsPath = r, this.metaMessages = s.metaMessages, this.name = s.name ?? this.name, this.shortMessage = t, this.version = Ae;
|
|
58
54
|
}
|
|
59
55
|
walk(t) {
|
|
60
|
-
return
|
|
56
|
+
return Ue(this, t);
|
|
61
57
|
}
|
|
62
58
|
}
|
|
63
|
-
function
|
|
64
|
-
return t
|
|
59
|
+
function Ue(e, t) {
|
|
60
|
+
return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? Ue(e.cause, t) : t ? null : e;
|
|
65
61
|
}
|
|
66
|
-
class
|
|
62
|
+
class Fe extends u {
|
|
67
63
|
constructor({ offset: t, position: s, size: n }) {
|
|
68
64
|
super(`Slice ${s === "start" ? "starting" : "ending"} at offset "${t}" is out-of-bounds (size: ${n}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
69
65
|
}
|
|
70
66
|
}
|
|
71
|
-
class
|
|
67
|
+
class Ce extends u {
|
|
72
68
|
constructor({ size: t, targetSize: s, type: n }) {
|
|
73
69
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${s}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
74
70
|
}
|
|
75
71
|
}
|
|
76
|
-
class
|
|
72
|
+
class bn extends u {
|
|
77
73
|
constructor({ size: t, targetSize: s, type: n }) {
|
|
78
74
|
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${s} ${n} long, but is ${t} ${n} long.`, { name: "InvalidBytesLengthError" });
|
|
79
75
|
}
|
|
80
76
|
}
|
|
81
|
-
function
|
|
82
|
-
return typeof e == "string" ?
|
|
77
|
+
function O(e, { dir: t, size: s = 32 } = {}) {
|
|
78
|
+
return typeof e == "string" ? yt(e, { dir: t, size: s }) : wt(e, { dir: t, size: s });
|
|
83
79
|
}
|
|
84
|
-
function
|
|
80
|
+
function yt(e, { dir: t, size: s = 32 } = {}) {
|
|
85
81
|
if (s === null)
|
|
86
82
|
return e;
|
|
87
83
|
const n = e.replace("0x", "");
|
|
88
84
|
if (n.length > s * 2)
|
|
89
|
-
throw new
|
|
85
|
+
throw new Ce({
|
|
90
86
|
size: Math.ceil(n.length / 2),
|
|
91
87
|
targetSize: s,
|
|
92
88
|
type: "hex"
|
|
93
89
|
});
|
|
94
90
|
return `0x${n[t === "right" ? "padEnd" : "padStart"](s * 2, "0")}`;
|
|
95
91
|
}
|
|
96
|
-
function
|
|
92
|
+
function wt(e, { dir: t, size: s = 32 } = {}) {
|
|
97
93
|
if (s === null)
|
|
98
94
|
return e;
|
|
99
95
|
if (e.length > s)
|
|
100
|
-
throw new
|
|
96
|
+
throw new Ce({
|
|
101
97
|
size: e.length,
|
|
102
98
|
targetSize: s,
|
|
103
99
|
type: "bytes"
|
|
@@ -109,75 +105,75 @@ function Pt(e, { dir: t, size: s = 32 } = {}) {
|
|
|
109
105
|
}
|
|
110
106
|
return n;
|
|
111
107
|
}
|
|
112
|
-
class
|
|
108
|
+
class Et extends u {
|
|
113
109
|
constructor({ max: t, min: s, signed: n, size: r, value: i }) {
|
|
114
110
|
super(`Number "${i}" is not in safe ${r ? `${r * 8}-bit ${n ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${s} to ${t})` : `(above ${s})`}`, { name: "IntegerOutOfRangeError" });
|
|
115
111
|
}
|
|
116
112
|
}
|
|
117
|
-
class
|
|
113
|
+
class mn extends u {
|
|
118
114
|
constructor(t) {
|
|
119
115
|
super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
|
|
120
116
|
name: "InvalidBytesBooleanError"
|
|
121
117
|
});
|
|
122
118
|
}
|
|
123
119
|
}
|
|
124
|
-
class
|
|
120
|
+
class Bt extends u {
|
|
125
121
|
constructor(t) {
|
|
126
122
|
super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
127
123
|
}
|
|
128
124
|
}
|
|
129
|
-
class
|
|
125
|
+
class Pt extends u {
|
|
130
126
|
constructor({ givenSize: t, maxSize: s }) {
|
|
131
127
|
super(`Size cannot exceed ${s} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
|
|
132
128
|
}
|
|
133
129
|
}
|
|
134
|
-
function
|
|
130
|
+
function A(e, { dir: t = "left" } = {}) {
|
|
135
131
|
let s = typeof e == "string" ? e.replace("0x", "") : e, n = 0;
|
|
136
132
|
for (let r = 0; r < s.length - 1 && s[t === "left" ? r : s.length - r - 1].toString() === "0"; r++)
|
|
137
133
|
n++;
|
|
138
134
|
return s = t === "left" ? s.slice(n) : s.slice(0, s.length - n), typeof e == "string" ? (s.length === 1 && t === "right" && (s = `${s}0`), `0x${s.length % 2 === 1 ? `0${s}` : s}`) : s;
|
|
139
135
|
}
|
|
140
|
-
function
|
|
141
|
-
if (
|
|
142
|
-
throw new
|
|
143
|
-
givenSize:
|
|
136
|
+
function z(e, { size: t }) {
|
|
137
|
+
if (P(e) > t)
|
|
138
|
+
throw new Pt({
|
|
139
|
+
givenSize: P(e),
|
|
144
140
|
maxSize: t
|
|
145
141
|
});
|
|
146
142
|
}
|
|
147
|
-
function
|
|
143
|
+
function L(e, t = {}) {
|
|
148
144
|
const { signed: s } = t;
|
|
149
|
-
t.size &&
|
|
145
|
+
t.size && z(e, { size: t.size });
|
|
150
146
|
const n = BigInt(e);
|
|
151
147
|
if (!s)
|
|
152
148
|
return n;
|
|
153
149
|
const r = (e.length - 2) / 2, i = (1n << BigInt(r) * 8n - 1n) - 1n;
|
|
154
150
|
return n <= i ? n : n - BigInt(`0x${"f".padStart(r * 2, "f")}`) - 1n;
|
|
155
151
|
}
|
|
156
|
-
function
|
|
152
|
+
function xn(e, t = {}) {
|
|
157
153
|
let s = e;
|
|
158
|
-
if (t.size && (
|
|
154
|
+
if (t.size && (z(s, { size: t.size }), s = A(s)), A(s) === "0x00")
|
|
159
155
|
return !1;
|
|
160
|
-
if (
|
|
156
|
+
if (A(s) === "0x01")
|
|
161
157
|
return !0;
|
|
162
|
-
throw new
|
|
158
|
+
throw new Bt(s);
|
|
163
159
|
}
|
|
164
|
-
function
|
|
165
|
-
return Number(
|
|
160
|
+
function Q(e, t = {}) {
|
|
161
|
+
return Number(L(e, t));
|
|
166
162
|
}
|
|
167
|
-
const
|
|
168
|
-
function
|
|
169
|
-
return typeof e == "number" || typeof e == "bigint" ? f(e, t) : typeof e == "string" ?
|
|
163
|
+
const vt = /* @__PURE__ */ Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, "0"));
|
|
164
|
+
function H(e, t = {}) {
|
|
165
|
+
return typeof e == "number" || typeof e == "bigint" ? f(e, t) : typeof e == "string" ? $t(e, t) : typeof e == "boolean" ? It(e, t) : T(e, t);
|
|
170
166
|
}
|
|
171
|
-
function
|
|
167
|
+
function It(e, t = {}) {
|
|
172
168
|
const s = `0x${Number(e)}`;
|
|
173
|
-
return typeof t.size == "number" ? (
|
|
169
|
+
return typeof t.size == "number" ? (z(s, { size: t.size }), O(s, { size: t.size })) : s;
|
|
174
170
|
}
|
|
175
|
-
function
|
|
171
|
+
function T(e, t = {}) {
|
|
176
172
|
let s = "";
|
|
177
173
|
for (let r = 0; r < e.length; r++)
|
|
178
|
-
s +=
|
|
174
|
+
s += vt[e[r]];
|
|
179
175
|
const n = `0x${s}`;
|
|
180
|
-
return typeof t.size == "number" ? (
|
|
176
|
+
return typeof t.size == "number" ? (z(n, { size: t.size }), O(n, { dir: "right", size: t.size })) : n;
|
|
181
177
|
}
|
|
182
178
|
function f(e, t = {}) {
|
|
183
179
|
const { signed: s, size: n } = t, r = BigInt(e);
|
|
@@ -186,7 +182,7 @@ function f(e, t = {}) {
|
|
|
186
182
|
const o = typeof i == "bigint" && s ? -i - 1n : 0;
|
|
187
183
|
if (i && r > i || r < o) {
|
|
188
184
|
const c = typeof e == "bigint" ? "n" : "";
|
|
189
|
-
throw new
|
|
185
|
+
throw new Et({
|
|
190
186
|
max: i ? `${i}${c}` : void 0,
|
|
191
187
|
min: `${o}${c}`,
|
|
192
188
|
signed: s,
|
|
@@ -195,20 +191,20 @@ function f(e, t = {}) {
|
|
|
195
191
|
});
|
|
196
192
|
}
|
|
197
193
|
const a = `0x${(s && r < 0 ? (1n << BigInt(n * 8)) + BigInt(r) : r).toString(16)}`;
|
|
198
|
-
return n ?
|
|
194
|
+
return n ? O(a, { size: n }) : a;
|
|
199
195
|
}
|
|
200
|
-
const
|
|
201
|
-
function
|
|
202
|
-
const s =
|
|
203
|
-
return
|
|
196
|
+
const Tt = /* @__PURE__ */ new TextEncoder();
|
|
197
|
+
function $t(e, t = {}) {
|
|
198
|
+
const s = Tt.encode(e);
|
|
199
|
+
return T(s, t);
|
|
204
200
|
}
|
|
205
|
-
const
|
|
206
|
-
function
|
|
207
|
-
return typeof e == "number" || typeof e == "bigint" ?
|
|
201
|
+
const At = /* @__PURE__ */ new TextEncoder();
|
|
202
|
+
function ze(e, t = {}) {
|
|
203
|
+
return typeof e == "number" || typeof e == "bigint" ? Ft(e, t) : typeof e == "boolean" ? Ut(e, t) : q(e) ? F(e, t) : ke(e, t);
|
|
208
204
|
}
|
|
209
|
-
function
|
|
205
|
+
function Ut(e, t = {}) {
|
|
210
206
|
const s = new Uint8Array(1);
|
|
211
|
-
return s[0] = Number(e), typeof t.size == "number" ? (
|
|
207
|
+
return s[0] = Number(e), typeof t.size == "number" ? (z(s, { size: t.size }), O(s, { size: t.size })) : s;
|
|
212
208
|
}
|
|
213
209
|
const y = {
|
|
214
210
|
zero: 48,
|
|
@@ -218,7 +214,7 @@ const y = {
|
|
|
218
214
|
a: 97,
|
|
219
215
|
f: 102
|
|
220
216
|
};
|
|
221
|
-
function
|
|
217
|
+
function we(e) {
|
|
222
218
|
if (e >= y.zero && e <= y.nine)
|
|
223
219
|
return e - y.zero;
|
|
224
220
|
if (e >= y.A && e <= y.F)
|
|
@@ -226,145 +222,109 @@ function Ee(e) {
|
|
|
226
222
|
if (e >= y.a && e <= y.f)
|
|
227
223
|
return e - (y.a - 10);
|
|
228
224
|
}
|
|
229
|
-
function
|
|
225
|
+
function F(e, t = {}) {
|
|
230
226
|
let s = e;
|
|
231
|
-
t.size && (
|
|
227
|
+
t.size && (z(s, { size: t.size }), s = O(s, { dir: "right", size: t.size }));
|
|
232
228
|
let n = s.slice(2);
|
|
233
229
|
n.length % 2 && (n = `0${n}`);
|
|
234
230
|
const r = n.length / 2, i = new Uint8Array(r);
|
|
235
231
|
for (let o = 0, a = 0; o < r; o++) {
|
|
236
|
-
const c =
|
|
232
|
+
const c = we(n.charCodeAt(a++)), l = we(n.charCodeAt(a++));
|
|
237
233
|
if (c === void 0 || l === void 0)
|
|
238
234
|
throw new u(`Invalid byte sequence ("${n[a - 2]}${n[a - 1]}" in "${n}").`);
|
|
239
235
|
i[o] = c * 16 + l;
|
|
240
236
|
}
|
|
241
237
|
return i;
|
|
242
238
|
}
|
|
243
|
-
function
|
|
239
|
+
function Ft(e, t) {
|
|
244
240
|
const s = f(e, t);
|
|
245
|
-
return
|
|
241
|
+
return F(s);
|
|
246
242
|
}
|
|
247
|
-
function
|
|
248
|
-
const s =
|
|
249
|
-
return typeof t.size == "number" ? (
|
|
243
|
+
function ke(e, t = {}) {
|
|
244
|
+
const s = At.encode(e);
|
|
245
|
+
return typeof t.size == "number" ? (z(s, { size: t.size }), O(s, { dir: "right", size: t.size })) : s;
|
|
250
246
|
}
|
|
251
|
-
const
|
|
252
|
-
function
|
|
253
|
-
return t ? { h: Number(e &
|
|
247
|
+
const J = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ee = /* @__PURE__ */ BigInt(32);
|
|
248
|
+
function Ct(e, t = !1) {
|
|
249
|
+
return t ? { h: Number(e & J), l: Number(e >> Ee & J) } : { h: Number(e >> Ee & J) | 0, l: Number(e & J) | 0 };
|
|
254
250
|
}
|
|
255
|
-
function
|
|
251
|
+
function zt(e, t = !1) {
|
|
256
252
|
const s = e.length;
|
|
257
253
|
let n = new Uint32Array(s), r = new Uint32Array(s);
|
|
258
254
|
for (let i = 0; i < s; i++) {
|
|
259
|
-
const { h: o, l: a } =
|
|
255
|
+
const { h: o, l: a } = Ct(e[i], t);
|
|
260
256
|
[n[i], r[i]] = [o, a];
|
|
261
257
|
}
|
|
262
258
|
return [n, r];
|
|
263
259
|
}
|
|
264
|
-
const
|
|
260
|
+
const kt = (e, t, s) => e << s | t >>> 32 - s, St = (e, t, s) => t << s | e >>> 32 - s, Lt = (e, t, s) => t << s - 32 | e >>> 64 - s, Ht = (e, t, s) => e << s - 32 | t >>> 64 - s, S = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
|
|
265
261
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
266
|
-
function
|
|
262
|
+
function Gt(e) {
|
|
267
263
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
268
264
|
}
|
|
269
|
-
function
|
|
265
|
+
function ee(e) {
|
|
270
266
|
if (!Number.isSafeInteger(e) || e < 0)
|
|
271
267
|
throw new Error("positive integer expected, got " + e);
|
|
272
268
|
}
|
|
273
|
-
function
|
|
274
|
-
if (!
|
|
269
|
+
function G(e, ...t) {
|
|
270
|
+
if (!Gt(e))
|
|
275
271
|
throw new Error("Uint8Array expected");
|
|
276
272
|
if (t.length > 0 && !t.includes(e.length))
|
|
277
273
|
throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
|
|
278
274
|
}
|
|
279
|
-
function
|
|
275
|
+
function gn(e) {
|
|
280
276
|
if (typeof e != "function" || typeof e.create != "function")
|
|
281
277
|
throw new Error("Hash should be wrapped by utils.createHasher");
|
|
282
|
-
|
|
278
|
+
ee(e.outputLen), ee(e.blockLen);
|
|
283
279
|
}
|
|
284
|
-
function
|
|
280
|
+
function te(e, t = !0) {
|
|
285
281
|
if (e.destroyed)
|
|
286
282
|
throw new Error("Hash instance has been destroyed");
|
|
287
283
|
if (t && e.finished)
|
|
288
284
|
throw new Error("Hash#digest() has already been called");
|
|
289
285
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
286
|
+
function Se(e, t) {
|
|
287
|
+
G(e);
|
|
292
288
|
const s = t.outputLen;
|
|
293
289
|
if (e.length < s)
|
|
294
290
|
throw new Error("digestInto() expects output buffer of length at least " + s);
|
|
295
291
|
}
|
|
296
|
-
function
|
|
292
|
+
function Ot(e) {
|
|
297
293
|
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
298
294
|
}
|
|
299
|
-
function
|
|
295
|
+
function X(...e) {
|
|
300
296
|
for (let t = 0; t < e.length; t++)
|
|
301
297
|
e[t].fill(0);
|
|
302
298
|
}
|
|
303
|
-
function
|
|
299
|
+
function oe(e) {
|
|
304
300
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
305
301
|
}
|
|
306
302
|
function g(e, t) {
|
|
307
303
|
return e << 32 - t | e >>> t;
|
|
308
304
|
}
|
|
309
|
-
const
|
|
310
|
-
function
|
|
305
|
+
const Nt = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
306
|
+
function Mt(e) {
|
|
311
307
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
312
308
|
}
|
|
313
|
-
function
|
|
309
|
+
function _t(e) {
|
|
314
310
|
for (let t = 0; t < e.length; t++)
|
|
315
|
-
e[t] =
|
|
311
|
+
e[t] = Mt(e[t]);
|
|
316
312
|
return e;
|
|
317
313
|
}
|
|
318
|
-
const
|
|
319
|
-
function
|
|
320
|
-
if (k(e), Ge)
|
|
321
|
-
return e.toHex();
|
|
322
|
-
let t = "";
|
|
323
|
-
for (let s = 0; s < e.length; s++)
|
|
324
|
-
t += jt[e[s]];
|
|
325
|
-
return t;
|
|
326
|
-
}
|
|
327
|
-
const w = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
328
|
-
function ve(e) {
|
|
329
|
-
if (e >= w._0 && e <= w._9)
|
|
330
|
-
return e - w._0;
|
|
331
|
-
if (e >= w.A && e <= w.F)
|
|
332
|
-
return e - (w.A - 10);
|
|
333
|
-
if (e >= w.a && e <= w.f)
|
|
334
|
-
return e - (w.a - 10);
|
|
335
|
-
}
|
|
336
|
-
function vn(e) {
|
|
337
|
-
if (typeof e != "string")
|
|
338
|
-
throw new Error("hex string expected, got " + typeof e);
|
|
339
|
-
if (Ge)
|
|
340
|
-
return Uint8Array.fromHex(e);
|
|
341
|
-
const t = e.length, s = t / 2;
|
|
342
|
-
if (t % 2)
|
|
343
|
-
throw new Error("hex string expected, got unpadded hex of length " + t);
|
|
344
|
-
const n = new Uint8Array(s);
|
|
345
|
-
for (let r = 0, i = 0; r < s; r++, i += 2) {
|
|
346
|
-
const o = ve(e.charCodeAt(i)), a = ve(e.charCodeAt(i + 1));
|
|
347
|
-
if (o === void 0 || a === void 0) {
|
|
348
|
-
const c = e[i] + e[i + 1];
|
|
349
|
-
throw new Error('hex string expected, got non-hex character "' + c + '" at index ' + i);
|
|
350
|
-
}
|
|
351
|
-
n[r] = o * 16 + a;
|
|
352
|
-
}
|
|
353
|
-
return n;
|
|
354
|
-
}
|
|
355
|
-
function Kt(e) {
|
|
314
|
+
const Be = Nt ? (e) => e : _t;
|
|
315
|
+
function Vt(e) {
|
|
356
316
|
if (typeof e != "string")
|
|
357
317
|
throw new Error("string expected");
|
|
358
318
|
return new Uint8Array(new TextEncoder().encode(e));
|
|
359
319
|
}
|
|
360
|
-
function
|
|
361
|
-
return typeof e == "string" && (e =
|
|
320
|
+
function le(e) {
|
|
321
|
+
return typeof e == "string" && (e = Vt(e)), G(e), e;
|
|
362
322
|
}
|
|
363
|
-
function
|
|
323
|
+
function yn(...e) {
|
|
364
324
|
let t = 0;
|
|
365
325
|
for (let n = 0; n < e.length; n++) {
|
|
366
326
|
const r = e[n];
|
|
367
|
-
|
|
327
|
+
G(r), t += r.length;
|
|
368
328
|
}
|
|
369
329
|
const s = new Uint8Array(t);
|
|
370
330
|
for (let n = 0, r = 0; n < e.length; n++) {
|
|
@@ -373,41 +333,41 @@ function In(...e) {
|
|
|
373
333
|
}
|
|
374
334
|
return s;
|
|
375
335
|
}
|
|
376
|
-
class
|
|
336
|
+
class Le {
|
|
377
337
|
}
|
|
378
|
-
function
|
|
379
|
-
const t = (n) => e().update(
|
|
338
|
+
function He(e) {
|
|
339
|
+
const t = (n) => e().update(le(n)).digest(), s = e();
|
|
380
340
|
return t.outputLen = s.outputLen, t.blockLen = s.blockLen, t.create = () => e(), t;
|
|
381
341
|
}
|
|
382
|
-
function
|
|
383
|
-
if (
|
|
384
|
-
return
|
|
385
|
-
if (
|
|
386
|
-
return Uint8Array.from(
|
|
342
|
+
function wn(e = 32) {
|
|
343
|
+
if (S && typeof S.getRandomValues == "function")
|
|
344
|
+
return S.getRandomValues(new Uint8Array(e));
|
|
345
|
+
if (S && typeof S.randomBytes == "function")
|
|
346
|
+
return Uint8Array.from(S.randomBytes(e));
|
|
387
347
|
throw new Error("crypto.getRandomValues must be defined");
|
|
388
348
|
}
|
|
389
|
-
const
|
|
390
|
-
for (let e = 0, t =
|
|
391
|
-
[s, n] = [n, (2 * s + 3 * n) % 5],
|
|
392
|
-
let r =
|
|
349
|
+
const Dt = BigInt(0), D = BigInt(1), jt = BigInt(2), Rt = BigInt(7), Kt = BigInt(256), Wt = BigInt(113), Ge = [], Oe = [], Ne = [];
|
|
350
|
+
for (let e = 0, t = D, s = 1, n = 0; e < 24; e++) {
|
|
351
|
+
[s, n] = [n, (2 * s + 3 * n) % 5], Ge.push(2 * (5 * n + s)), Oe.push((e + 1) * (e + 2) / 2 % 64);
|
|
352
|
+
let r = Dt;
|
|
393
353
|
for (let i = 0; i < 7; i++)
|
|
394
|
-
t = (t <<
|
|
395
|
-
|
|
354
|
+
t = (t << D ^ (t >> Rt) * Wt) % Kt, t & jt && (r ^= D << (D << /* @__PURE__ */ BigInt(i)) - D);
|
|
355
|
+
Ne.push(r);
|
|
396
356
|
}
|
|
397
|
-
const
|
|
398
|
-
function
|
|
357
|
+
const Me = zt(Ne, !0), Xt = Me[0], qt = Me[1], Pe = (e, t, s) => s > 32 ? Lt(e, t, s) : kt(e, t, s), ve = (e, t, s) => s > 32 ? Ht(e, t, s) : St(e, t, s);
|
|
358
|
+
function Zt(e, t = 24) {
|
|
399
359
|
const s = new Uint32Array(10);
|
|
400
360
|
for (let n = 24 - t; n < 24; n++) {
|
|
401
361
|
for (let o = 0; o < 10; o++)
|
|
402
362
|
s[o] = e[o] ^ e[o + 10] ^ e[o + 20] ^ e[o + 30] ^ e[o + 40];
|
|
403
363
|
for (let o = 0; o < 10; o += 2) {
|
|
404
|
-
const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d =
|
|
364
|
+
const a = (o + 8) % 10, c = (o + 2) % 10, l = s[c], h = s[c + 1], d = Pe(l, h, 1) ^ s[a], b = ve(l, h, 1) ^ s[a + 1];
|
|
405
365
|
for (let p = 0; p < 50; p += 10)
|
|
406
366
|
e[o + p] ^= d, e[o + p + 1] ^= b;
|
|
407
367
|
}
|
|
408
368
|
let r = e[2], i = e[3];
|
|
409
369
|
for (let o = 0; o < 24; o++) {
|
|
410
|
-
const a =
|
|
370
|
+
const a = Oe[o], c = Pe(r, i, a), l = ve(r, i, a), h = Ge[o];
|
|
411
371
|
r = e[h], i = e[h + 1], e[h] = c, e[h + 1] = l;
|
|
412
372
|
}
|
|
413
373
|
for (let o = 0; o < 50; o += 10) {
|
|
@@ -416,25 +376,25 @@ function es(e, t = 24) {
|
|
|
416
376
|
for (let a = 0; a < 10; a++)
|
|
417
377
|
e[o + a] ^= ~s[(a + 2) % 10] & s[(a + 4) % 10];
|
|
418
378
|
}
|
|
419
|
-
e[0] ^=
|
|
379
|
+
e[0] ^= Xt[n], e[1] ^= qt[n];
|
|
420
380
|
}
|
|
421
|
-
|
|
381
|
+
X(s);
|
|
422
382
|
}
|
|
423
|
-
class
|
|
383
|
+
class de extends Le {
|
|
424
384
|
// NOTE: we accept arguments in bytes instead of bits here.
|
|
425
385
|
constructor(t, s, n, r = !1, i = 24) {
|
|
426
|
-
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = r, this.rounds = i,
|
|
386
|
+
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = r, this.rounds = i, ee(n), !(0 < t && t < 200))
|
|
427
387
|
throw new Error("only keccak-f1600 function is supported");
|
|
428
|
-
this.state = new Uint8Array(200), this.state32 =
|
|
388
|
+
this.state = new Uint8Array(200), this.state32 = Ot(this.state);
|
|
429
389
|
}
|
|
430
390
|
clone() {
|
|
431
391
|
return this._cloneInto();
|
|
432
392
|
}
|
|
433
393
|
keccak() {
|
|
434
|
-
|
|
394
|
+
Be(this.state32), Zt(this.state32, this.rounds), Be(this.state32), this.posOut = 0, this.pos = 0;
|
|
435
395
|
}
|
|
436
396
|
update(t) {
|
|
437
|
-
|
|
397
|
+
te(this), t = le(t), G(t);
|
|
438
398
|
const { blockLen: s, state: n } = this, r = t.length;
|
|
439
399
|
for (let i = 0; i < r; ) {
|
|
440
400
|
const o = Math.min(s - this.pos, r - i);
|
|
@@ -452,7 +412,7 @@ class fe extends Oe {
|
|
|
452
412
|
t[n] ^= s, (s & 128) !== 0 && n === r - 1 && this.keccak(), t[r - 1] ^= 128, this.keccak();
|
|
453
413
|
}
|
|
454
414
|
writeInto(t) {
|
|
455
|
-
|
|
415
|
+
te(this, !1), G(t), this.finish();
|
|
456
416
|
const s = this.state, { blockLen: n } = this;
|
|
457
417
|
for (let r = 0, i = t.length; r < i; ) {
|
|
458
418
|
this.posOut >= n && this.keccak();
|
|
@@ -467,10 +427,10 @@ class fe extends Oe {
|
|
|
467
427
|
return this.writeInto(t);
|
|
468
428
|
}
|
|
469
429
|
xof(t) {
|
|
470
|
-
return
|
|
430
|
+
return ee(t), this.xofInto(new Uint8Array(t));
|
|
471
431
|
}
|
|
472
432
|
digestInto(t) {
|
|
473
|
-
if (
|
|
433
|
+
if (Se(t, this), this.finished)
|
|
474
434
|
throw new Error("digest() was already called");
|
|
475
435
|
return this.writeInto(t), this.destroy(), t;
|
|
476
436
|
}
|
|
@@ -478,19 +438,19 @@ class fe extends Oe {
|
|
|
478
438
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
479
439
|
}
|
|
480
440
|
destroy() {
|
|
481
|
-
this.destroyed = !0,
|
|
441
|
+
this.destroyed = !0, X(this.state);
|
|
482
442
|
}
|
|
483
443
|
_cloneInto(t) {
|
|
484
444
|
const { blockLen: s, suffix: n, outputLen: r, rounds: i, enableXOF: o } = this;
|
|
485
|
-
return t || (t = new
|
|
445
|
+
return t || (t = new de(s, n, r, o, i)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = i, t.suffix = n, t.outputLen = r, t.enableXOF = o, t.destroyed = this.destroyed, t;
|
|
486
446
|
}
|
|
487
447
|
}
|
|
488
|
-
const
|
|
489
|
-
function
|
|
490
|
-
const s = t || "hex", n =
|
|
491
|
-
return s === "bytes" ? n :
|
|
448
|
+
const Yt = (e, t, s) => He(() => new de(t, e, s)), Jt = Yt(1, 136, 256 / 8);
|
|
449
|
+
function Qt(e, t) {
|
|
450
|
+
const s = t || "hex", n = Jt(q(e, { strict: !1 }) ? ze(e) : e);
|
|
451
|
+
return s === "bytes" ? n : H(n);
|
|
492
452
|
}
|
|
493
|
-
class
|
|
453
|
+
class v extends u {
|
|
494
454
|
constructor({ address: t }) {
|
|
495
455
|
super(`Address "${t}" is invalid.`, {
|
|
496
456
|
metaMessages: [
|
|
@@ -501,7 +461,7 @@ class T extends u {
|
|
|
501
461
|
});
|
|
502
462
|
}
|
|
503
463
|
}
|
|
504
|
-
class
|
|
464
|
+
class _e extends Map {
|
|
505
465
|
constructor(t) {
|
|
506
466
|
super(), Object.defineProperty(this, "maxSize", {
|
|
507
467
|
enumerable: !0,
|
|
@@ -522,33 +482,33 @@ class Re extends Map {
|
|
|
522
482
|
return this;
|
|
523
483
|
}
|
|
524
484
|
}
|
|
525
|
-
const
|
|
526
|
-
function
|
|
527
|
-
if (
|
|
528
|
-
return
|
|
529
|
-
const s = e.substring(2).toLowerCase(), n =
|
|
485
|
+
const ae = /* @__PURE__ */ new _e(8192);
|
|
486
|
+
function Ve(e, t) {
|
|
487
|
+
if (ae.has(`${e}.${t}`))
|
|
488
|
+
return ae.get(`${e}.${t}`);
|
|
489
|
+
const s = e.substring(2).toLowerCase(), n = Qt(ke(s), "bytes"), r = s.split("");
|
|
530
490
|
for (let o = 0; o < 40; o += 2)
|
|
531
491
|
n[o >> 1] >> 4 >= 8 && r[o] && (r[o] = r[o].toUpperCase()), (n[o >> 1] & 15) >= 8 && r[o + 1] && (r[o + 1] = r[o + 1].toUpperCase());
|
|
532
492
|
const i = `0x${r.join("")}`;
|
|
533
|
-
return
|
|
493
|
+
return ae.set(`${e}.${t}`, i), i;
|
|
534
494
|
}
|
|
535
|
-
function
|
|
536
|
-
if (!
|
|
537
|
-
throw new
|
|
538
|
-
return
|
|
495
|
+
function En(e, t) {
|
|
496
|
+
if (!I(e, { strict: !1 }))
|
|
497
|
+
throw new v({ address: e });
|
|
498
|
+
return Ve(e, t);
|
|
539
499
|
}
|
|
540
|
-
const
|
|
541
|
-
function
|
|
500
|
+
const es = /^0x[a-fA-F0-9]{40}$/, ce = /* @__PURE__ */ new _e(8192);
|
|
501
|
+
function I(e, t) {
|
|
542
502
|
const { strict: s = !0 } = t ?? {}, n = `${e}.${s}`;
|
|
543
|
-
if (
|
|
544
|
-
return
|
|
545
|
-
const r =
|
|
546
|
-
return
|
|
503
|
+
if (ce.has(n))
|
|
504
|
+
return ce.get(n);
|
|
505
|
+
const r = es.test(e) ? e.toLowerCase() === e ? !0 : s ? Ve(e) === e : !0 : !1;
|
|
506
|
+
return ce.set(n, r), r;
|
|
547
507
|
}
|
|
548
|
-
function
|
|
549
|
-
return typeof e[0] == "string" ?
|
|
508
|
+
function Bn(e) {
|
|
509
|
+
return typeof e[0] == "string" ? N(e) : ts(e);
|
|
550
510
|
}
|
|
551
|
-
function
|
|
511
|
+
function ts(e) {
|
|
552
512
|
let t = 0;
|
|
553
513
|
for (const r of e)
|
|
554
514
|
t += r.length;
|
|
@@ -558,60 +518,60 @@ function is(e) {
|
|
|
558
518
|
s.set(r, n), n += r.length;
|
|
559
519
|
return s;
|
|
560
520
|
}
|
|
561
|
-
function
|
|
521
|
+
function N(e) {
|
|
562
522
|
return `0x${e.reduce((t, s) => t + s.replace("0x", ""), "")}`;
|
|
563
523
|
}
|
|
564
|
-
function
|
|
565
|
-
return
|
|
524
|
+
function ss(e, t, s, { strict: n } = {}) {
|
|
525
|
+
return q(e, { strict: !1 }) ? rs(e, t, s, {
|
|
566
526
|
strict: n
|
|
567
|
-
}) :
|
|
527
|
+
}) : ns(e, t, s, {
|
|
568
528
|
strict: n
|
|
569
529
|
});
|
|
570
530
|
}
|
|
571
|
-
function
|
|
572
|
-
if (typeof t == "number" && t > 0 && t >
|
|
573
|
-
throw new
|
|
531
|
+
function De(e, t) {
|
|
532
|
+
if (typeof t == "number" && t > 0 && t > P(e) - 1)
|
|
533
|
+
throw new Fe({
|
|
574
534
|
offset: t,
|
|
575
535
|
position: "start",
|
|
576
|
-
size:
|
|
536
|
+
size: P(e)
|
|
577
537
|
});
|
|
578
538
|
}
|
|
579
|
-
function
|
|
580
|
-
if (typeof t == "number" && typeof s == "number" &&
|
|
581
|
-
throw new
|
|
539
|
+
function je(e, t, s) {
|
|
540
|
+
if (typeof t == "number" && typeof s == "number" && P(e) !== s - t)
|
|
541
|
+
throw new Fe({
|
|
582
542
|
offset: s,
|
|
583
543
|
position: "end",
|
|
584
|
-
size:
|
|
544
|
+
size: P(e)
|
|
585
545
|
});
|
|
586
546
|
}
|
|
587
|
-
function
|
|
588
|
-
|
|
547
|
+
function ns(e, t, s, { strict: n } = {}) {
|
|
548
|
+
De(e, t);
|
|
589
549
|
const r = e.slice(t, s);
|
|
590
|
-
return n &&
|
|
550
|
+
return n && je(r, t, s), r;
|
|
591
551
|
}
|
|
592
|
-
function
|
|
593
|
-
|
|
552
|
+
function rs(e, t, s, { strict: n } = {}) {
|
|
553
|
+
De(e, t);
|
|
594
554
|
const r = `0x${e.replace("0x", "").slice((t ?? 0) * 2, (s ?? e.length) * 2)}`;
|
|
595
|
-
return n &&
|
|
555
|
+
return n && je(r, t, s), r;
|
|
596
556
|
}
|
|
597
|
-
class
|
|
557
|
+
class Ie extends u {
|
|
598
558
|
constructor({ offset: t }) {
|
|
599
559
|
super(`Offset \`${t}\` cannot be negative.`, {
|
|
600
560
|
name: "NegativeOffsetError"
|
|
601
561
|
});
|
|
602
562
|
}
|
|
603
563
|
}
|
|
604
|
-
class
|
|
564
|
+
class is extends u {
|
|
605
565
|
constructor({ length: t, position: s }) {
|
|
606
566
|
super(`Position \`${s}\` is out of bounds (\`0 < position < ${t}\`).`, { name: "PositionOutOfBoundsError" });
|
|
607
567
|
}
|
|
608
568
|
}
|
|
609
|
-
class
|
|
569
|
+
class os extends u {
|
|
610
570
|
constructor({ count: t, limit: s }) {
|
|
611
571
|
super(`Recursive read limit of \`${s}\` exceeded (recursive read count: \`${t}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
612
572
|
}
|
|
613
573
|
}
|
|
614
|
-
const
|
|
574
|
+
const as = {
|
|
615
575
|
bytes: new Uint8Array(),
|
|
616
576
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
617
577
|
position: 0,
|
|
@@ -620,21 +580,21 @@ const ds = {
|
|
|
620
580
|
recursiveReadLimit: Number.POSITIVE_INFINITY,
|
|
621
581
|
assertReadLimit() {
|
|
622
582
|
if (this.recursiveReadCount >= this.recursiveReadLimit)
|
|
623
|
-
throw new
|
|
583
|
+
throw new os({
|
|
624
584
|
count: this.recursiveReadCount + 1,
|
|
625
585
|
limit: this.recursiveReadLimit
|
|
626
586
|
});
|
|
627
587
|
},
|
|
628
588
|
assertPosition(e) {
|
|
629
589
|
if (e < 0 || e > this.bytes.length - 1)
|
|
630
|
-
throw new
|
|
590
|
+
throw new is({
|
|
631
591
|
length: this.bytes.length,
|
|
632
592
|
position: e
|
|
633
593
|
});
|
|
634
594
|
},
|
|
635
595
|
decrementPosition(e) {
|
|
636
596
|
if (e < 0)
|
|
637
|
-
throw new
|
|
597
|
+
throw new Ie({ offset: e });
|
|
638
598
|
const t = this.position - e;
|
|
639
599
|
this.assertPosition(t), this.position = t;
|
|
640
600
|
},
|
|
@@ -643,7 +603,7 @@ const ds = {
|
|
|
643
603
|
},
|
|
644
604
|
incrementPosition(e) {
|
|
645
605
|
if (e < 0)
|
|
646
|
-
throw new
|
|
606
|
+
throw new Ie({ offset: e });
|
|
647
607
|
const t = this.position + e;
|
|
648
608
|
this.assertPosition(t), this.position = t;
|
|
649
609
|
},
|
|
@@ -733,18 +693,18 @@ const ds = {
|
|
|
733
693
|
this.positionReadCount.set(this.position, e + 1), e > 0 && this.recursiveReadCount++;
|
|
734
694
|
}
|
|
735
695
|
};
|
|
736
|
-
function
|
|
737
|
-
const s = Object.create(
|
|
696
|
+
function Re(e, { recursiveReadLimit: t = 8192 } = {}) {
|
|
697
|
+
const s = Object.create(as);
|
|
738
698
|
return s.bytes = e, s.dataView = new DataView(e.buffer, e.byteOffset, e.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = t, s;
|
|
739
699
|
}
|
|
740
|
-
const
|
|
700
|
+
const cs = {
|
|
741
701
|
gwei: 9,
|
|
742
702
|
wei: 18
|
|
743
|
-
},
|
|
703
|
+
}, us = {
|
|
744
704
|
ether: -9,
|
|
745
705
|
wei: 9
|
|
746
706
|
};
|
|
747
|
-
function
|
|
707
|
+
function Ke(e, t) {
|
|
748
708
|
let s = e.toString();
|
|
749
709
|
const n = s.startsWith("-");
|
|
750
710
|
n && (s = s.slice(1)), s = s.padStart(t, "0");
|
|
@@ -754,18 +714,18 @@ function qe(e, t) {
|
|
|
754
714
|
];
|
|
755
715
|
return i = i.replace(/(0+)$/, ""), `${n ? "-" : ""}${r || "0"}${i ? `.${i}` : ""}`;
|
|
756
716
|
}
|
|
757
|
-
function
|
|
758
|
-
return
|
|
717
|
+
function ls(e, t = "wei") {
|
|
718
|
+
return Ke(e, cs[t]);
|
|
759
719
|
}
|
|
760
|
-
function
|
|
761
|
-
return
|
|
720
|
+
function U(e, t = "wei") {
|
|
721
|
+
return Ke(e, us[t]);
|
|
762
722
|
}
|
|
763
|
-
function
|
|
723
|
+
function We(e) {
|
|
764
724
|
const t = Object.entries(e).map(([n, r]) => r === void 0 || r === !1 ? null : [n, r]).filter(Boolean), s = t.reduce((n, [r]) => Math.max(n, r.length), 0);
|
|
765
725
|
return t.map(([n, r]) => ` ${`${n}:`.padEnd(s + 1)} ${r}`).join(`
|
|
766
726
|
`);
|
|
767
727
|
}
|
|
768
|
-
class
|
|
728
|
+
class Pn extends u {
|
|
769
729
|
constructor() {
|
|
770
730
|
super([
|
|
771
731
|
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
@@ -774,20 +734,20 @@ class Cn extends u {
|
|
|
774
734
|
`), { name: "FeeConflictError" });
|
|
775
735
|
}
|
|
776
736
|
}
|
|
777
|
-
class
|
|
737
|
+
class ds extends u {
|
|
778
738
|
constructor({ v: t }) {
|
|
779
739
|
super(`Invalid \`v\` value "${t}". Expected 27 or 28.`, {
|
|
780
740
|
name: "InvalidLegacyVError"
|
|
781
741
|
});
|
|
782
742
|
}
|
|
783
743
|
}
|
|
784
|
-
class
|
|
744
|
+
class fs extends u {
|
|
785
745
|
constructor({ transaction: t }) {
|
|
786
746
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
787
747
|
metaMessages: [
|
|
788
748
|
"Provided Transaction:",
|
|
789
749
|
"{",
|
|
790
|
-
|
|
750
|
+
We(t),
|
|
791
751
|
"}",
|
|
792
752
|
"",
|
|
793
753
|
"To infer the type, either provide:",
|
|
@@ -802,24 +762,23 @@ class ms extends u {
|
|
|
802
762
|
});
|
|
803
763
|
}
|
|
804
764
|
}
|
|
805
|
-
class
|
|
765
|
+
class hs extends u {
|
|
806
766
|
constructor({ storageKey: t }) {
|
|
807
767
|
super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
808
768
|
}
|
|
809
769
|
}
|
|
810
|
-
class
|
|
770
|
+
class vn extends u {
|
|
811
771
|
constructor(t, { account: s, docsPath: n, chain: r, data: i, gas: o, gasPrice: a, maxFeePerGas: c, maxPriorityFeePerGas: l, nonce: h, to: d, value: b }) {
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
from: s == null ? void 0 : s.address,
|
|
772
|
+
const p = We({
|
|
773
|
+
chain: r && `${r?.name} (id: ${r?.id})`,
|
|
774
|
+
from: s?.address,
|
|
816
775
|
to: d,
|
|
817
|
-
value: typeof b < "u" && `${
|
|
776
|
+
value: typeof b < "u" && `${ls(b)} ${r?.nativeCurrency?.symbol || "ETH"}`,
|
|
818
777
|
data: i,
|
|
819
778
|
gas: o,
|
|
820
|
-
gasPrice: typeof a < "u" && `${
|
|
821
|
-
maxFeePerGas: typeof c < "u" && `${
|
|
822
|
-
maxPriorityFeePerGas: typeof l < "u" && `${
|
|
779
|
+
gasPrice: typeof a < "u" && `${U(a)} gwei`,
|
|
780
|
+
maxFeePerGas: typeof c < "u" && `${U(c)} gwei`,
|
|
781
|
+
maxPriorityFeePerGas: typeof l < "u" && `${U(l)} gwei`,
|
|
823
782
|
nonce: h
|
|
824
783
|
});
|
|
825
784
|
super(t.shortMessage, {
|
|
@@ -839,7 +798,7 @@ class Un extends u {
|
|
|
839
798
|
}), this.cause = t;
|
|
840
799
|
}
|
|
841
800
|
}
|
|
842
|
-
class
|
|
801
|
+
class In extends u {
|
|
843
802
|
constructor({ blockHash: t, blockNumber: s, blockTag: n, hash: r, index: i }) {
|
|
844
803
|
let o = "Transaction";
|
|
845
804
|
n && i !== void 0 && (o = `Transaction at block time "${n}" at index "${i}"`), t && i !== void 0 && (o = `Transaction at block hash "${t}" at index "${i}"`), s && i !== void 0 && (o = `Transaction at block number "${s}" at index "${i}"`), r && (o = `Transaction with hash "${r}"`), super(`${o} could not be found.`, {
|
|
@@ -847,27 +806,27 @@ class Fn extends u {
|
|
|
847
806
|
});
|
|
848
807
|
}
|
|
849
808
|
}
|
|
850
|
-
class
|
|
809
|
+
class Tn extends u {
|
|
851
810
|
constructor({ hash: t }) {
|
|
852
811
|
super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`, {
|
|
853
812
|
name: "TransactionReceiptNotFoundError"
|
|
854
813
|
});
|
|
855
814
|
}
|
|
856
815
|
}
|
|
857
|
-
class
|
|
816
|
+
class $n extends u {
|
|
858
817
|
constructor({ hash: t }) {
|
|
859
818
|
super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
|
|
860
819
|
}
|
|
861
820
|
}
|
|
862
|
-
function
|
|
863
|
-
const s =
|
|
864
|
-
return s.encode(n), t === "hex" ?
|
|
821
|
+
function C(e, t = "hex") {
|
|
822
|
+
const s = Xe(e), n = Re(new Uint8Array(s.length));
|
|
823
|
+
return s.encode(n), t === "hex" ? T(n.bytes) : n.bytes;
|
|
865
824
|
}
|
|
866
|
-
function
|
|
867
|
-
return Array.isArray(e) ?
|
|
825
|
+
function Xe(e) {
|
|
826
|
+
return Array.isArray(e) ? ps(e.map((t) => Xe(t))) : bs(e);
|
|
868
827
|
}
|
|
869
|
-
function
|
|
870
|
-
const t = e.reduce((r, i) => r + i.length, 0), s =
|
|
828
|
+
function ps(e) {
|
|
829
|
+
const t = e.reduce((r, i) => r + i.length, 0), s = qe(t);
|
|
871
830
|
return {
|
|
872
831
|
length: t <= 55 ? 1 + t : 1 + s + t,
|
|
873
832
|
encode(r) {
|
|
@@ -877,8 +836,8 @@ function gs(e) {
|
|
|
877
836
|
}
|
|
878
837
|
};
|
|
879
838
|
}
|
|
880
|
-
function
|
|
881
|
-
const t = typeof e == "string" ?
|
|
839
|
+
function bs(e) {
|
|
840
|
+
const t = typeof e == "string" ? F(e) : e, s = qe(t.length);
|
|
882
841
|
return {
|
|
883
842
|
length: t.length === 1 && t[0] < 128 ? 1 : t.length <= 55 ? 1 + t.length : 1 + s + t.length,
|
|
884
843
|
encode(r) {
|
|
@@ -886,7 +845,7 @@ function ys(e) {
|
|
|
886
845
|
}
|
|
887
846
|
};
|
|
888
847
|
}
|
|
889
|
-
function
|
|
848
|
+
function qe(e) {
|
|
890
849
|
if (e < 2 ** 8)
|
|
891
850
|
return 1;
|
|
892
851
|
if (e < 2 ** 16)
|
|
@@ -897,68 +856,67 @@ function Je(e) {
|
|
|
897
856
|
return 4;
|
|
898
857
|
throw new u("Length is too large.");
|
|
899
858
|
}
|
|
900
|
-
class
|
|
859
|
+
class Ze extends u {
|
|
901
860
|
constructor({ cause: t, message: s } = {}) {
|
|
902
|
-
|
|
903
|
-
const n = (r = s == null ? void 0 : s.replace("execution reverted: ", "")) == null ? void 0 : r.replace("execution reverted", "");
|
|
861
|
+
const n = s?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
904
862
|
super(`Execution reverted ${n ? `with reason: ${n}` : "for an unknown reason"}.`, {
|
|
905
863
|
cause: t,
|
|
906
864
|
name: "ExecutionRevertedError"
|
|
907
865
|
});
|
|
908
866
|
}
|
|
909
867
|
}
|
|
910
|
-
Object.defineProperty(
|
|
868
|
+
Object.defineProperty(Ze, "code", {
|
|
911
869
|
enumerable: !0,
|
|
912
870
|
configurable: !0,
|
|
913
871
|
writable: !0,
|
|
914
872
|
value: 3
|
|
915
873
|
});
|
|
916
|
-
Object.defineProperty(
|
|
874
|
+
Object.defineProperty(Ze, "nodeMessage", {
|
|
917
875
|
enumerable: !0,
|
|
918
876
|
configurable: !0,
|
|
919
877
|
writable: !0,
|
|
920
878
|
value: /execution reverted/
|
|
921
879
|
});
|
|
922
|
-
class
|
|
880
|
+
class se extends u {
|
|
923
881
|
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
924
|
-
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${
|
|
882
|
+
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${U(s)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
925
883
|
cause: t,
|
|
926
884
|
name: "FeeCapTooHighError"
|
|
927
885
|
});
|
|
928
886
|
}
|
|
929
887
|
}
|
|
930
|
-
Object.defineProperty(
|
|
888
|
+
Object.defineProperty(se, "nodeMessage", {
|
|
931
889
|
enumerable: !0,
|
|
932
890
|
configurable: !0,
|
|
933
891
|
writable: !0,
|
|
934
892
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
935
893
|
});
|
|
936
|
-
class
|
|
894
|
+
class ms extends u {
|
|
937
895
|
constructor({ cause: t, maxFeePerGas: s } = {}) {
|
|
938
|
-
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${
|
|
896
|
+
super(`The fee cap (\`maxFeePerGas\`${s ? ` = ${U(s)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
939
897
|
cause: t,
|
|
940
898
|
name: "FeeCapTooLowError"
|
|
941
899
|
});
|
|
942
900
|
}
|
|
943
901
|
}
|
|
944
|
-
Object.defineProperty(
|
|
902
|
+
Object.defineProperty(ms, "nodeMessage", {
|
|
945
903
|
enumerable: !0,
|
|
946
904
|
configurable: !0,
|
|
947
905
|
writable: !0,
|
|
948
906
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
949
907
|
});
|
|
950
|
-
class
|
|
908
|
+
class xs extends u {
|
|
951
909
|
constructor({ cause: t, nonce: s } = {}) {
|
|
952
910
|
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
|
|
953
911
|
}
|
|
954
912
|
}
|
|
955
|
-
Object.defineProperty(
|
|
913
|
+
Object.defineProperty(xs, "nodeMessage", {
|
|
956
914
|
enumerable: !0,
|
|
957
915
|
configurable: !0,
|
|
958
916
|
writable: !0,
|
|
959
917
|
value: /nonce too high/
|
|
960
918
|
});
|
|
961
|
-
class
|
|
919
|
+
class gs extends u {
|
|
962
920
|
constructor({ cause: t, nonce: s } = {}) {
|
|
963
921
|
super([
|
|
964
922
|
`Nonce provided for the transaction ${s ? `(${s}) ` : ""}is lower than the current nonce of the account.`,
|
|
@@ -967,24 +925,24 @@ class Bs extends u {
|
|
|
967
925
|
`), { cause: t, name: "NonceTooLowError" });
|
|
968
926
|
}
|
|
969
927
|
}
|
|
970
|
-
Object.defineProperty(
|
|
928
|
+
Object.defineProperty(gs, "nodeMessage", {
|
|
971
929
|
enumerable: !0,
|
|
972
930
|
configurable: !0,
|
|
973
931
|
writable: !0,
|
|
974
932
|
value: /nonce too low|transaction already imported|already known/
|
|
975
933
|
});
|
|
976
|
-
class
|
|
934
|
+
class ys extends u {
|
|
977
935
|
constructor({ cause: t, nonce: s } = {}) {
|
|
978
936
|
super(`Nonce provided for the transaction ${s ? `(${s}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
|
|
979
937
|
}
|
|
980
938
|
}
|
|
981
|
-
Object.defineProperty(
|
|
939
|
+
Object.defineProperty(ys, "nodeMessage", {
|
|
982
940
|
enumerable: !0,
|
|
983
941
|
configurable: !0,
|
|
984
942
|
writable: !0,
|
|
985
943
|
value: /nonce has max value/
|
|
986
944
|
});
|
|
987
|
-
class
|
|
945
|
+
class ws extends u {
|
|
988
946
|
constructor({ cause: t } = {}) {
|
|
989
947
|
super([
|
|
990
948
|
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
@@ -1005,13 +963,13 @@ class vs extends u {
|
|
|
1005
963
|
});
|
|
1006
964
|
}
|
|
1007
965
|
}
|
|
1008
|
-
Object.defineProperty(
|
|
966
|
+
Object.defineProperty(ws, "nodeMessage", {
|
|
1009
967
|
enumerable: !0,
|
|
1010
968
|
configurable: !0,
|
|
1011
969
|
writable: !0,
|
|
1012
970
|
value: /insufficient funds|exceeds transaction sender account balance/
|
|
1013
971
|
});
|
|
1014
|
-
class
|
|
972
|
+
class Es extends u {
|
|
1015
973
|
constructor({ cause: t, gas: s } = {}) {
|
|
1016
974
|
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
1017
975
|
cause: t,
|
|
@@ -1019,13 +977,13 @@ class Is extends u {
|
|
|
1019
977
|
});
|
|
1020
978
|
}
|
|
1021
979
|
}
|
|
1022
|
-
Object.defineProperty(
|
|
980
|
+
Object.defineProperty(Es, "nodeMessage", {
|
|
1023
981
|
enumerable: !0,
|
|
1024
982
|
configurable: !0,
|
|
1025
983
|
writable: !0,
|
|
1026
984
|
value: /intrinsic gas too high|gas limit reached/
|
|
1027
985
|
});
|
|
1028
|
-
class
|
|
986
|
+
class Bs extends u {
|
|
1029
987
|
constructor({ cause: t, gas: s } = {}) {
|
|
1030
988
|
super(`The amount of gas ${s ? `(${s}) ` : ""}provided for the transaction is too low.`, {
|
|
1031
989
|
cause: t,
|
|
@@ -1033,13 +991,13 @@ class Ts extends u {
|
|
|
1033
991
|
});
|
|
1034
992
|
}
|
|
1035
993
|
}
|
|
1036
|
-
Object.defineProperty(
|
|
994
|
+
Object.defineProperty(Bs, "nodeMessage", {
|
|
1037
995
|
enumerable: !0,
|
|
1038
996
|
configurable: !0,
|
|
1039
997
|
writable: !0,
|
|
1040
998
|
value: /intrinsic gas too low/
|
|
1041
999
|
});
|
|
1042
|
-
class
|
|
1000
|
+
class Ps extends u {
|
|
1043
1001
|
constructor({ cause: t }) {
|
|
1044
1002
|
super("The transaction type is not supported for this chain.", {
|
|
1045
1003
|
cause: t,
|
|
@@ -1047,16 +1005,16 @@ class As extends u {
|
|
|
1047
1005
|
});
|
|
1048
1006
|
}
|
|
1049
1007
|
}
|
|
1050
|
-
Object.defineProperty(
|
|
1008
|
+
Object.defineProperty(Ps, "nodeMessage", {
|
|
1051
1009
|
enumerable: !0,
|
|
1052
1010
|
configurable: !0,
|
|
1053
1011
|
writable: !0,
|
|
1054
1012
|
value: /transaction type not valid/
|
|
1055
1013
|
});
|
|
1056
|
-
class
|
|
1014
|
+
class Ye extends u {
|
|
1057
1015
|
constructor({ cause: t, maxPriorityFeePerGas: s, maxFeePerGas: n } = {}) {
|
|
1058
1016
|
super([
|
|
1059
|
-
`The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${
|
|
1017
|
+
`The provided tip (\`maxPriorityFeePerGas\`${s ? ` = ${U(s)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${U(n)} gwei` : ""}).`
|
|
1060
1018
|
].join(`
|
|
1061
1019
|
`), {
|
|
1062
1020
|
cause: t,
|
|
@@ -1064,21 +1022,21 @@ class et extends u {
|
|
|
1064
1022
|
});
|
|
1065
1023
|
}
|
|
1066
1024
|
}
|
|
1067
|
-
Object.defineProperty(
|
|
1025
|
+
Object.defineProperty(Ye, "nodeMessage", {
|
|
1068
1026
|
enumerable: !0,
|
|
1069
1027
|
configurable: !0,
|
|
1070
1028
|
writable: !0,
|
|
1071
1029
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
1072
1030
|
});
|
|
1073
|
-
class
|
|
1031
|
+
class An extends u {
|
|
1074
1032
|
constructor({ cause: t }) {
|
|
1075
|
-
super(`An error occurred while executing: ${t
|
|
1033
|
+
super(`An error occurred while executing: ${t?.shortMessage}`, {
|
|
1076
1034
|
cause: t,
|
|
1077
1035
|
name: "UnknownNodeError"
|
|
1078
1036
|
});
|
|
1079
1037
|
}
|
|
1080
1038
|
}
|
|
1081
|
-
function
|
|
1039
|
+
function fe(e, t) {
|
|
1082
1040
|
return ({ exclude: s, format: n }) => ({
|
|
1083
1041
|
exclude: s,
|
|
1084
1042
|
format: (r) => {
|
|
@@ -1094,33 +1052,33 @@ function he(e, t) {
|
|
|
1094
1052
|
type: e
|
|
1095
1053
|
});
|
|
1096
1054
|
}
|
|
1097
|
-
const
|
|
1055
|
+
const he = 2n ** 256n - 1n, Je = {
|
|
1098
1056
|
"0x0": "legacy",
|
|
1099
1057
|
"0x1": "eip2930",
|
|
1100
1058
|
"0x2": "eip1559",
|
|
1101
1059
|
"0x3": "eip4844",
|
|
1102
1060
|
"0x4": "eip7702"
|
|
1103
1061
|
};
|
|
1104
|
-
function
|
|
1062
|
+
function pe(e) {
|
|
1105
1063
|
const t = {
|
|
1106
1064
|
...e,
|
|
1107
1065
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
1108
1066
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
1109
|
-
chainId: e.chainId ?
|
|
1067
|
+
chainId: e.chainId ? Q(e.chainId) : void 0,
|
|
1110
1068
|
gas: e.gas ? BigInt(e.gas) : void 0,
|
|
1111
1069
|
gasPrice: e.gasPrice ? BigInt(e.gasPrice) : void 0,
|
|
1112
1070
|
maxFeePerBlobGas: e.maxFeePerBlobGas ? BigInt(e.maxFeePerBlobGas) : void 0,
|
|
1113
1071
|
maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
|
|
1114
1072
|
maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
|
|
1115
|
-
nonce: e.nonce ?
|
|
1073
|
+
nonce: e.nonce ? Q(e.nonce) : void 0,
|
|
1116
1074
|
to: e.to ? e.to : null,
|
|
1117
1075
|
transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
|
|
1118
|
-
type: e.type ?
|
|
1076
|
+
type: e.type ? Je[e.type] : void 0,
|
|
1119
1077
|
typeHex: e.type ? e.type : void 0,
|
|
1120
1078
|
value: e.value ? BigInt(e.value) : void 0,
|
|
1121
1079
|
v: e.v ? BigInt(e.v) : void 0
|
|
1122
1080
|
};
|
|
1123
|
-
return e.authorizationList && (t.authorizationList =
|
|
1081
|
+
return e.authorizationList && (t.authorizationList = Is(e.authorizationList)), t.yParity = (() => {
|
|
1124
1082
|
if (e.yParity)
|
|
1125
1083
|
return Number(e.yParity);
|
|
1126
1084
|
if (typeof t.v == "bigint") {
|
|
@@ -1133,8 +1091,8 @@ function be(e) {
|
|
|
1133
1091
|
}
|
|
1134
1092
|
})(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
|
|
1135
1093
|
}
|
|
1136
|
-
const
|
|
1137
|
-
function
|
|
1094
|
+
const vs = /* @__PURE__ */ fe("transaction", pe);
|
|
1095
|
+
function Is(e) {
|
|
1138
1096
|
return e.map((t) => ({
|
|
1139
1097
|
address: t.address,
|
|
1140
1098
|
chainId: Number(t.chainId),
|
|
@@ -1144,8 +1102,8 @@ function Cs(e) {
|
|
|
1144
1102
|
yParity: Number(t.yParity)
|
|
1145
1103
|
}));
|
|
1146
1104
|
}
|
|
1147
|
-
function
|
|
1148
|
-
const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s :
|
|
1105
|
+
function Ts(e) {
|
|
1106
|
+
const t = (e.transactions ?? []).map((s) => typeof s == "string" ? s : pe(s));
|
|
1149
1107
|
return {
|
|
1150
1108
|
...e,
|
|
1151
1109
|
baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
|
|
@@ -1164,44 +1122,44 @@ function Us(e) {
|
|
|
1164
1122
|
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
1165
1123
|
};
|
|
1166
1124
|
}
|
|
1167
|
-
const
|
|
1168
|
-
function
|
|
1169
|
-
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((i) =>
|
|
1125
|
+
const $s = /* @__PURE__ */ fe("block", Ts);
|
|
1126
|
+
function Qe(e) {
|
|
1127
|
+
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((i) => F(i)) : e.blobs, r = [];
|
|
1170
1128
|
for (const i of n)
|
|
1171
1129
|
r.push(Uint8Array.from(t.blobToKzgCommitment(i)));
|
|
1172
|
-
return s === "bytes" ? r : r.map((i) =>
|
|
1130
|
+
return s === "bytes" ? r : r.map((i) => T(i));
|
|
1173
1131
|
}
|
|
1174
|
-
function
|
|
1175
|
-
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((o) =>
|
|
1132
|
+
function et(e) {
|
|
1133
|
+
const { kzg: t } = e, s = e.to ?? (typeof e.blobs[0] == "string" ? "hex" : "bytes"), n = typeof e.blobs[0] == "string" ? e.blobs.map((o) => F(o)) : e.blobs, r = typeof e.commitments[0] == "string" ? e.commitments.map((o) => F(o)) : e.commitments, i = [];
|
|
1176
1134
|
for (let o = 0; o < n.length; o++) {
|
|
1177
1135
|
const a = n[o], c = r[o];
|
|
1178
1136
|
i.push(Uint8Array.from(t.computeBlobKzgProof(a, c)));
|
|
1179
1137
|
}
|
|
1180
|
-
return s === "bytes" ? i : i.map((o) =>
|
|
1138
|
+
return s === "bytes" ? i : i.map((o) => T(o));
|
|
1181
1139
|
}
|
|
1182
|
-
function
|
|
1140
|
+
function As(e, t, s, n) {
|
|
1183
1141
|
if (typeof e.setBigUint64 == "function")
|
|
1184
1142
|
return e.setBigUint64(t, s, n);
|
|
1185
1143
|
const r = BigInt(32), i = BigInt(4294967295), o = Number(s >> r & i), a = Number(s & i), c = n ? 4 : 0, l = n ? 0 : 4;
|
|
1186
1144
|
e.setUint32(t + c, o, n), e.setUint32(t + l, a, n);
|
|
1187
1145
|
}
|
|
1188
|
-
function
|
|
1146
|
+
function Us(e, t, s) {
|
|
1189
1147
|
return e & t ^ ~e & s;
|
|
1190
1148
|
}
|
|
1191
|
-
function
|
|
1149
|
+
function Fs(e, t, s) {
|
|
1192
1150
|
return e & t ^ e & s ^ t & s;
|
|
1193
1151
|
}
|
|
1194
|
-
class
|
|
1152
|
+
class Cs extends Le {
|
|
1195
1153
|
constructor(t, s, n, r) {
|
|
1196
|
-
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = s, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(t), this.view =
|
|
1154
|
+
super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = s, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(t), this.view = oe(this.buffer);
|
|
1197
1155
|
}
|
|
1198
1156
|
update(t) {
|
|
1199
|
-
|
|
1157
|
+
te(this), t = le(t), G(t);
|
|
1200
1158
|
const { view: s, buffer: n, blockLen: r } = this, i = t.length;
|
|
1201
1159
|
for (let o = 0; o < i; ) {
|
|
1202
1160
|
const a = Math.min(r - this.pos, i - o);
|
|
1203
1161
|
if (a === r) {
|
|
1204
|
-
const c =
|
|
1162
|
+
const c = oe(t);
|
|
1205
1163
|
for (; r <= i - o; o += r)
|
|
1206
1164
|
this.process(c, o);
|
|
1207
1165
|
continue;
|
|
@@ -1211,14 +1169,14 @@ class Hs extends Oe {
|
|
|
1211
1169
|
return this.length += t.length, this.roundClean(), this;
|
|
1212
1170
|
}
|
|
1213
1171
|
digestInto(t) {
|
|
1214
|
-
|
|
1172
|
+
te(this), Se(t, this), this.finished = !0;
|
|
1215
1173
|
const { buffer: s, view: n, blockLen: r, isLE: i } = this;
|
|
1216
1174
|
let { pos: o } = this;
|
|
1217
|
-
s[o++] = 128,
|
|
1175
|
+
s[o++] = 128, X(this.buffer.subarray(o)), this.padOffset > r - o && (this.process(n, 0), o = 0);
|
|
1218
1176
|
for (let d = o; d < r; d++)
|
|
1219
1177
|
s[d] = 0;
|
|
1220
|
-
|
|
1221
|
-
const a =
|
|
1178
|
+
As(n, r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
1179
|
+
const a = oe(t), c = this.outputLen;
|
|
1222
1180
|
if (c % 4)
|
|
1223
1181
|
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
1224
1182
|
const l = c / 4, h = this.get();
|
|
@@ -1242,7 +1200,7 @@ class Hs extends Oe {
|
|
|
1242
1200
|
return this._cloneInto();
|
|
1243
1201
|
}
|
|
1244
1202
|
}
|
|
1245
|
-
const
|
|
1203
|
+
const E = /* @__PURE__ */ Uint32Array.from([
|
|
1246
1204
|
1779033703,
|
|
1247
1205
|
3144134277,
|
|
1248
1206
|
1013904242,
|
|
@@ -1251,7 +1209,7 @@ const P = /* @__PURE__ */ Uint32Array.from([
|
|
|
1251
1209
|
2600822924,
|
|
1252
1210
|
528734635,
|
|
1253
1211
|
1541459225
|
|
1254
|
-
]),
|
|
1212
|
+
]), zs = /* @__PURE__ */ Uint32Array.from([
|
|
1255
1213
|
1116352408,
|
|
1256
1214
|
1899447441,
|
|
1257
1215
|
3049323471,
|
|
@@ -1316,10 +1274,10 @@ const P = /* @__PURE__ */ Uint32Array.from([
|
|
|
1316
1274
|
2756734187,
|
|
1317
1275
|
3204031479,
|
|
1318
1276
|
3329325298
|
|
1319
|
-
]),
|
|
1320
|
-
class
|
|
1277
|
+
]), B = /* @__PURE__ */ new Uint32Array(64);
|
|
1278
|
+
class ks extends Cs {
|
|
1321
1279
|
constructor(t = 32) {
|
|
1322
|
-
super(64, t, 8, !1), this.A =
|
|
1280
|
+
super(64, t, 8, !1), this.A = E[0] | 0, this.B = E[1] | 0, this.C = E[2] | 0, this.D = E[3] | 0, this.E = E[4] | 0, this.F = E[5] | 0, this.G = E[6] | 0, this.H = E[7] | 0;
|
|
1323
1281
|
}
|
|
1324
1282
|
get() {
|
|
1325
1283
|
const { A: t, B: s, C: n, D: r, E: i, F: o, G: a, H: c } = this;
|
|
@@ -1331,47 +1289,47 @@ class Gs extends Hs {
|
|
|
1331
1289
|
}
|
|
1332
1290
|
process(t, s) {
|
|
1333
1291
|
for (let d = 0; d < 16; d++, s += 4)
|
|
1334
|
-
|
|
1292
|
+
B[d] = t.getUint32(s, !1);
|
|
1335
1293
|
for (let d = 16; d < 64; d++) {
|
|
1336
|
-
const b =
|
|
1337
|
-
|
|
1294
|
+
const b = B[d - 15], p = B[d - 2], M = g(b, 7) ^ g(b, 18) ^ b >>> 3, k = g(p, 17) ^ g(p, 19) ^ p >>> 10;
|
|
1295
|
+
B[d] = k + B[d - 7] + M + B[d - 16] | 0;
|
|
1338
1296
|
}
|
|
1339
1297
|
let { A: n, B: r, C: i, D: o, E: a, F: c, G: l, H: h } = this;
|
|
1340
1298
|
for (let d = 0; d < 64; d++) {
|
|
1341
|
-
const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b +
|
|
1342
|
-
h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p +
|
|
1299
|
+
const b = g(a, 6) ^ g(a, 11) ^ g(a, 25), p = h + b + Us(a, c, l) + zs[d] + B[d] | 0, k = (g(n, 2) ^ g(n, 13) ^ g(n, 22)) + Fs(n, r, i) | 0;
|
|
1300
|
+
h = l, l = c, c = a, a = o + p | 0, o = i, i = r, r = n, n = p + k | 0;
|
|
1343
1301
|
}
|
|
1344
1302
|
n = n + this.A | 0, r = r + this.B | 0, i = i + this.C | 0, o = o + this.D | 0, a = a + this.E | 0, c = c + this.F | 0, l = l + this.G | 0, h = h + this.H | 0, this.set(n, r, i, o, a, c, l, h);
|
|
1345
1303
|
}
|
|
1346
1304
|
roundClean() {
|
|
1347
|
-
|
|
1305
|
+
X(B);
|
|
1348
1306
|
}
|
|
1349
1307
|
destroy() {
|
|
1350
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0),
|
|
1308
|
+
this.set(0, 0, 0, 0, 0, 0, 0, 0), X(this.buffer);
|
|
1351
1309
|
}
|
|
1352
1310
|
}
|
|
1353
|
-
const
|
|
1354
|
-
function
|
|
1355
|
-
return
|
|
1311
|
+
const Ss = /* @__PURE__ */ He(() => new ks()), Ls = Ss;
|
|
1312
|
+
function Hs(e, t) {
|
|
1313
|
+
return Ls(q(e, { strict: !1 }) ? ze(e) : e);
|
|
1356
1314
|
}
|
|
1357
|
-
function
|
|
1358
|
-
const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r =
|
|
1359
|
-
return r.set([s], 0), n === "bytes" ? r :
|
|
1315
|
+
function Gs(e) {
|
|
1316
|
+
const { commitment: t, version: s = 1 } = e, n = e.to ?? (typeof t == "string" ? "hex" : "bytes"), r = Hs(t);
|
|
1317
|
+
return r.set([s], 0), n === "bytes" ? r : T(r);
|
|
1360
1318
|
}
|
|
1361
|
-
function
|
|
1319
|
+
function Os(e) {
|
|
1362
1320
|
const { commitments: t, version: s } = e, n = e.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), r = [];
|
|
1363
1321
|
for (const i of t)
|
|
1364
|
-
r.push(
|
|
1322
|
+
r.push(Gs({
|
|
1365
1323
|
commitment: i,
|
|
1366
1324
|
to: n,
|
|
1367
1325
|
version: s
|
|
1368
1326
|
}));
|
|
1369
1327
|
return r;
|
|
1370
1328
|
}
|
|
1371
|
-
const
|
|
1329
|
+
const Te = 6, tt = 32, be = 4096, st = tt * be, $e = st * Te - // terminator byte (0x80).
|
|
1372
1330
|
1 - // zero byte (0x00) appended to each field element.
|
|
1373
|
-
1 *
|
|
1374
|
-
class
|
|
1331
|
+
1 * be * Te, nt = 1;
|
|
1332
|
+
class Ns extends u {
|
|
1375
1333
|
constructor({ maxSize: t, size: s }) {
|
|
1376
1334
|
super("Blob size is too large.", {
|
|
1377
1335
|
metaMessages: [`Max: ${t} bytes`, `Given: ${s} bytes`],
|
|
@@ -1379,12 +1337,12 @@ class Ds extends u {
|
|
|
1379
1337
|
});
|
|
1380
1338
|
}
|
|
1381
1339
|
}
|
|
1382
|
-
class
|
|
1340
|
+
class rt extends u {
|
|
1383
1341
|
constructor() {
|
|
1384
1342
|
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
1385
1343
|
}
|
|
1386
1344
|
}
|
|
1387
|
-
class
|
|
1345
|
+
class Ms extends u {
|
|
1388
1346
|
constructor({ hash: t, size: s }) {
|
|
1389
1347
|
super(`Versioned hash "${t}" size is invalid.`, {
|
|
1390
1348
|
metaMessages: ["Expected: 32", `Received: ${s}`],
|
|
@@ -1392,33 +1350,33 @@ class Rs extends u {
|
|
|
1392
1350
|
});
|
|
1393
1351
|
}
|
|
1394
1352
|
}
|
|
1395
|
-
class
|
|
1353
|
+
class _s extends u {
|
|
1396
1354
|
constructor({ hash: t, version: s }) {
|
|
1397
1355
|
super(`Versioned hash "${t}" version is invalid.`, {
|
|
1398
1356
|
metaMessages: [
|
|
1399
|
-
`Expected: ${
|
|
1357
|
+
`Expected: ${nt}`,
|
|
1400
1358
|
`Received: ${s}`
|
|
1401
1359
|
],
|
|
1402
1360
|
name: "InvalidVersionedHashVersionError"
|
|
1403
1361
|
});
|
|
1404
1362
|
}
|
|
1405
1363
|
}
|
|
1406
|
-
function
|
|
1407
|
-
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ?
|
|
1364
|
+
function Vs(e) {
|
|
1365
|
+
const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), s = typeof e.data == "string" ? F(e.data) : e.data, n = P(s);
|
|
1408
1366
|
if (!n)
|
|
1409
|
-
throw new
|
|
1410
|
-
if (n >
|
|
1411
|
-
throw new
|
|
1412
|
-
maxSize:
|
|
1367
|
+
throw new rt();
|
|
1368
|
+
if (n > $e)
|
|
1369
|
+
throw new Ns({
|
|
1370
|
+
maxSize: $e,
|
|
1413
1371
|
size: n
|
|
1414
1372
|
});
|
|
1415
1373
|
const r = [];
|
|
1416
1374
|
let i = !0, o = 0;
|
|
1417
1375
|
for (; i; ) {
|
|
1418
|
-
const a =
|
|
1376
|
+
const a = Re(new Uint8Array(st));
|
|
1419
1377
|
let c = 0;
|
|
1420
|
-
for (; c <
|
|
1421
|
-
const l = s.slice(o, o + (
|
|
1378
|
+
for (; c < be; ) {
|
|
1379
|
+
const l = s.slice(o, o + (tt - 1));
|
|
1422
1380
|
if (a.pushByte(0), a.pushBytes(l), l.length < 31) {
|
|
1423
1381
|
a.pushByte(128), i = !1;
|
|
1424
1382
|
break;
|
|
@@ -1427,10 +1385,10 @@ function Ks(e) {
|
|
|
1427
1385
|
}
|
|
1428
1386
|
r.push(a);
|
|
1429
1387
|
}
|
|
1430
|
-
return t === "bytes" ? r.map((a) => a.bytes) : r.map((a) =>
|
|
1388
|
+
return t === "bytes" ? r.map((a) => a.bytes) : r.map((a) => T(a.bytes));
|
|
1431
1389
|
}
|
|
1432
|
-
function
|
|
1433
|
-
const { data: t, kzg: s, to: n } = e, r = e.blobs ??
|
|
1390
|
+
function Ds(e) {
|
|
1391
|
+
const { data: t, kzg: s, to: n } = e, r = e.blobs ?? Vs({ data: t, to: n }), i = e.commitments ?? Qe({ blobs: r, kzg: s, to: n }), o = e.proofs ?? et({ blobs: r, commitments: i, kzg: s, to: n }), a = [];
|
|
1434
1392
|
for (let c = 0; c < r.length; c++)
|
|
1435
1393
|
a.push({
|
|
1436
1394
|
blob: r[c],
|
|
@@ -1439,7 +1397,7 @@ function Ws(e) {
|
|
|
1439
1397
|
});
|
|
1440
1398
|
return a;
|
|
1441
1399
|
}
|
|
1442
|
-
function
|
|
1400
|
+
function js(e) {
|
|
1443
1401
|
if (e.type)
|
|
1444
1402
|
return e.type;
|
|
1445
1403
|
if (typeof e.authorizationList < "u")
|
|
@@ -1450,9 +1408,9 @@ function Xs(e) {
|
|
|
1450
1408
|
return "eip1559";
|
|
1451
1409
|
if (typeof e.gasPrice < "u")
|
|
1452
1410
|
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
1453
|
-
throw new
|
|
1411
|
+
throw new fs({ transaction: e });
|
|
1454
1412
|
}
|
|
1455
|
-
function
|
|
1413
|
+
function Rs(e, { args: t, eventName: s } = {}) {
|
|
1456
1414
|
return {
|
|
1457
1415
|
...e,
|
|
1458
1416
|
blockHash: e.blockHash ? e.blockHash : null,
|
|
@@ -1463,7 +1421,7 @@ function qs(e, { args: t, eventName: s } = {}) {
|
|
|
1463
1421
|
...s ? { args: t, eventName: s } : {}
|
|
1464
1422
|
};
|
|
1465
1423
|
}
|
|
1466
|
-
class
|
|
1424
|
+
class Un extends u {
|
|
1467
1425
|
constructor({ blockNumber: t, chain: s, contract: n }) {
|
|
1468
1426
|
super(`Chain "${s.name}" does not support contract "${n.name}".`, {
|
|
1469
1427
|
metaMessages: [
|
|
@@ -1478,7 +1436,7 @@ class Hn extends u {
|
|
|
1478
1436
|
});
|
|
1479
1437
|
}
|
|
1480
1438
|
}
|
|
1481
|
-
class
|
|
1439
|
+
class Fn extends u {
|
|
1482
1440
|
constructor({ chain: t, currentChainId: s }) {
|
|
1483
1441
|
super(`The current chain of the wallet (id: ${s}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`, {
|
|
1484
1442
|
metaMessages: [
|
|
@@ -1489,7 +1447,7 @@ class Ln extends u {
|
|
|
1489
1447
|
});
|
|
1490
1448
|
}
|
|
1491
1449
|
}
|
|
1492
|
-
class
|
|
1450
|
+
class Cn extends u {
|
|
1493
1451
|
constructor() {
|
|
1494
1452
|
super([
|
|
1495
1453
|
"No chain was provided to the request.",
|
|
@@ -1500,23 +1458,23 @@ class Gn extends u {
|
|
|
1500
1458
|
});
|
|
1501
1459
|
}
|
|
1502
1460
|
}
|
|
1503
|
-
class
|
|
1461
|
+
class zn extends u {
|
|
1504
1462
|
constructor() {
|
|
1505
1463
|
super("No chain was provided to the Client.", {
|
|
1506
1464
|
name: "ClientChainNotConfiguredError"
|
|
1507
1465
|
});
|
|
1508
1466
|
}
|
|
1509
1467
|
}
|
|
1510
|
-
class
|
|
1468
|
+
class ne extends u {
|
|
1511
1469
|
constructor({ chainId: t }) {
|
|
1512
1470
|
super(typeof t == "number" ? `Chain ID "${t}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
1513
1471
|
}
|
|
1514
1472
|
}
|
|
1515
|
-
const
|
|
1473
|
+
const Ks = {
|
|
1516
1474
|
"0x0": "reverted",
|
|
1517
1475
|
"0x1": "success"
|
|
1518
1476
|
};
|
|
1519
|
-
function
|
|
1477
|
+
function Ws(e) {
|
|
1520
1478
|
const t = {
|
|
1521
1479
|
...e,
|
|
1522
1480
|
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
@@ -1524,87 +1482,79 @@ function Ys(e) {
|
|
|
1524
1482
|
cumulativeGasUsed: e.cumulativeGasUsed ? BigInt(e.cumulativeGasUsed) : null,
|
|
1525
1483
|
effectiveGasPrice: e.effectiveGasPrice ? BigInt(e.effectiveGasPrice) : null,
|
|
1526
1484
|
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : null,
|
|
1527
|
-
logs: e.logs ? e.logs.map((s) =>
|
|
1485
|
+
logs: e.logs ? e.logs.map((s) => Rs(s)) : null,
|
|
1528
1486
|
to: e.to ? e.to : null,
|
|
1529
|
-
transactionIndex: e.transactionIndex ?
|
|
1530
|
-
status: e.status ?
|
|
1531
|
-
type: e.type ?
|
|
1487
|
+
transactionIndex: e.transactionIndex ? Q(e.transactionIndex) : null,
|
|
1488
|
+
status: e.status ? Ks[e.status] : null,
|
|
1489
|
+
type: e.type ? Je[e.type] || e.type : null
|
|
1532
1490
|
};
|
|
1533
1491
|
return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
|
|
1534
1492
|
}
|
|
1535
|
-
const
|
|
1536
|
-
function
|
|
1537
|
-
return {
|
|
1538
|
-
formatters: void 0,
|
|
1539
|
-
fees: void 0,
|
|
1540
|
-
serializers: void 0,
|
|
1541
|
-
...e
|
|
1542
|
-
};
|
|
1543
|
-
}
|
|
1544
|
-
function Qs(e) {
|
|
1493
|
+
const Xs = /* @__PURE__ */ fe("transactionReceipt", Ws);
|
|
1494
|
+
function qs(e) {
|
|
1545
1495
|
const { authorizationList: t } = e;
|
|
1546
1496
|
if (t)
|
|
1547
1497
|
for (const s of t) {
|
|
1548
1498
|
const { chainId: n } = s, r = s.address;
|
|
1549
|
-
if (!
|
|
1550
|
-
throw new
|
|
1499
|
+
if (!I(r))
|
|
1500
|
+
throw new v({ address: r });
|
|
1551
1501
|
if (n < 0)
|
|
1552
|
-
throw new
|
|
1502
|
+
throw new ne({ chainId: n });
|
|
1553
1503
|
}
|
|
1554
|
-
|
|
1504
|
+
me(e);
|
|
1555
1505
|
}
|
|
1556
|
-
function
|
|
1506
|
+
function Zs(e) {
|
|
1557
1507
|
const { blobVersionedHashes: t } = e;
|
|
1558
1508
|
if (t) {
|
|
1559
1509
|
if (t.length === 0)
|
|
1560
|
-
throw new
|
|
1510
|
+
throw new rt();
|
|
1561
1511
|
for (const s of t) {
|
|
1562
|
-
const n =
|
|
1512
|
+
const n = P(s), r = Q(ss(s, 0, 1));
|
|
1563
1513
|
if (n !== 32)
|
|
1564
|
-
throw new
|
|
1565
|
-
if (r !==
|
|
1566
|
-
throw new
|
|
1514
|
+
throw new Ms({ hash: s, size: n });
|
|
1515
|
+
if (r !== nt)
|
|
1516
|
+
throw new _s({
|
|
1567
1517
|
hash: s,
|
|
1568
1518
|
version: r
|
|
1569
1519
|
});
|
|
1570
1520
|
}
|
|
1571
1521
|
}
|
|
1572
|
-
|
|
1522
|
+
me(e);
|
|
1573
1523
|
}
|
|
1574
|
-
function
|
|
1524
|
+
function me(e) {
|
|
1575
1525
|
const { chainId: t, maxPriorityFeePerGas: s, maxFeePerGas: n, to: r } = e;
|
|
1576
1526
|
if (t <= 0)
|
|
1577
|
-
throw new
|
|
1578
|
-
if (r && !
|
|
1579
|
-
throw new
|
|
1580
|
-
if (n && n >
|
|
1581
|
-
throw new
|
|
1527
|
+
throw new ne({ chainId: t });
|
|
1528
|
+
if (r && !I(r))
|
|
1529
|
+
throw new v({ address: r });
|
|
1530
|
+
if (n && n > he)
|
|
1531
|
+
throw new se({ maxFeePerGas: n });
|
|
1582
1532
|
if (s && n && s > n)
|
|
1583
|
-
throw new
|
|
1533
|
+
throw new Ye({ maxFeePerGas: n, maxPriorityFeePerGas: s });
|
|
1584
1534
|
}
|
|
1585
|
-
function
|
|
1535
|
+
function Ys(e) {
|
|
1586
1536
|
const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
|
|
1587
1537
|
if (t <= 0)
|
|
1588
|
-
throw new
|
|
1589
|
-
if (i && !
|
|
1590
|
-
throw new
|
|
1538
|
+
throw new ne({ chainId: t });
|
|
1539
|
+
if (i && !I(i))
|
|
1540
|
+
throw new v({ address: i });
|
|
1591
1541
|
if (s || r)
|
|
1592
1542
|
throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
1593
|
-
if (n && n >
|
|
1594
|
-
throw new
|
|
1543
|
+
if (n && n > he)
|
|
1544
|
+
throw new se({ maxFeePerGas: n });
|
|
1595
1545
|
}
|
|
1596
|
-
function
|
|
1546
|
+
function Js(e) {
|
|
1597
1547
|
const { chainId: t, maxPriorityFeePerGas: s, gasPrice: n, maxFeePerGas: r, to: i } = e;
|
|
1598
|
-
if (i && !
|
|
1599
|
-
throw new
|
|
1548
|
+
if (i && !I(i))
|
|
1549
|
+
throw new v({ address: i });
|
|
1600
1550
|
if (typeof t < "u" && t <= 0)
|
|
1601
|
-
throw new
|
|
1551
|
+
throw new ne({ chainId: t });
|
|
1602
1552
|
if (s || r)
|
|
1603
1553
|
throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
1604
|
-
if (n && n >
|
|
1605
|
-
throw new
|
|
1554
|
+
if (n && n > he)
|
|
1555
|
+
throw new se({ maxFeePerGas: n });
|
|
1606
1556
|
}
|
|
1607
|
-
function
|
|
1557
|
+
function re(e) {
|
|
1608
1558
|
if (!e || e.length === 0)
|
|
1609
1559
|
return [];
|
|
1610
1560
|
const t = [];
|
|
@@ -1612,24 +1562,24 @@ function oe(e) {
|
|
|
1612
1562
|
const { address: n, storageKeys: r } = e[s];
|
|
1613
1563
|
for (let i = 0; i < r.length; i++)
|
|
1614
1564
|
if (r[i].length - 2 !== 64)
|
|
1615
|
-
throw new
|
|
1616
|
-
if (!
|
|
1617
|
-
throw new
|
|
1565
|
+
throw new hs({ storageKey: r[i] });
|
|
1566
|
+
if (!I(n, { strict: !1 }))
|
|
1567
|
+
throw new v({ address: n });
|
|
1618
1568
|
t.push([n, r]);
|
|
1619
1569
|
}
|
|
1620
1570
|
return t;
|
|
1621
1571
|
}
|
|
1622
|
-
function
|
|
1623
|
-
const s =
|
|
1624
|
-
return s === "eip1559" ?
|
|
1572
|
+
function Qs(e, t) {
|
|
1573
|
+
const s = js(e);
|
|
1574
|
+
return s === "eip1559" ? sn(e, t) : s === "eip2930" ? nn(e, t) : s === "eip4844" ? tn(e, t) : s === "eip7702" ? en(e, t) : rn(e, t);
|
|
1625
1575
|
}
|
|
1626
|
-
function
|
|
1576
|
+
function en(e, t) {
|
|
1627
1577
|
const { authorizationList: s, chainId: n, gas: r, nonce: i, to: o, value: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
|
|
1628
|
-
|
|
1629
|
-
const b =
|
|
1630
|
-
return
|
|
1578
|
+
qs(e);
|
|
1579
|
+
const b = re(h), p = on(s);
|
|
1580
|
+
return N([
|
|
1631
1581
|
"0x04",
|
|
1632
|
-
|
|
1582
|
+
C([
|
|
1633
1583
|
f(n),
|
|
1634
1584
|
i ? f(i) : "0x",
|
|
1635
1585
|
l ? f(l) : "0x",
|
|
@@ -1640,27 +1590,27 @@ function rn(e, t) {
|
|
|
1640
1590
|
d ?? "0x",
|
|
1641
1591
|
b,
|
|
1642
1592
|
p,
|
|
1643
|
-
...
|
|
1593
|
+
...Z(e, t)
|
|
1644
1594
|
])
|
|
1645
1595
|
]);
|
|
1646
1596
|
}
|
|
1647
|
-
function
|
|
1597
|
+
function tn(e, t) {
|
|
1648
1598
|
const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerBlobGas: a, maxFeePerGas: c, maxPriorityFeePerGas: l, accessList: h, data: d } = e;
|
|
1649
|
-
|
|
1599
|
+
Zs(e);
|
|
1650
1600
|
let b = e.blobVersionedHashes, p = e.sidecars;
|
|
1651
1601
|
if (e.blobs && (typeof b > "u" || typeof p > "u")) {
|
|
1652
|
-
const
|
|
1653
|
-
blobs:
|
|
1654
|
-
kzg:
|
|
1602
|
+
const $ = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((V) => T(V)), Y = e.kzg, _ = Qe({
|
|
1603
|
+
blobs: $,
|
|
1604
|
+
kzg: Y
|
|
1655
1605
|
});
|
|
1656
|
-
if (typeof b > "u" && (b =
|
|
1657
|
-
commitments:
|
|
1606
|
+
if (typeof b > "u" && (b = Os({
|
|
1607
|
+
commitments: _
|
|
1658
1608
|
})), typeof p > "u") {
|
|
1659
|
-
const
|
|
1660
|
-
p =
|
|
1609
|
+
const V = et({ blobs: $, commitments: _, kzg: Y });
|
|
1610
|
+
p = Ds({ blobs: $, commitments: _, proofs: V });
|
|
1661
1611
|
}
|
|
1662
1612
|
}
|
|
1663
|
-
const
|
|
1613
|
+
const M = re(h), k = [
|
|
1664
1614
|
f(s),
|
|
1665
1615
|
r ? f(r) : "0x",
|
|
1666
1616
|
l ? f(l) : "0x",
|
|
@@ -1669,26 +1619,26 @@ function on(e, t) {
|
|
|
1669
1619
|
i ?? "0x",
|
|
1670
1620
|
o ? f(o) : "0x",
|
|
1671
1621
|
d ?? "0x",
|
|
1672
|
-
|
|
1622
|
+
M,
|
|
1673
1623
|
a ? f(a) : "0x",
|
|
1674
1624
|
b ?? [],
|
|
1675
|
-
...
|
|
1676
|
-
],
|
|
1625
|
+
...Z(e, t)
|
|
1626
|
+
], xe = [], ge = [], ye = [];
|
|
1677
1627
|
if (p)
|
|
1678
|
-
for (let
|
|
1679
|
-
const { blob:
|
|
1680
|
-
|
|
1628
|
+
for (let $ = 0; $ < p.length; $++) {
|
|
1629
|
+
const { blob: Y, commitment: _, proof: V } = p[$];
|
|
1630
|
+
xe.push(Y), ge.push(_), ye.push(V);
|
|
1681
1631
|
}
|
|
1682
|
-
return
|
|
1632
|
+
return N([
|
|
1683
1633
|
"0x03",
|
|
1684
1634
|
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
1685
|
-
|
|
1635
|
+
C(p ? [k, xe, ge, ye] : k)
|
|
1686
1636
|
]);
|
|
1687
1637
|
}
|
|
1688
|
-
function
|
|
1638
|
+
function sn(e, t) {
|
|
1689
1639
|
const { chainId: s, gas: n, nonce: r, to: i, value: o, maxFeePerGas: a, maxPriorityFeePerGas: c, accessList: l, data: h } = e;
|
|
1690
|
-
|
|
1691
|
-
const d =
|
|
1640
|
+
me(e);
|
|
1641
|
+
const d = re(l), b = [
|
|
1692
1642
|
f(s),
|
|
1693
1643
|
r ? f(r) : "0x",
|
|
1694
1644
|
c ? f(c) : "0x",
|
|
@@ -1698,17 +1648,17 @@ function an(e, t) {
|
|
|
1698
1648
|
o ? f(o) : "0x",
|
|
1699
1649
|
h ?? "0x",
|
|
1700
1650
|
d,
|
|
1701
|
-
...
|
|
1651
|
+
...Z(e, t)
|
|
1702
1652
|
];
|
|
1703
|
-
return
|
|
1653
|
+
return N([
|
|
1704
1654
|
"0x02",
|
|
1705
|
-
|
|
1655
|
+
C(b)
|
|
1706
1656
|
]);
|
|
1707
1657
|
}
|
|
1708
|
-
function
|
|
1658
|
+
function nn(e, t) {
|
|
1709
1659
|
const { chainId: s, gas: n, data: r, nonce: i, to: o, value: a, accessList: c, gasPrice: l } = e;
|
|
1710
|
-
|
|
1711
|
-
const h =
|
|
1660
|
+
Ys(e);
|
|
1661
|
+
const h = re(c), d = [
|
|
1712
1662
|
f(s),
|
|
1713
1663
|
i ? f(i) : "0x",
|
|
1714
1664
|
l ? f(l) : "0x",
|
|
@@ -1717,16 +1667,16 @@ function cn(e, t) {
|
|
|
1717
1667
|
a ? f(a) : "0x",
|
|
1718
1668
|
r ?? "0x",
|
|
1719
1669
|
h,
|
|
1720
|
-
...
|
|
1670
|
+
...Z(e, t)
|
|
1721
1671
|
];
|
|
1722
|
-
return
|
|
1672
|
+
return N([
|
|
1723
1673
|
"0x01",
|
|
1724
|
-
|
|
1674
|
+
C(d)
|
|
1725
1675
|
]);
|
|
1726
1676
|
}
|
|
1727
|
-
function
|
|
1677
|
+
function rn(e, t) {
|
|
1728
1678
|
const { chainId: s = 0, gas: n, data: r, nonce: i, to: o, value: a, gasPrice: c } = e;
|
|
1729
|
-
|
|
1679
|
+
Js(e);
|
|
1730
1680
|
let l = [
|
|
1731
1681
|
i ? f(i) : "0x",
|
|
1732
1682
|
c ? f(c) : "0x",
|
|
@@ -1743,9 +1693,9 @@ function un(e, t) {
|
|
|
1743
1693
|
return BigInt(s * 2) + BigInt(35n + t.v - 27n);
|
|
1744
1694
|
const p = 27n + (t.v === 27n ? 0n : 1n);
|
|
1745
1695
|
if (t.v !== p)
|
|
1746
|
-
throw new
|
|
1696
|
+
throw new ds({ v: t.v });
|
|
1747
1697
|
return p;
|
|
1748
|
-
})(), d =
|
|
1698
|
+
})(), d = A(t.r), b = A(t.s);
|
|
1749
1699
|
l = [
|
|
1750
1700
|
...l,
|
|
1751
1701
|
f(h),
|
|
@@ -1758,9 +1708,9 @@ function un(e, t) {
|
|
|
1758
1708
|
"0x",
|
|
1759
1709
|
"0x"
|
|
1760
1710
|
]);
|
|
1761
|
-
return
|
|
1711
|
+
return C(l);
|
|
1762
1712
|
}
|
|
1763
|
-
function
|
|
1713
|
+
function Z(e, t) {
|
|
1764
1714
|
const s = t ?? e, { v: n, yParity: r } = s;
|
|
1765
1715
|
if (typeof s.r > "u")
|
|
1766
1716
|
return [];
|
|
@@ -1768,25 +1718,33 @@ function J(e, t) {
|
|
|
1768
1718
|
return [];
|
|
1769
1719
|
if (typeof n > "u" && typeof r > "u")
|
|
1770
1720
|
return [];
|
|
1771
|
-
const i =
|
|
1721
|
+
const i = A(s.r), o = A(s.s);
|
|
1772
1722
|
return [typeof r == "number" ? r ? f(1) : "0x" : n === 0n ? "0x" : n === 1n ? f(1) : n === 27n ? "0x" : f(1), i === "0x00" ? "0x" : i, o === "0x00" ? "0x" : o];
|
|
1773
1723
|
}
|
|
1774
|
-
function
|
|
1724
|
+
function on(e) {
|
|
1775
1725
|
if (!e || e.length === 0)
|
|
1776
1726
|
return [];
|
|
1777
1727
|
const t = [];
|
|
1778
1728
|
for (const s of e) {
|
|
1779
1729
|
const { chainId: n, nonce: r, ...i } = s, o = s.address;
|
|
1780
1730
|
t.push([
|
|
1781
|
-
n ?
|
|
1731
|
+
n ? H(n) : "0x",
|
|
1782
1732
|
o,
|
|
1783
|
-
r ?
|
|
1784
|
-
...
|
|
1733
|
+
r ? H(r) : "0x",
|
|
1734
|
+
...Z({}, i)
|
|
1785
1735
|
]);
|
|
1786
1736
|
}
|
|
1787
1737
|
return t;
|
|
1788
1738
|
}
|
|
1789
|
-
|
|
1739
|
+
function x(e) {
|
|
1740
|
+
return {
|
|
1741
|
+
formatters: void 0,
|
|
1742
|
+
fees: void 0,
|
|
1743
|
+
serializers: void 0,
|
|
1744
|
+
...e
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
const an = {
|
|
1790
1748
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
1791
1749
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
1792
1750
|
l2CrossDomainMessenger: {
|
|
@@ -1797,77 +1755,76 @@ const dn = {
|
|
|
1797
1755
|
l2ToL1MessagePasser: {
|
|
1798
1756
|
address: "0x4200000000000000000000000000000000000016"
|
|
1799
1757
|
}
|
|
1800
|
-
},
|
|
1801
|
-
block: /* @__PURE__ */
|
|
1758
|
+
}, cn = {
|
|
1759
|
+
block: /* @__PURE__ */ $s({
|
|
1802
1760
|
format(e) {
|
|
1803
|
-
var s;
|
|
1804
1761
|
return {
|
|
1805
|
-
transactions:
|
|
1806
|
-
if (typeof
|
|
1807
|
-
return
|
|
1808
|
-
const
|
|
1809
|
-
return
|
|
1762
|
+
transactions: e.transactions?.map((s) => {
|
|
1763
|
+
if (typeof s == "string")
|
|
1764
|
+
return s;
|
|
1765
|
+
const n = pe(s);
|
|
1766
|
+
return n.typeHex === "0x7e" && (n.isSystemTx = s.isSystemTx, n.mint = s.mint ? L(s.mint) : void 0, n.sourceHash = s.sourceHash, n.type = "deposit"), n;
|
|
1810
1767
|
}),
|
|
1811
1768
|
stateRoot: e.stateRoot
|
|
1812
1769
|
};
|
|
1813
1770
|
}
|
|
1814
1771
|
}),
|
|
1815
|
-
transaction: /* @__PURE__ */
|
|
1772
|
+
transaction: /* @__PURE__ */ vs({
|
|
1816
1773
|
format(e) {
|
|
1817
1774
|
const t = {};
|
|
1818
|
-
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ?
|
|
1775
|
+
return e.type === "0x7e" && (t.isSystemTx = e.isSystemTx, t.mint = e.mint ? L(e.mint) : void 0, t.sourceHash = e.sourceHash, t.type = "deposit"), t;
|
|
1819
1776
|
}
|
|
1820
1777
|
}),
|
|
1821
|
-
transactionReceipt: /* @__PURE__ */
|
|
1778
|
+
transactionReceipt: /* @__PURE__ */ Xs({
|
|
1822
1779
|
format(e) {
|
|
1823
1780
|
return {
|
|
1824
|
-
l1GasPrice: e.l1GasPrice ?
|
|
1825
|
-
l1GasUsed: e.l1GasUsed ?
|
|
1826
|
-
l1Fee: e.l1Fee ?
|
|
1781
|
+
l1GasPrice: e.l1GasPrice ? L(e.l1GasPrice) : null,
|
|
1782
|
+
l1GasUsed: e.l1GasUsed ? L(e.l1GasUsed) : null,
|
|
1783
|
+
l1Fee: e.l1Fee ? L(e.l1Fee) : null,
|
|
1827
1784
|
l1FeeScalar: e.l1FeeScalar ? Number(e.l1FeeScalar) : null
|
|
1828
1785
|
};
|
|
1829
1786
|
}
|
|
1830
1787
|
})
|
|
1831
1788
|
};
|
|
1832
|
-
function
|
|
1833
|
-
return
|
|
1789
|
+
function un(e, t) {
|
|
1790
|
+
return fn(e) ? dn(e) : Qs(e, t);
|
|
1834
1791
|
}
|
|
1835
|
-
const
|
|
1836
|
-
transaction:
|
|
1792
|
+
const ln = {
|
|
1793
|
+
transaction: un
|
|
1837
1794
|
};
|
|
1838
|
-
function
|
|
1839
|
-
|
|
1795
|
+
function dn(e) {
|
|
1796
|
+
hn(e);
|
|
1840
1797
|
const { sourceHash: t, data: s, from: n, gas: r, isSystemTx: i, mint: o, to: a, value: c } = e, l = [
|
|
1841
1798
|
t,
|
|
1842
1799
|
n,
|
|
1843
1800
|
a ?? "0x",
|
|
1844
|
-
o ?
|
|
1845
|
-
c ?
|
|
1846
|
-
r ?
|
|
1801
|
+
o ? H(o) : "0x",
|
|
1802
|
+
c ? H(c) : "0x",
|
|
1803
|
+
r ? H(r) : "0x",
|
|
1847
1804
|
i ? "0x1" : "0x",
|
|
1848
1805
|
s ?? "0x"
|
|
1849
1806
|
];
|
|
1850
|
-
return
|
|
1807
|
+
return N([
|
|
1851
1808
|
"0x7e",
|
|
1852
|
-
|
|
1809
|
+
C(l)
|
|
1853
1810
|
]);
|
|
1854
1811
|
}
|
|
1855
|
-
function
|
|
1812
|
+
function fn(e) {
|
|
1856
1813
|
return e.type === "deposit" || typeof e.sourceHash < "u";
|
|
1857
1814
|
}
|
|
1858
|
-
function
|
|
1815
|
+
function hn(e) {
|
|
1859
1816
|
const { from: t, to: s } = e;
|
|
1860
|
-
if (t && !
|
|
1861
|
-
throw new
|
|
1862
|
-
if (s && !
|
|
1863
|
-
throw new
|
|
1817
|
+
if (t && !I(t))
|
|
1818
|
+
throw new v({ address: t });
|
|
1819
|
+
if (s && !I(s))
|
|
1820
|
+
throw new v({ address: s });
|
|
1864
1821
|
}
|
|
1865
|
-
const
|
|
1822
|
+
const w = {
|
|
1866
1823
|
blockTime: 2e3,
|
|
1867
|
-
contracts:
|
|
1868
|
-
formatters:
|
|
1869
|
-
serializers:
|
|
1870
|
-
},
|
|
1824
|
+
contracts: an,
|
|
1825
|
+
formatters: cn,
|
|
1826
|
+
serializers: ln
|
|
1827
|
+
}, pn = 42161, it = /* @__PURE__ */ x({
|
|
1871
1828
|
id: 33139,
|
|
1872
1829
|
name: "Ape Chain",
|
|
1873
1830
|
nativeCurrency: {
|
|
@@ -1894,8 +1851,8 @@ const E = {
|
|
|
1894
1851
|
blockCreated: 20889
|
|
1895
1852
|
}
|
|
1896
1853
|
},
|
|
1897
|
-
sourceId:
|
|
1898
|
-
}),
|
|
1854
|
+
sourceId: pn
|
|
1855
|
+
}), ot = /* @__PURE__ */ x({
|
|
1899
1856
|
id: 42161,
|
|
1900
1857
|
name: "Arbitrum One",
|
|
1901
1858
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -1918,8 +1875,8 @@ const E = {
|
|
|
1918
1875
|
blockCreated: 7654707
|
|
1919
1876
|
}
|
|
1920
1877
|
}
|
|
1921
|
-
}),
|
|
1922
|
-
...
|
|
1878
|
+
}), j = 1, at = /* @__PURE__ */ x({
|
|
1879
|
+
...w,
|
|
1923
1880
|
id: 8453,
|
|
1924
1881
|
name: "Base",
|
|
1925
1882
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -1936,14 +1893,14 @@ const E = {
|
|
|
1936
1893
|
}
|
|
1937
1894
|
},
|
|
1938
1895
|
contracts: {
|
|
1939
|
-
...
|
|
1896
|
+
...w.contracts,
|
|
1940
1897
|
disputeGameFactory: {
|
|
1941
|
-
[
|
|
1898
|
+
[j]: {
|
|
1942
1899
|
address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"
|
|
1943
1900
|
}
|
|
1944
1901
|
},
|
|
1945
1902
|
l2OutputOracle: {
|
|
1946
|
-
[
|
|
1903
|
+
[j]: {
|
|
1947
1904
|
address: "0x56315b90c40730925ec5485cf004d835058518A0"
|
|
1948
1905
|
}
|
|
1949
1906
|
},
|
|
@@ -1952,21 +1909,21 @@ const E = {
|
|
|
1952
1909
|
blockCreated: 5022
|
|
1953
1910
|
},
|
|
1954
1911
|
portal: {
|
|
1955
|
-
[
|
|
1912
|
+
[j]: {
|
|
1956
1913
|
address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",
|
|
1957
1914
|
blockCreated: 17482143
|
|
1958
1915
|
}
|
|
1959
1916
|
},
|
|
1960
1917
|
l1StandardBridge: {
|
|
1961
|
-
[
|
|
1918
|
+
[j]: {
|
|
1962
1919
|
address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35",
|
|
1963
1920
|
blockCreated: 17482143
|
|
1964
1921
|
}
|
|
1965
1922
|
}
|
|
1966
1923
|
},
|
|
1967
|
-
sourceId:
|
|
1968
|
-
}),
|
|
1969
|
-
...
|
|
1924
|
+
sourceId: j
|
|
1925
|
+
}), R = 11155111, ct = /* @__PURE__ */ x({
|
|
1926
|
+
...w,
|
|
1970
1927
|
id: 84532,
|
|
1971
1928
|
network: "base-sepolia",
|
|
1972
1929
|
name: "Base Sepolia",
|
|
@@ -1984,25 +1941,25 @@ const E = {
|
|
|
1984
1941
|
}
|
|
1985
1942
|
},
|
|
1986
1943
|
contracts: {
|
|
1987
|
-
...
|
|
1944
|
+
...w.contracts,
|
|
1988
1945
|
disputeGameFactory: {
|
|
1989
|
-
[
|
|
1946
|
+
[R]: {
|
|
1990
1947
|
address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"
|
|
1991
1948
|
}
|
|
1992
1949
|
},
|
|
1993
1950
|
l2OutputOracle: {
|
|
1994
|
-
[
|
|
1951
|
+
[R]: {
|
|
1995
1952
|
address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"
|
|
1996
1953
|
}
|
|
1997
1954
|
},
|
|
1998
1955
|
portal: {
|
|
1999
|
-
[
|
|
1956
|
+
[R]: {
|
|
2000
1957
|
address: "0x49f53e41452c74589e85ca1677426ba426459e85",
|
|
2001
1958
|
blockCreated: 4446677
|
|
2002
1959
|
}
|
|
2003
1960
|
},
|
|
2004
1961
|
l1StandardBridge: {
|
|
2005
|
-
[
|
|
1962
|
+
[R]: {
|
|
2006
1963
|
address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120",
|
|
2007
1964
|
blockCreated: 4446677
|
|
2008
1965
|
}
|
|
@@ -2013,10 +1970,11 @@ const E = {
|
|
|
2013
1970
|
}
|
|
2014
1971
|
},
|
|
2015
1972
|
testnet: !0,
|
|
2016
|
-
sourceId:
|
|
2017
|
-
}),
|
|
1973
|
+
sourceId: R
|
|
1974
|
+
}), ut = /* @__PURE__ */ x({
|
|
2018
1975
|
id: 80094,
|
|
2019
1976
|
name: "Berachain",
|
|
1977
|
+
blockTime: 2e3,
|
|
2020
1978
|
nativeCurrency: {
|
|
2021
1979
|
decimals: 18,
|
|
2022
1980
|
name: "BERA Token",
|
|
@@ -2032,8 +1990,8 @@ const E = {
|
|
|
2032
1990
|
blockCreated: 877007
|
|
2033
1991
|
},
|
|
2034
1992
|
ensUniversalResolver: {
|
|
2035
|
-
address: "
|
|
2036
|
-
blockCreated:
|
|
1993
|
+
address: "0x4D41762915F83c76EcaF6776d9b08076aA32b492",
|
|
1994
|
+
blockCreated: 9310021
|
|
2037
1995
|
}
|
|
2038
1996
|
},
|
|
2039
1997
|
rpcUrls: {
|
|
@@ -2047,9 +2005,10 @@ const E = {
|
|
|
2047
2005
|
},
|
|
2048
2006
|
ensTlds: [".bera"],
|
|
2049
2007
|
testnet: !1
|
|
2050
|
-
}),
|
|
2008
|
+
}), lt = /* @__PURE__ */ x({
|
|
2051
2009
|
id: 56,
|
|
2052
2010
|
name: "BNB Smart Chain",
|
|
2011
|
+
blockTime: 750,
|
|
2053
2012
|
nativeCurrency: {
|
|
2054
2013
|
decimals: 18,
|
|
2055
2014
|
name: "BNB",
|
|
@@ -2071,7 +2030,7 @@ const E = {
|
|
|
2071
2030
|
blockCreated: 15921452
|
|
2072
2031
|
}
|
|
2073
2032
|
}
|
|
2074
|
-
}),
|
|
2033
|
+
}), dt = /* @__PURE__ */ x({
|
|
2075
2034
|
id: 17e3,
|
|
2076
2035
|
name: "Holesky",
|
|
2077
2036
|
nativeCurrency: { name: "Holesky Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2092,17 +2051,13 @@ const E = {
|
|
|
2092
2051
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
2093
2052
|
blockCreated: 77
|
|
2094
2053
|
},
|
|
2095
|
-
ensRegistry: {
|
|
2096
|
-
address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
|
|
2097
|
-
blockCreated: 801613
|
|
2098
|
-
},
|
|
2099
2054
|
ensUniversalResolver: {
|
|
2100
|
-
address: "
|
|
2101
|
-
blockCreated:
|
|
2055
|
+
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee",
|
|
2056
|
+
blockCreated: 4295055
|
|
2102
2057
|
}
|
|
2103
2058
|
},
|
|
2104
2059
|
testnet: !0
|
|
2105
|
-
}),
|
|
2060
|
+
}), ft = /* @__PURE__ */ x({
|
|
2106
2061
|
id: 560048,
|
|
2107
2062
|
name: "Hoodi",
|
|
2108
2063
|
nativeCurrency: { name: "Hoodi Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2124,10 +2079,11 @@ const E = {
|
|
|
2124
2079
|
}
|
|
2125
2080
|
},
|
|
2126
2081
|
testnet: !0
|
|
2127
|
-
}),
|
|
2082
|
+
}), ht = /* @__PURE__ */ x({
|
|
2128
2083
|
id: 1,
|
|
2129
2084
|
name: "Ethereum",
|
|
2130
2085
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
2086
|
+
blockTime: 12e3,
|
|
2131
2087
|
rpcUrls: {
|
|
2132
2088
|
default: {
|
|
2133
2089
|
http: ["https://eth.merkle.io"]
|
|
@@ -2141,20 +2097,17 @@ const E = {
|
|
|
2141
2097
|
}
|
|
2142
2098
|
},
|
|
2143
2099
|
contracts: {
|
|
2144
|
-
ensRegistry: {
|
|
2145
|
-
address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
|
|
2146
|
-
},
|
|
2147
2100
|
ensUniversalResolver: {
|
|
2148
|
-
address: "
|
|
2149
|
-
blockCreated:
|
|
2101
|
+
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee",
|
|
2102
|
+
blockCreated: 23085558
|
|
2150
2103
|
},
|
|
2151
2104
|
multicall3: {
|
|
2152
2105
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
2153
2106
|
blockCreated: 14353601
|
|
2154
2107
|
}
|
|
2155
2108
|
}
|
|
2156
|
-
}),
|
|
2157
|
-
...
|
|
2109
|
+
}), K = 11155111, pt = /* @__PURE__ */ x({
|
|
2110
|
+
...w,
|
|
2158
2111
|
id: 11155420,
|
|
2159
2112
|
name: "OP Sepolia",
|
|
2160
2113
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2171,14 +2124,14 @@ const E = {
|
|
|
2171
2124
|
}
|
|
2172
2125
|
},
|
|
2173
2126
|
contracts: {
|
|
2174
|
-
...
|
|
2127
|
+
...w.contracts,
|
|
2175
2128
|
disputeGameFactory: {
|
|
2176
|
-
[
|
|
2129
|
+
[K]: {
|
|
2177
2130
|
address: "0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"
|
|
2178
2131
|
}
|
|
2179
2132
|
},
|
|
2180
2133
|
l2OutputOracle: {
|
|
2181
|
-
[
|
|
2134
|
+
[K]: {
|
|
2182
2135
|
address: "0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"
|
|
2183
2136
|
}
|
|
2184
2137
|
},
|
|
@@ -2187,19 +2140,19 @@ const E = {
|
|
|
2187
2140
|
blockCreated: 1620204
|
|
2188
2141
|
},
|
|
2189
2142
|
portal: {
|
|
2190
|
-
[
|
|
2143
|
+
[K]: {
|
|
2191
2144
|
address: "0x16Fc5058F25648194471939df75CF27A2fdC48BC"
|
|
2192
2145
|
}
|
|
2193
2146
|
},
|
|
2194
2147
|
l1StandardBridge: {
|
|
2195
|
-
[
|
|
2148
|
+
[K]: {
|
|
2196
2149
|
address: "0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"
|
|
2197
2150
|
}
|
|
2198
2151
|
}
|
|
2199
2152
|
},
|
|
2200
2153
|
testnet: !0,
|
|
2201
|
-
sourceId:
|
|
2202
|
-
}),
|
|
2154
|
+
sourceId: K
|
|
2155
|
+
}), bt = /* @__PURE__ */ x({
|
|
2203
2156
|
id: 11155111,
|
|
2204
2157
|
name: "Sepolia",
|
|
2205
2158
|
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2220,15 +2173,14 @@ const E = {
|
|
|
2220
2173
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
2221
2174
|
blockCreated: 751532
|
|
2222
2175
|
},
|
|
2223
|
-
ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
|
|
2224
2176
|
ensUniversalResolver: {
|
|
2225
|
-
address: "
|
|
2226
|
-
blockCreated:
|
|
2177
|
+
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee",
|
|
2178
|
+
blockCreated: 8928790
|
|
2227
2179
|
}
|
|
2228
2180
|
},
|
|
2229
2181
|
testnet: !0
|
|
2230
|
-
}),
|
|
2231
|
-
...
|
|
2182
|
+
}), W = 1, mt = /* @__PURE__ */ x({
|
|
2183
|
+
...w,
|
|
2232
2184
|
id: 1868,
|
|
2233
2185
|
name: "Soneium Mainnet",
|
|
2234
2186
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
@@ -2245,25 +2197,25 @@ const E = {
|
|
|
2245
2197
|
}
|
|
2246
2198
|
},
|
|
2247
2199
|
contracts: {
|
|
2248
|
-
...
|
|
2200
|
+
...w.contracts,
|
|
2249
2201
|
disputeGameFactory: {
|
|
2250
|
-
[
|
|
2202
|
+
[W]: {
|
|
2251
2203
|
address: "0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"
|
|
2252
2204
|
}
|
|
2253
2205
|
},
|
|
2254
2206
|
l2OutputOracle: {
|
|
2255
|
-
[
|
|
2207
|
+
[W]: {
|
|
2256
2208
|
address: "0x0000000000000000000000000000000000000000"
|
|
2257
2209
|
}
|
|
2258
2210
|
},
|
|
2259
2211
|
portal: {
|
|
2260
|
-
[
|
|
2212
|
+
[W]: {
|
|
2261
2213
|
address: "0x88e529a6ccd302c948689cd5156c83d4614fae92",
|
|
2262
2214
|
blockCreated: 7061266
|
|
2263
2215
|
}
|
|
2264
2216
|
},
|
|
2265
2217
|
l1StandardBridge: {
|
|
2266
|
-
[
|
|
2218
|
+
[W]: {
|
|
2267
2219
|
address: "0xeb9bf100225c214efc3e7c651ebbadcf85177607",
|
|
2268
2220
|
blockCreated: 7061266
|
|
2269
2221
|
}
|
|
@@ -2273,8 +2225,8 @@ const E = {
|
|
|
2273
2225
|
blockCreated: 1
|
|
2274
2226
|
}
|
|
2275
2227
|
},
|
|
2276
|
-
sourceId:
|
|
2277
|
-
}),
|
|
2228
|
+
sourceId: W
|
|
2229
|
+
}), xt = /* @__PURE__ */ x({
|
|
2278
2230
|
id: 239,
|
|
2279
2231
|
name: "TAC",
|
|
2280
2232
|
nativeCurrency: { name: "TAC", symbol: "TAC", decimals: 18 },
|
|
@@ -2301,8 +2253,8 @@ const E = {
|
|
|
2301
2253
|
blockCreated: 0
|
|
2302
2254
|
}
|
|
2303
2255
|
}
|
|
2304
|
-
}),
|
|
2305
|
-
...
|
|
2256
|
+
}), ue = 1, gt = /* @__PURE__ */ x({
|
|
2257
|
+
...w,
|
|
2306
2258
|
id: 48900,
|
|
2307
2259
|
name: "Zircuit Mainnet",
|
|
2308
2260
|
nativeCurrency: {
|
|
@@ -2331,125 +2283,122 @@ const E = {
|
|
|
2331
2283
|
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
2332
2284
|
},
|
|
2333
2285
|
l2OutputOracle: {
|
|
2334
|
-
[
|
|
2286
|
+
[ue]: {
|
|
2335
2287
|
address: "0x92Ef6Af472b39F1b363da45E35530c24619245A4"
|
|
2336
2288
|
}
|
|
2337
2289
|
},
|
|
2338
2290
|
portal: {
|
|
2339
|
-
[
|
|
2291
|
+
[ue]: {
|
|
2340
2292
|
address: "0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"
|
|
2341
2293
|
}
|
|
2342
2294
|
},
|
|
2343
2295
|
l1StandardBridge: {
|
|
2344
|
-
[
|
|
2296
|
+
[ue]: {
|
|
2345
2297
|
address: "0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"
|
|
2346
2298
|
}
|
|
2347
2299
|
}
|
|
2348
2300
|
},
|
|
2349
2301
|
testnet: !1
|
|
2350
2302
|
});
|
|
2351
|
-
var m = ((e) => (e[e.Mainnet =
|
|
2352
|
-
const
|
|
2353
|
-
[m.Mainnet]:
|
|
2354
|
-
[m.Holesky]:
|
|
2355
|
-
[m.Base]:
|
|
2356
|
-
[m.Bsc]:
|
|
2357
|
-
[m.Arbitrum]:
|
|
2358
|
-
[m.ApeChain]:
|
|
2359
|
-
[m.Soneium]:
|
|
2360
|
-
[m.Sepolia]:
|
|
2361
|
-
[m.OptimismSepolia]:
|
|
2362
|
-
[m.BaseSepolia]:
|
|
2363
|
-
[m.Zircuit]:
|
|
2364
|
-
[m.Berachain]:
|
|
2365
|
-
[m.Hoodi]:
|
|
2366
|
-
[m.TAC]:
|
|
2303
|
+
var m = ((e) => (e[e.Mainnet = ht.id] = "Mainnet", e[e.Holesky = dt.id] = "Holesky", e[e.Base = at.id] = "Base", e[e.Bsc = lt.id] = "Bsc", e[e.Arbitrum = ot.id] = "Arbitrum", e[e.ApeChain = it.id] = "ApeChain", e[e.Soneium = mt.id] = "Soneium", e[e.Sepolia = bt.id] = "Sepolia", e[e.OptimismSepolia = pt.id] = "OptimismSepolia", e[e.BaseSepolia = ct.id] = "BaseSepolia", e[e.Zircuit = gt.id] = "Zircuit", e[e.Berachain = ut.id] = "Berachain", e[e.Hoodi = ft.id] = "Hoodi", e[e.TAC = xt.id] = "TAC", e))(m || {});
|
|
2304
|
+
const kn = {
|
|
2305
|
+
[m.Mainnet]: ht,
|
|
2306
|
+
[m.Holesky]: dt,
|
|
2307
|
+
[m.Base]: at,
|
|
2308
|
+
[m.Bsc]: lt,
|
|
2309
|
+
[m.Arbitrum]: ot,
|
|
2310
|
+
[m.ApeChain]: it,
|
|
2311
|
+
[m.Soneium]: mt,
|
|
2312
|
+
[m.Sepolia]: bt,
|
|
2313
|
+
[m.OptimismSepolia]: pt,
|
|
2314
|
+
[m.BaseSepolia]: ct,
|
|
2315
|
+
[m.Zircuit]: gt,
|
|
2316
|
+
[m.Berachain]: ut,
|
|
2317
|
+
[m.Hoodi]: ft,
|
|
2318
|
+
[m.TAC]: xt
|
|
2367
2319
|
};
|
|
2368
2320
|
export {
|
|
2369
|
-
|
|
2370
|
-
|
|
2321
|
+
ns as $,
|
|
2322
|
+
En as A,
|
|
2371
2323
|
u as B,
|
|
2372
2324
|
m as C,
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
Pn as k,
|
|
2439
|
-
In as l,
|
|
2440
|
-
Bn as m,
|
|
2325
|
+
$t as D,
|
|
2326
|
+
Ze as E,
|
|
2327
|
+
P as F,
|
|
2328
|
+
I as G,
|
|
2329
|
+
Le as H,
|
|
2330
|
+
v as I,
|
|
2331
|
+
Jt as J,
|
|
2332
|
+
pe as K,
|
|
2333
|
+
_e as L,
|
|
2334
|
+
Tn as M,
|
|
2335
|
+
Ws as N,
|
|
2336
|
+
Ts as O,
|
|
2337
|
+
F as P,
|
|
2338
|
+
xn as Q,
|
|
2339
|
+
Ve as R,
|
|
2340
|
+
It as S,
|
|
2341
|
+
In as T,
|
|
2342
|
+
An as U,
|
|
2343
|
+
kn as V,
|
|
2344
|
+
$n as W,
|
|
2345
|
+
Et as X,
|
|
2346
|
+
z as Y,
|
|
2347
|
+
mn as Z,
|
|
2348
|
+
Re as _,
|
|
2349
|
+
ze as a,
|
|
2350
|
+
We as a0,
|
|
2351
|
+
U as a1,
|
|
2352
|
+
ls as a2,
|
|
2353
|
+
C as a3,
|
|
2354
|
+
se as a4,
|
|
2355
|
+
ms as a5,
|
|
2356
|
+
xs as a6,
|
|
2357
|
+
gs as a7,
|
|
2358
|
+
ys as a8,
|
|
2359
|
+
ws as a9,
|
|
2360
|
+
Es as aa,
|
|
2361
|
+
Bs as ab,
|
|
2362
|
+
Ps as ac,
|
|
2363
|
+
Ye as ad,
|
|
2364
|
+
bn as ae,
|
|
2365
|
+
Pn as af,
|
|
2366
|
+
he as ag,
|
|
2367
|
+
Qe as ah,
|
|
2368
|
+
Os as ai,
|
|
2369
|
+
et as aj,
|
|
2370
|
+
Ds as ak,
|
|
2371
|
+
js as al,
|
|
2372
|
+
is as am,
|
|
2373
|
+
Un as an,
|
|
2374
|
+
zn as ao,
|
|
2375
|
+
Cn as ap,
|
|
2376
|
+
Fn as aq,
|
|
2377
|
+
vn as ar,
|
|
2378
|
+
T as b,
|
|
2379
|
+
Bn as c,
|
|
2380
|
+
ss as d,
|
|
2381
|
+
N as e,
|
|
2382
|
+
gn as f,
|
|
2383
|
+
le as g,
|
|
2384
|
+
L as h,
|
|
2385
|
+
q as i,
|
|
2386
|
+
X as j,
|
|
2387
|
+
te as k,
|
|
2388
|
+
G as l,
|
|
2389
|
+
ee as m,
|
|
2441
2390
|
f as n,
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2391
|
+
yn as o,
|
|
2392
|
+
yt as p,
|
|
2393
|
+
Ss as q,
|
|
2394
|
+
wn as r,
|
|
2395
|
+
ke as s,
|
|
2396
|
+
H as t,
|
|
2397
|
+
Q as u,
|
|
2398
|
+
Ks as v,
|
|
2399
|
+
A as w,
|
|
2400
|
+
rs as x,
|
|
2401
|
+
Qt as y,
|
|
2402
|
+
Rs as z
|
|
2454
2403
|
};
|
|
2455
|
-
//# sourceMappingURL=constants-
|
|
2404
|
+
//# sourceMappingURL=constants-CuIEh_ZS.js.map
|