@dvmkit/dvm-cli 0.1.4 → 0.1.5
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/{_esm-M2HUAA3B.js → _esm-MN4BUYV6.js} +56 -54
- package/dist/{accounts-S747UW3A.js → accounts-2WZE4N5F.js} +5 -5
- package/dist/actions-LR65XILR.js +244 -0
- package/dist/{ccip-XZ5F5J6R.js → ccip-JXYJSXTW.js} +3 -3
- package/dist/{chains-PINFXYUE.js → chains-LJ7XK6H3.js} +8 -8
- package/dist/{chunk-YZUBKHHA.js → chunk-2VVVWBQA.js} +471 -471
- package/dist/chunk-3SWX5BQP.js +66 -0
- package/dist/chunk-3W2M46WM.js +61142 -0
- package/dist/chunk-4JXFXP4Y.js +757 -0
- package/dist/{chunk-GIDSTROG.js → chunk-4NWEJTAW.js} +160 -158
- package/dist/{chunk-UXQCP26E.js → chunk-65EY7CT4.js} +2 -2
- package/dist/{chunk-6UGZAFIR.js → chunk-6CC6JGEU.js} +348 -18
- package/dist/{chunk-PHZHPRQE.js → chunk-6O27TEXD.js} +173 -173
- package/dist/{chunk-HPRIQEJS.js → chunk-7OK7MBT6.js} +19 -19
- package/dist/{chunk-7UPZZGC5.js → chunk-BECPI5H5.js} +193 -193
- package/dist/chunk-CJTE5TS3.js +1298 -0
- package/dist/{chunk-RWBYCM47.js → chunk-ECEM3ZAS.js} +10 -10
- package/dist/{chunk-ACNNU5RY.js → chunk-ECK465AY.js} +694 -565
- package/dist/{chunk-XGABM4H5.js → chunk-EGY4KDBW.js} +3822 -2012
- package/dist/{chunk-SLDVIXCS.js → chunk-EVQERRCP.js} +12 -12
- package/dist/{chunk-4AQ4G7L5.js → chunk-EZHT2RLJ.js} +383 -383
- package/dist/{chunk-IC6OXFYW.js → chunk-F55NNH2F.js} +63 -63
- package/dist/chunk-G5C6E6PJ.js +9063 -0
- package/dist/{chunk-6AJ7H2VX.js → chunk-GZWKCIYN.js} +213 -1281
- package/dist/{chunk-ZGXCK43G.js → chunk-LH3QPVN6.js} +8499 -8498
- package/dist/{chunk-MMJR6N3J.js → chunk-MLDUKBU3.js} +1368 -1368
- package/dist/chunk-N3UJT2NJ.js +3 -0
- package/dist/{chunk-BZNZWRBB.js → chunk-OWJZYYMG.js} +11 -15
- package/dist/chunk-ZJYO7OLO.js +514 -0
- package/dist/{client-D3XFLWOK.js → client-OWIOFBKS.js} +18 -16
- package/dist/{dist-7MMV3EZA.js → dist-2G3QBGID.js} +11 -10
- package/dist/dvm.js +26781 -4423
- package/dist/esm-RQLHAH2K.js +5183 -0
- package/dist/internal-QFQ7MJ5V.js +1228 -0
- package/dist/payout-reporter-3UB5WRCV-XTVZFIAO.js +17 -0
- package/dist/{pocket-refill-GDYSTECR.js → pocket-refill-PQ5ZVSBY.js} +26 -30
- package/dist/revenue-reporter-JIKUPXOK-TYUBTF4P.js +11 -0
- package/dist/{secp256k1-4YWQEMGF.js → secp256k1-JLZEQ2H7.js} +2 -2
- package/dist/tempo-lifecycle-SQL3KLEZ-AATA2SKI.js +28 -0
- package/dist/{tempo-wallet-5FEOI4CF.js → tempo-wallet-QOLEIPCV-SWCXRBDS.js} +2 -4
- package/dist/{x402-VNFA3DBY.js → x402-FTG2GRAQ-UGAUMUL6.js} +13 -24
- package/package.json +2 -10
- package/dist/channel-store-GOV7TEDN.js +0 -62
- package/dist/chunk-3PPOU55E.js +0 -312
- package/dist/chunk-3TBULV3F.js +0 -551
- package/dist/chunk-5BUV73FO.js +0 -2351
- package/dist/chunk-EY5K4BM3.js +0 -1780
- package/dist/chunk-G3RLVJF5.js +0 -19
- package/dist/chunk-KC4UPK44.js +0 -113
- package/dist/chunk-MTBCEXJ6.js +0 -4602
- package/dist/chunk-ONQMRWY3.js +0 -83
- package/dist/chunk-TO47XRK7.js +0 -24890
- package/dist/chunk-U5TNSUYW.js +0 -1757
- package/dist/chunk-UU6QMSTQ.js +0 -171
- package/dist/chunk-ZELLQI7F.js +0 -248
- package/dist/lifecycle-5RLM5JMN.js +0 -29
- package/dist/tempo-lifecycle-DHZPQTSB.js +0 -31
- package/dist/wallet-G3VOUCL4.js +0 -30
|
@@ -9,38 +9,38 @@ import {
|
|
|
9
9
|
ripemd160,
|
|
10
10
|
serializeSignature,
|
|
11
11
|
serializeTransaction
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6O27TEXD.js";
|
|
13
13
|
import {
|
|
14
14
|
hmac,
|
|
15
15
|
mod,
|
|
16
16
|
secp256k1,
|
|
17
17
|
sha256,
|
|
18
18
|
sha512
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-65EY7CT4.js";
|
|
20
20
|
import {
|
|
21
21
|
InvalidAddressError,
|
|
22
|
-
bytesToHex,
|
|
23
|
-
hexToBytes,
|
|
22
|
+
bytesToHex as bytesToHex2,
|
|
23
|
+
hexToBytes as hexToBytes2,
|
|
24
24
|
isAddress,
|
|
25
25
|
isHex,
|
|
26
26
|
keccak256,
|
|
27
27
|
numberToHex,
|
|
28
28
|
toHex
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MLDUKBU3.js";
|
|
30
30
|
import {
|
|
31
31
|
abytes,
|
|
32
32
|
ahash,
|
|
33
33
|
anumber,
|
|
34
|
-
bytesToHex
|
|
34
|
+
bytesToHex,
|
|
35
35
|
checkOpts,
|
|
36
36
|
clean,
|
|
37
37
|
concatBytes,
|
|
38
38
|
createView,
|
|
39
|
-
hexToBytes
|
|
39
|
+
hexToBytes,
|
|
40
40
|
kdfInputToBytes,
|
|
41
41
|
randomBytes,
|
|
42
42
|
utf8ToBytes
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-7OK7MBT6.js";
|
|
44
44
|
|
|
45
45
|
// node_modules/viem/node_modules/@scure/base/lib/esm/index.js
|
|
46
46
|
function isBytes(a) {
|
|
@@ -333,13 +333,13 @@ var Point = secp256k1.ProjectivePoint;
|
|
|
333
333
|
var base58check = createBase58check(sha256);
|
|
334
334
|
function bytesToNumber(bytes) {
|
|
335
335
|
abytes(bytes);
|
|
336
|
-
const h = bytes.length === 0 ? "0" :
|
|
336
|
+
const h = bytes.length === 0 ? "0" : bytesToHex(bytes);
|
|
337
337
|
return BigInt("0x" + h);
|
|
338
338
|
}
|
|
339
339
|
function numberToBytes(num) {
|
|
340
340
|
if (typeof num !== "bigint")
|
|
341
341
|
throw new Error("bigint expected");
|
|
342
|
-
return
|
|
342
|
+
return hexToBytes(num.toString(16).padStart(64, "0"));
|
|
343
343
|
}
|
|
344
344
|
var MASTER_SECRET = utf8ToBytes("Bitcoin seed");
|
|
345
345
|
var BITCOIN_VERSIONS = { private: 76066276, public: 76067358 };
|
|
@@ -709,7 +709,7 @@ function setSignEntropy(entropy) {
|
|
|
709
709
|
async function sign({ hash, privateKey, to = "object" }) {
|
|
710
710
|
const { r, s, recovery } = secp256k1.sign(hash.slice(2), privateKey.slice(2), {
|
|
711
711
|
lowS: true,
|
|
712
|
-
extraEntropy: isHex(extraEntropy, { strict: false }) ?
|
|
712
|
+
extraEntropy: isHex(extraEntropy, { strict: false }) ? hexToBytes2(extraEntropy) : extraEntropy
|
|
713
713
|
});
|
|
714
714
|
const signature = {
|
|
715
715
|
r: numberToHex(r, { size: 32 }),
|
|
@@ -826,7 +826,7 @@ function mnemonicToAccount(mnemonic, { passphrase, ...hdKeyOpts } = {}) {
|
|
|
826
826
|
|
|
827
827
|
// node_modules/viem/_esm/accounts/utils/privateKeyToAddress.js
|
|
828
828
|
function privateKeyToAddress(privateKey) {
|
|
829
|
-
const publicKey =
|
|
829
|
+
const publicKey = bytesToHex2(secp256k1.getPublicKey(privateKey.slice(2), false));
|
|
830
830
|
return publicKeyToAddress(publicKey);
|
|
831
831
|
}
|
|
832
832
|
|