@chipi-stack/backend 14.13.0 → 14.14.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/dist/index.d.mts +245 -6
- package/dist/index.d.ts +245 -6
- package/dist/index.js +394 -104
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +386 -106
- package/dist/index.mjs.map +1 -1
- package/dist/skuPurchases.js +3 -3
- package/dist/skuPurchases.js.map +1 -1
- package/dist/skuPurchases.mjs +3 -3
- package/dist/skuPurchases.mjs.map +1 -1
- package/dist/transactions.d.mts +1 -1
- package/dist/transactions.d.ts +1 -1
- package/dist/transactions.js +3 -3
- package/dist/transactions.js.map +1 -1
- package/dist/transactions.mjs +3 -3
- package/dist/transactions.mjs.map +1 -1
- package/dist/wallets.js +2 -2
- package/dist/wallets.js.map +1 -1
- package/dist/wallets.mjs +2 -2
- package/dist/wallets.mjs.map +1 -1
- package/package.json +3 -3
package/dist/skuPurchases.mjs
CHANGED
|
@@ -60,7 +60,7 @@ function hashCall(call) {
|
|
|
60
60
|
return poseidonSpan([
|
|
61
61
|
CALL_TYPE_HASH_REV1,
|
|
62
62
|
toBigInt(call.contractAddress),
|
|
63
|
-
toBigInt(hash.
|
|
63
|
+
toBigInt(hash.getSelector(call.entrypoint)),
|
|
64
64
|
calldataHash
|
|
65
65
|
]);
|
|
66
66
|
}
|
|
@@ -304,7 +304,7 @@ function serializeExecuteFromOutsideV2Calldata(params) {
|
|
|
304
304
|
out.push(BigInt(oe.calls.length));
|
|
305
305
|
for (const call of oe.calls) {
|
|
306
306
|
out.push(BigInt(call.contractAddress));
|
|
307
|
-
out.push(BigInt(hash.
|
|
307
|
+
out.push(BigInt(hash.getSelector(call.entrypoint)));
|
|
308
308
|
const callData = Array.isArray(call.calldata) ? call.calldata : [];
|
|
309
309
|
out.push(BigInt(callData.length));
|
|
310
310
|
for (const datum of callData) {
|
|
@@ -684,7 +684,7 @@ var ChipiTransactions = class {
|
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
686
|
/**
|
|
687
|
-
* Sync on-chain transfers
|
|
687
|
+
* Sync on-chain transfers (Starknet Transfer events) into the DB (read-through cache).
|
|
688
688
|
* Discovers transactions not made through the SDK (e.g., external USDC receives).
|
|
689
689
|
* After sync, getTransactionList returns the newly discovered transactions.
|
|
690
690
|
*/
|