New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mysten/graphql-transport

Package Overview
Dependencies
Maintainers
0
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mysten/graphql-transport - npm Package Compare versions

Comparing version

to
0.0.0-experimental-20241017201428

9

CHANGELOG.md
# @mysten/graphql-transport
## 0.0.0-experimental-20241014175001
## 0.0.0-experimental-20241017201428
### Patch Changes
- Updated dependencies [477d2a4]
- @mysten/sui@0.0.0-experimental-20241017201428
## 0.2.23
### Patch Changes
- 5299c18: Update the GraphQL transport to account for the removal of recvAddress and the

@@ -8,0 +15,0 @@ introduction of affectedAddress.

@@ -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 = [];

4

package.json
{
"name": "@mysten/graphql-transport",
"version": "0.0.0-experimental-20241014175001",
"version": "0.0.0-experimental-20241017201428",
"description": "A GraphQL transport to allow SuiClient to work with RPC 2.0",

@@ -49,3 +49,3 @@ "license": "Apache-2.0",

"@mysten/bcs": "1.1.0",
"@mysten/sui": "1.12.0"
"@mysten/sui": "0.0.0-experimental-20241017201428"
},

@@ -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