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
169
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 0.0.0-experimental-20240924193256 to 0.0.0-experimental-20240926213518

13

CHANGELOG.md
# @mysten/graphql-transport
## 0.0.0-experimental-20240924193256
## 0.0.0-experimental-20240926213518
### Patch Changes
- Updated dependencies [489f421]
- Updated dependencies [489f421]
- @mysten/sui@0.0.0-experimental-20240926213518
- @mysten/bcs@0.0.0-experimental-20240926213518
## 0.2.19
### Patch Changes
- Updated dependencies [830b8d8]
- @mysten/sui@0.0.0-experimental-20240924193256
- @mysten/sui@1.10.0

@@ -10,0 +19,0 @@ ## 0.2.18

2

dist/cjs/mappers/bcs.js

@@ -69,4 +69,4 @@ "use strict";

const schema = layoutToBcs(layout);
return (0, import_bcs.toB64)(schema.serialize(json).toBytes());
return (0, import_bcs.toBase64)(schema.serialize(json).toBytes());
}
//# sourceMappingURL=bcs.js.map

@@ -47,3 +47,3 @@ "use strict";

...options?.showRawEffects ? {
rawEffects: transactionBlock.effects?.bcs ? Array.from((0, import_bcs.fromB64)(transactionBlock.effects?.bcs)) : void 0
rawEffects: transactionBlock.effects?.bcs ? Array.from((0, import_bcs.fromBase64)(transactionBlock.effects?.bcs)) : void 0
} : {},

@@ -70,3 +70,3 @@ effects: options?.showEffects ? effects : void 0,

transaction: transactionBlock.rawTransaction && mapTransactionBlockToInput(
import_bcs2.bcs.SenderSignedData.parse((0, import_bcs.fromB64)(transactionBlock.rawTransaction))[0]
import_bcs2.bcs.SenderSignedData.parse((0, import_bcs.fromBase64)(transactionBlock.rawTransaction))[0]
)

@@ -188,3 +188,3 @@ } : {},

type: "pure",
value: (0, import_bcs.fromB64)(input.Pure.bytes)
value: (0, import_bcs.fromBase64)(input.Pure.bytes)
};

@@ -306,8 +306,8 @@ }

}
const OBJECT_DIGEST_DELETED = (0, import_bcs.toB58)(Uint8Array.from({ length: 32 }, () => 99));
const OBJECT_DIGEST_WRAPPED = (0, import_bcs.toB58)(Uint8Array.from({ length: 32 }, () => 88));
const OBJECT_DIGEST_ZERO = (0, import_bcs.toB58)(Uint8Array.from({ length: 32 }, () => 0));
const OBJECT_DIGEST_DELETED = (0, import_bcs.toBase58)(Uint8Array.from({ length: 32 }, () => 99));
const OBJECT_DIGEST_WRAPPED = (0, import_bcs.toBase58)(Uint8Array.from({ length: 32 }, () => 88));
const OBJECT_DIGEST_ZERO = (0, import_bcs.toBase58)(Uint8Array.from({ length: 32 }, () => 0));
const ADDRESS_ZERO = (0, import_utils.normalizeSuiAddress)("0x0");
function mapEffects(data) {
const effects = import_bcs2.bcs.TransactionEffects.parse((0, import_bcs.fromB64)(data));
const effects = import_bcs2.bcs.TransactionEffects.parse((0, import_bcs.fromBase64)(data));
let effectsV1 = effects.V1;

@@ -314,0 +314,0 @@ if (effects.V2) {

@@ -783,3 +783,3 @@ "use strict";

},
Array.from((0, import_bcs.fromB64)(ref.bcs)),
Array.from((0, import_bcs.fromBase64)(ref.bcs)),
(0, import_util.toShortTypeString)(ref.type.repr)

@@ -789,3 +789,3 @@ ]

returnValues: result2.returnValues?.map((value) => [
Array.from((0, import_bcs.fromB64)(value.bcs)),
Array.from((0, import_bcs.fromBase64)(value.bcs)),
(0, import_util.toShortTypeString)(value.type.repr)

@@ -810,3 +810,3 @@ ])

