@funkit/api-base 1.0.1 → 1.0.2-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare function randomBytes(length: number): `0x${string}`;
|
|
2
|
-
export declare function generateRandomCheckoutSalt():
|
|
2
|
+
export declare function generateRandomCheckoutSalt(): `0x${string}`;
|
|
3
3
|
export declare function roundToNearestBottomTenth(n: number): number;
|
|
@@ -12,7 +12,7 @@ function randomBytes(length) {
|
|
|
12
12
|
return (0, viem_1.toHex)(bytes);
|
|
13
13
|
}
|
|
14
14
|
function generateRandomCheckoutSalt() {
|
|
15
|
-
return BigInt(randomBytes(32));
|
|
15
|
+
return (0, viem_1.toHex)(BigInt(randomBytes(32)));
|
|
16
16
|
}
|
|
17
17
|
function roundToNearestBottomTenth(n) {
|
|
18
18
|
return Math.floor(n / 10) * 10;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout.js","sourceRoot":"","sources":["../../../src/utils/checkout.ts"],"names":[],"mappings":";;AAEA,kCAMC;AAED,gEAEC;AAED,8DAEC;AAhBD,+BAA4B;AAE5B,SAAgB,WAAW,CAAC,MAAc;IACxC,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAA;IAC5C,CAAC;IACD,OAAO,IAAA,YAAK,EAAC,KAAK,CAAC,CAAA;AACrB,CAAC;AAED,SAAgB,0BAA0B;IACxC,OAAO,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"checkout.js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