@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.js
CHANGED
|
@@ -66,7 +66,7 @@ function hashCall(call) {
|
|
|
66
66
|
return poseidonSpan([
|
|
67
67
|
CALL_TYPE_HASH_REV1,
|
|
68
68
|
toBigInt(call.contractAddress),
|
|
69
|
-
toBigInt(starknet.hash.
|
|
69
|
+
toBigInt(starknet.hash.getSelector(call.entrypoint)),
|
|
70
70
|
calldataHash
|
|
71
71
|
]);
|
|
72
72
|
}
|
|
@@ -310,7 +310,7 @@ function serializeExecuteFromOutsideV2Calldata(params) {
|
|
|
310
310
|
out.push(BigInt(oe.calls.length));
|
|
311
311
|
for (const call of oe.calls) {
|
|
312
312
|
out.push(BigInt(call.contractAddress));
|
|
313
|
-
out.push(BigInt(starknet.hash.
|
|
313
|
+
out.push(BigInt(starknet.hash.getSelector(call.entrypoint)));
|
|
314
314
|
const callData = Array.isArray(call.calldata) ? call.calldata : [];
|
|
315
315
|
out.push(BigInt(callData.length));
|
|
316
316
|
for (const datum of callData) {
|
|
@@ -690,7 +690,7 @@ var ChipiTransactions = class {
|
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
692
|
/**
|
|
693
|
-
* Sync on-chain transfers
|
|
693
|
+
* Sync on-chain transfers (Starknet Transfer events) into the DB (read-through cache).
|
|
694
694
|
* Discovers transactions not made through the SDK (e.g., external USDC receives).
|
|
695
695
|
* After sync, getTransactionList returns the newly discovered transactions.
|
|
696
696
|
*/
|