data: fields.map((field) => ({
bcsName: field.name?.bcs && (0, import_bcs.toB58)((0, import_bcs.fromB64)(field.name.bcs)),
bcsName: field.name?.bcs && (0, import_bcs.toBase58)((0, import_bcs.fromBase64)(field.name.bcs)),
digest: field.value?.__typename === "MoveObject" ? field.value.digest : void 0,

@@ -893,3 +893,3 @@ name: {

if (!effects?.transactionBlock) {
const tx = import_transactions.Transaction.from((0, import_bcs.fromB64)(txBytes));
const tx = import_transactions.Transaction.from((0, import_bcs.fromBase64)(txBytes));
return { errors: errors ?? void 0, digest: await tx.getDigest() };

@@ -905,3 +905,3 @@ }

async dryRunTransactionBlock(transport, [txBytes]) {
const tx = import_transactions.Transaction.from((0, import_bcs.fromB64)(txBytes));
const tx = import_transactions.Transaction.from((0, import_bcs.fromBase64)(txBytes));
const { transaction, error } = await transport.graphqlQuery(

@@ -908,0 +908,0 @@ {

@@ -1,2 +0,2 @@

import { toB64 } from "@mysten/bcs";
import { toBase64 } from "@mysten/bcs";
import { bcs } from "@mysten/sui/bcs";

@@ -45,3 +45,3 @@ import { toShortTypeString } from "./util.js";

const schema = layoutToBcs(layout);
return toB64(schema.serialize(json).toBytes());
return toBase64(schema.serialize(json).toBytes());
}

@@ -48,0 +48,0 @@ export {

@@ -1,2 +0,2 @@

import { fromB64, toB58 } from "@mysten/bcs";
import { fromBase64, toBase58 } from "@mysten/bcs";
import { bcs } from "@mysten/sui/bcs";

@@ -21,3 +21,3 @@ import { normalizeSuiAddress } from "@mysten/sui/utils";

...options?.showRawEffects ? {
rawEffects: transactionBlock.effects?.bcs ? Array.from(fromB64(transactionBlock.effects?.bcs)) : void 0
rawEffects: transactionBlock.effects?.bcs ? Array.from(fromBase64(transactionBlock.effects?.bcs)) : void 0
} : {},

@@ -44,3 +44,3 @@ effects: options?.showEffects ? effects : void 0,

transaction: transactionBlock.rawTransaction && mapTransactionBlockToInput(
bcs.SenderSignedData.parse(fromB64(transactionBlock.rawTransaction))[0]
bcs.SenderSignedData.parse(fromBase64(transactionBlock.rawTransaction))[0]
)

@@ -162,3 +162,3 @@ } : {},

type: "pure",
value: fromB64(input.Pure.bytes)
value: fromBase64(input.Pure.bytes)
};

@@ -280,8 +280,8 @@ }

}
const OBJECT_DIGEST_DELETED = toB58(Uint8Array.from({ length: 32 }, () => 99));
const OBJECT_DIGEST_WRAPPED = toB58(Uint8Array.from({ length: 32 }, () => 88));
const OBJECT_DIGEST_ZERO = toB58(Uint8Array.from({ length: 32 }, () => 0));
const OBJECT_DIGEST_DELETED = toBase58(Uint8Array.from({ length: 32 }, () => 99));
const OBJECT_DIGEST_WRAPPED = toBase58(Uint8Array.from({ length: 32 }, () => 88));
const OBJECT_DIGEST_ZERO = toBase58(Uint8Array.from({ length: 32 }, () => 0));
const ADDRESS_ZERO = normalizeSuiAddress("0x0");
function mapEffects(data) {
const effects = bcs.TransactionEffects.parse(fromB64(data));
const effects = bcs.TransactionEffects.parse(fromBase64(data));
let effectsV1 = effects.V1;

@@ -288,0 +288,0 @@ if (effects.V2) {

@@ -1,2 +0,2 @@

import { fromB64, toB58 } from "@mysten/bcs";
import { fromBase64, toBase58 } from "@mysten/bcs";
import { Transaction } from "@mysten/sui/transactions";

@@ -808,3 +808,3 @@ import { normalizeStructTag, normalizeSuiAddress, parseStructTag } from "@mysten/sui/utils";

},
Array.from(fromB64(ref.bcs)),
Array.from(fromBase64(ref.bcs)),
toShortTypeString(ref.type.repr)

@@ -814,3 +814,3 @@ ]

returnValues: result2.returnValues?.map((value) => [
Array.from(fromB64(value.bcs)),
Array.from(fromBase64(value.bcs)),
toShortTypeString(value.type.repr)

@@ -835,3 +835,3 @@ ])

data: fields.map((field) => ({
bcsName: field.name?.bcs && toB58(fromB64(field.name.bcs)),
bcsName: field.name?.bcs && toBase58(fromBase64(field.name.bcs)),
digest: field.value?.__typename === "MoveObject" ? field.value.digest : void 0,

@@ -918,3 +918,3 @@ name: {

if (!effects?.transactionBlock) {
const tx = Transaction.from(fromB64(txBytes));
const tx = Transaction.from(fromBase64(txBytes));
return { errors: errors ?? void 0, digest: await tx.getDigest() };

@@ -930,3 +930,3 @@ }

async dryRunTransactionBlock(transport, [txBytes]) {
const tx = Transaction.from(fromB64(txBytes));
const tx = Transaction.from(fromBase64(txBytes));
const { transaction, error } = await transport.graphqlQuery(

@@ -933,0 +933,0 @@ {

{
"name": "@mysten/graphql-transport",
"version": "0.0.0-experimental-20240924193256",
"version": "0.0.0-experimental-20240926213518",
"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/bcs": "1.0.4",
"@mysten/sui": "0.0.0-experimental-20240924193256"
"@mysten/bcs": "0.0.0-experimental-20240926213518",
"@mysten/sui": "0.0.0-experimental-20240926213518"
},

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc