@mysten/graphql-transport
Advanced tools
Comparing version 0.2.23 to 0.2.24
# @mysten/graphql-transport | ||
## 0.2.24 | ||
### Patch Changes | ||
- Updated dependencies [477d2a4] | ||
- @mysten/sui@1.13.0 | ||
## 0.2.23 | ||
@@ -4,0 +11,0 @@ |
@@ -66,6 +66,6 @@ "use strict"; | ||
})) ?? [], | ||
rawTransaction: options?.showRawInput ? transactionBlock.rawTransaction : void 0, | ||
rawTransaction: options?.showRawInput ? mapRawTransaction(transactionBlock) : void 0, | ||
...options?.showInput ? { | ||
transaction: transactionBlock.rawTransaction && mapTransactionBlockToInput( | ||
import_bcs2.bcs.TransactionData.parse((0, import_bcs.fromBase64)(transactionBlock.rawTransaction)), | ||
import_bcs2.bcs.TransactionData.fromBase64(transactionBlock.rawTransaction), | ||
transactionBlock.signatures | ||
@@ -77,2 +77,24 @@ ) | ||
} | ||
function mapRawTransaction(transactionBlock) { | ||
const txData = import_bcs2.bcs.TransactionData.fromBase64(transactionBlock.rawTransaction); | ||
return import_bcs2.bcs.SenderSignedData.serialize([ | ||
{ | ||
intentMessage: { | ||
intent: { | ||
scope: { | ||
TransactionData: true | ||
}, | ||
version: { | ||
V0: true | ||
}, | ||
appId: { | ||
Sui: true | ||
} | ||
}, | ||
value: txData | ||
}, | ||
txSignatures: transactionBlock.signatures?.map((sig) => (0, import_bcs.fromBase64)(sig)) ?? [] | ||
} | ||
]).toBase64(); | ||
} | ||
function mapObjectChanges(transactionBlock, effects) { | ||
@@ -79,0 +101,0 @@ const changes = []; |
@@ -40,6 +40,6 @@ import { fromBase64, toBase58 } from "@mysten/bcs"; | ||
})) ?? [], | ||
rawTransaction: options?.showRawInput ? transactionBlock.rawTransaction : void 0, | ||
rawTransaction: options?.showRawInput ? mapRawTransaction(transactionBlock) : void 0, | ||
...options?.showInput ? { | ||
transaction: transactionBlock.rawTransaction && mapTransactionBlockToInput( | ||
bcs.TransactionData.parse(fromBase64(transactionBlock.rawTransaction)), | ||
bcs.TransactionData.fromBase64(transactionBlock.rawTransaction), | ||
transactionBlock.signatures | ||
@@ -51,2 +51,24 @@ ) | ||
} | ||
function mapRawTransaction(transactionBlock) { | ||
const txData = bcs.TransactionData.fromBase64(transactionBlock.rawTransaction); | ||
return bcs.SenderSignedData.serialize([ | ||
{ | ||
intentMessage: { | ||
intent: { | ||
scope: { | ||
TransactionData: true | ||
}, | ||
version: { | ||
V0: true | ||
}, | ||
appId: { | ||
Sui: true | ||
} | ||
}, | ||
value: txData | ||
}, | ||
txSignatures: transactionBlock.signatures?.map((sig) => fromBase64(sig)) ?? [] | ||
} | ||
]).toBase64(); | ||
} | ||
function mapObjectChanges(transactionBlock, effects) { | ||
@@ -53,0 +75,0 @@ const changes = []; |
{ | ||
"name": "@mysten/graphql-transport", | ||
"version": "0.2.23", | ||
"version": "0.2.24", | ||
"description": "A GraphQL transport to allow SuiClient to work with RPC 2.0", | ||
@@ -48,4 +48,4 @@ "license": "Apache-2.0", | ||
"graphql": "^16.9.0", | ||
"@mysten/sui": "1.12.0", | ||
"@mysten/bcs": "1.1.0" | ||
"@mysten/bcs": "1.1.0", | ||
"@mysten/sui": "1.13.0" | ||
}, | ||
@@ -52,0 +52,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2219656
28135
+ Added@mysten/sui@1.13.0(transitive)
- Removed@mysten/sui@1.12.0(transitive)
Updated@mysten/sui@1.13.0