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-20241007192746 to 0.0.0-experimental-20241010194048

10

CHANGELOG.md
# @mysten/graphql-transport
## 0.0.0-experimental-20241007192746
## 0.0.0-experimental-20241010194048
### Patch Changes
- 4d63e50: Update GraphQL transport layer to accommodate change in schema
## 0.2.21
### Patch Changes
- Updated dependencies [5436a90]
- Updated dependencies [5436a90]
- @mysten/sui@0.0.0-experimental-20241007192746
- @mysten/sui@1.12.0

@@ -11,0 +17,0 @@ ## 0.2.20

163

dist/cjs/generated/queries.js

@@ -92,2 +92,3 @@ "use strict";

AddressTransactionBlockRelationship2["Recv"] = "RECV";
AddressTransactionBlockRelationship2["Sent"] = "SENT";
AddressTransactionBlockRelationship2["Sign"] = "SIGN";

@@ -110,2 +111,3 @@ return AddressTransactionBlockRelationship2;

Feature2["DynamicFields"] = "DYNAMIC_FIELDS";
Feature2["MoveRegistry"] = "MOVE_REGISTRY";
Feature2["NameService"] = "NAME_SERVICE";

@@ -132,3 +134,2 @@ Feature2["Subscriptions"] = "SUBSCRIPTIONS";

ObjectKind2["NotIndexed"] = "NOT_INDEXED";
ObjectKind2["WrappedOrDeleted"] = "WRAPPED_OR_DELETED";
return ObjectKind2;

@@ -572,7 +573,9 @@ })(ObjectKind || {});

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -660,7 +663,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -761,7 +766,9 @@ }`, { "fragmentName": "PAGINATE_TRANSACTION_LISTS" });

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -971,7 +978,9 @@ }`, { "fragmentName": "RPC_TRANSACTION_FIELDS" });

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -1080,7 +1089,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -1191,7 +1202,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -1358,3 +1371,3 @@ }

