genlayer-js 0.11.0 → 0.11.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/CHANGELOG.md +9 -0
- package/dist/chains/index.cjs +2 -2
- package/dist/chains/index.js +1 -1
- package/dist/{chunk-565IJBV4.js → chunk-GEN4SJ6K.js} +32 -44
- package/dist/{chunk-N65Y4TC3.cjs → chunk-ZKBMABRA.cjs} +32 -44
- package/dist/{index-dnt5ldCd.d.ts → index-CfxRo4v6.d.ts} +1 -1
- package/dist/{index-BhRfI25e.d.cts → index-Det5WKeN.d.cts} +1 -1
- package/dist/index.cjs +32 -30
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -18
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/chains/testnetAsimov.ts +898 -910
- package/src/transactions/actions.ts +19 -17
- package/src/types/transactions.ts +1 -1
|
@@ -188,23 +188,25 @@ const _decodeLocalnetTransaction = (tx: GenLayerTransaction): GenLayerTransactio
|
|
|
188
188
|
try {
|
|
189
189
|
const leaderReceipt = tx.consensus_data?.leader_receipt;
|
|
190
190
|
if (leaderReceipt) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
191
|
+
const receipts = Array.isArray(leaderReceipt) ? leaderReceipt : [leaderReceipt];
|
|
192
|
+
receipts.forEach((receipt) => {
|
|
193
|
+
if (receipt.result && typeof receipt.result === "string") {
|
|
194
|
+
receipt.result = resultToUserFriendlyJson(receipt.result);
|
|
195
|
+
}
|
|
196
|
+
if (receipt.calldata && typeof receipt.calldata === "string") {
|
|
197
|
+
receipt.calldata = {
|
|
198
|
+
base64: receipt.calldata as string,
|
|
199
|
+
...calldataToUserFriendlyJson(b64ToArray(receipt.calldata as string)),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
if (receipt.eq_outputs) {
|
|
203
|
+
receipt.eq_outputs = Object.fromEntries(
|
|
204
|
+
Object.entries(receipt.eq_outputs).map(([key, value]) => {
|
|
205
|
+
return [key, resultToUserFriendlyJson(String(value))];
|
|
206
|
+
}),
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
208
210
|
}
|
|
209
211
|
if (tx.data?.calldata && typeof tx.data.calldata === "string") {
|
|
210
212
|
tx.data.calldata = {
|