const GetCommitteeInfoDocument = new TypedDocumentString(`
query getCommitteeInfo($epochId: Int, $after: String) {
query getCommitteeInfo($epochId: UInt53, $after: String) {
epoch(id: $epochId) {

@@ -1459,3 +1472,3 @@ epochId

const PaginateEpochValidatorsDocument = new TypedDocumentString(`
query paginateEpochValidators($id: Int!, $after: String) {
query paginateEpochValidators($id: UInt53!, $after: String) {
epoch(id: $id) {

@@ -1546,26 +1559,28 @@ validatorSet {

parent {
address
digest
version
storageRebate
owner {
__typename
... on Parent {
parent {
address
asObject {
address
digest
version
storageRebate
owner {
__typename
... on Parent {
parent {
address
}
}
}
}
previousTransactionBlock {
digest
}
asMoveObject {
contents {
data
type {
repr
layout
previousTransactionBlock {
digest
}
asMoveObject {
contents {
data
type {
repr
layout
}
}
hasPublicTransfer
}
hasPublicTransfer
}

@@ -2042,3 +2057,3 @@ }

const GetProtocolConfigDocument = new TypedDocumentString(`
query getProtocolConfig($protocolVersion: Int) {
query getProtocolConfig($protocolVersion: UInt53) {
protocolConfig(protocolVersion: $protocolVersion) {

@@ -2269,3 +2284,3 @@ protocolVersion

const TryGetPastObjectDocument = new TypedDocumentString(`
query tryGetPastObject($id: SuiAddress!, $version: Int, $showBcs: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showStorageRebate: Boolean = false) {
query tryGetPastObject($id: SuiAddress!, $version: UInt53, $showBcs: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showStorageRebate: Boolean = false) {
current: object(address: $id) {

@@ -2453,7 +2468,9 @@ address

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2559,7 +2576,9 @@ }`);

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2665,7 +2684,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2783,7 +2804,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2889,7 +2912,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2896,0 +2921,0 @@ }

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

events: transactionBlock.effects?.events?.nodes.map((event) => ({
bcs: event.bcs,
bcs: event.contents.bcs,
id: {

@@ -61,7 +61,7 @@ eventSeq: "",

packageId: event.sendingModule?.package.address,
parsedJson: event.json ? JSON.parse(event.json) : void 0,
parsedJson: event.contents.json ? JSON.parse(event.contents.json) : void 0,
sender: event.sender?.address,
timestampMs: new Date(event.timestamp).getTime().toString(),
transactionModule: `${event.sendingModule?.package.address}::${event.sendingModule?.name}`,
type: (0, import_util.toShortTypeString)(event.type?.repr)
type: (0, import_util.toShortTypeString)(event.contents.type?.repr)
})) ?? [],

@@ -68,0 +68,0 @@ rawTransaction: options?.showRawInput ? transactionBlock.rawTransaction : void 0,

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

data: events.map((event) => ({
bcs: event.bcs,
bcs: event.contents.bcs,
id: {

@@ -739,7 +739,7 @@ eventSeq: "",

packageId: event.sendingModule?.package.address,
parsedJson: event.json ? JSON.parse(event.json) : void 0,
parsedJson: event.contents.json ? JSON.parse(event.contents.json) : void 0,
sender: event.sender?.address,
timestampMs: new Date(event.timestamp).getTime().toString(),
transactionModule: `${event.sendingModule?.package.address}::${event.sendingModule?.name}`,
type: (0, import_util.toShortTypeString)(event.type?.repr)
type: (0, import_util.toShortTypeString)(event.contents.type?.repr)
}))

@@ -848,3 +848,3 @@ };

(data) => {
return data.owner?.dynamicObjectField?.value?.__typename === "MoveObject" ? data.owner.dynamicObjectField.value.owner?.__typename === "Parent" ? data.owner.dynamicObjectField.value.owner.parent : void 0 : void 0;
return data.owner?.dynamicObjectField?.value?.__typename === "MoveObject" ? data.owner.dynamicObjectField.value.owner?.__typename === "Parent" ? data.owner.dynamicObjectField.value.owner.parent?.asObject : void 0 : void 0;
}

@@ -851,0 +851,0 @@ );

var AddressTransactionBlockRelationship = /* @__PURE__ */ ((AddressTransactionBlockRelationship2) => {
AddressTransactionBlockRelationship2["Recv"] = "RECV";
AddressTransactionBlockRelationship2["Sent"] = "SENT";
AddressTransactionBlockRelationship2["Sign"] = "SIGN";

@@ -20,2 +21,3 @@ return AddressTransactionBlockRelationship2;

Feature2["DynamicFields"] = "DYNAMIC_FIELDS";
Feature2["MoveRegistry"] = "MOVE_REGISTRY";
Feature2["NameService"] = "NAME_SERVICE";

@@ -42,3 +44,2 @@ Feature2["Subscriptions"] = "SUBSCRIPTIONS";

ObjectKind2["NotIndexed"] = "NOT_INDEXED";
ObjectKind2["WrappedOrDeleted"] = "WRAPPED_OR_DELETED";
return ObjectKind2;

@@ -482,7 +483,9 @@ })(ObjectKind || {});

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -570,7 +573,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -671,7 +676,9 @@ }`, { "fragmentName": "PAGINATE_TRANSACTION_LISTS" });

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -881,7 +888,9 @@ }`, { "fragmentName": "RPC_TRANSACTION_FIELDS" });

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -990,7 +999,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -1101,7 +1112,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -1268,3 +1281,3 @@ }

const GetCommitteeInfoDocument = new TypedDocumentString(`
query getCommitteeInfo($epochId: Int, $after: String) {
query getCommitteeInfo($epochId: UInt53, $after: String) {
epoch(id: $epochId) {

@@ -1369,3 +1382,3 @@ epochId

const PaginateEpochValidatorsDocument = new TypedDocumentString(`
query paginateEpochValidators($id: Int!, $after: String) {
query paginateEpochValidators($id: UInt53!, $after: String) {
epoch(id: $id) {

@@ -1456,26 +1469,28 @@ validatorSet {

parent {
address
digest
version
storageRebate
owner {
__typename
... on Parent {
parent {
address
asObject {
address
digest
version
storageRebate
owner {
__typename
... on Parent {
parent {
address
}
}
}
}
previousTransactionBlock {
digest
}
asMoveObject {
contents {
data
type {
repr
layout
previousTransactionBlock {
digest
}
asMoveObject {
contents {
data
type {
repr
layout
}
}
hasPublicTransfer
}
hasPublicTransfer
}

@@ -1952,3 +1967,3 @@ }

const GetProtocolConfigDocument = new TypedDocumentString(`
query getProtocolConfig($protocolVersion: Int) {
query getProtocolConfig($protocolVersion: UInt53) {
protocolConfig(protocolVersion: $protocolVersion) {

@@ -2179,3 +2194,3 @@ protocolVersion

const TryGetPastObjectDocument = new TypedDocumentString(`
query tryGetPastObject($id: SuiAddress!, $version: Int, $showBcs: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showStorageRebate: Boolean = false) {
query tryGetPastObject($id: SuiAddress!, $version: UInt53, $showBcs: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showStorageRebate: Boolean = false) {
current: object(address: $id) {

@@ -2363,7 +2378,9 @@ address

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2469,7 +2486,9 @@ }`);

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2575,7 +2594,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2693,7 +2714,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2799,7 +2822,9 @@ }

}
type {
repr
contents {
type {
repr
}
json
bcs
}
json
bcs
timestamp

@@ -2806,0 +2831,0 @@ }

@@ -26,3 +26,3 @@ import { fromBase64, toBase58 } from "@mysten/bcs";

events: transactionBlock.effects?.events?.nodes.map((event) => ({
bcs: event.bcs,
bcs: event.contents.bcs,
id: {

@@ -35,7 +35,7 @@ eventSeq: "",

packageId: event.sendingModule?.package.address,
parsedJson: event.json ? JSON.parse(event.json) : void 0,
parsedJson: event.contents.json ? JSON.parse(event.contents.json) : void 0,
sender: event.sender?.address,
timestampMs: new Date(event.timestamp).getTime().toString(),
transactionModule: `${event.sendingModule?.package.address}::${event.sendingModule?.name}`,
type: toShortTypeString(event.type?.repr)
type: toShortTypeString(event.contents.type?.repr)
})) ?? [],

@@ -42,0 +42,0 @@ rawTransaction: options?.showRawInput ? transactionBlock.rawTransaction : void 0,

@@ -755,3 +755,3 @@ import { fromBase64, toBase58 } from "@mysten/bcs";

data: events.map((event) => ({
bcs: event.bcs,
bcs: event.contents.bcs,
id: {

@@ -764,7 +764,7 @@ eventSeq: "",

packageId: event.sendingModule?.package.address,
parsedJson: event.json ? JSON.parse(event.json) : void 0,
parsedJson: event.contents.json ? JSON.parse(event.contents.json) : void 0,
sender: event.sender?.address,
timestampMs: new Date(event.timestamp).getTime().toString(),
transactionModule: `${event.sendingModule?.package.address}::${event.sendingModule?.name}`,
type: toShortTypeString(event.type?.repr)
type: toShortTypeString(event.contents.type?.repr)
}))

@@ -873,3 +873,3 @@ };

(data) => {
return data.owner?.dynamicObjectField?.value?.__typename === "MoveObject" ? data.owner.dynamicObjectField.value.owner?.__typename === "Parent" ? data.owner.dynamicObjectField.value.owner.parent : void 0 : void 0;
return data.owner?.dynamicObjectField?.value?.__typename === "MoveObject" ? data.owner.dynamicObjectField.value.owner?.__typename === "Parent" ? data.owner.dynamicObjectField.value.owner.parent?.asObject : void 0 : void 0;
}

@@ -876,0 +876,0 @@ );

{
"name": "@mysten/graphql-transport",
"version": "0.0.0-experimental-20241007192746",
"version": "0.0.0-experimental-20241010194048",
"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": "0.0.0-experimental-20241007192746"
"@mysten/sui": "1.12.0"
},

@@ -52,0 +52,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

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 too big to display

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