UNPKG

@mysten/sui

Version:

Sui TypeScript API(Work in Progress)

703 lines (702 loc) 14.3 kB
var AddressTransactionBlockRelationship = /* @__PURE__ */ ((AddressTransactionBlockRelationship2) => { AddressTransactionBlockRelationship2["Affected"] = "AFFECTED"; AddressTransactionBlockRelationship2["Sent"] = "SENT"; return AddressTransactionBlockRelationship2; })(AddressTransactionBlockRelationship || {}); var DomainFormat = /* @__PURE__ */ ((DomainFormat2) => { DomainFormat2["At"] = "AT"; DomainFormat2["Dot"] = "DOT"; return DomainFormat2; })(DomainFormat || {}); var ExecutionStatus = /* @__PURE__ */ ((ExecutionStatus2) => { ExecutionStatus2["Failure"] = "FAILURE"; ExecutionStatus2["Success"] = "SUCCESS"; return ExecutionStatus2; })(ExecutionStatus || {}); var Feature = /* @__PURE__ */ ((Feature2) => { Feature2["Analytics"] = "ANALYTICS"; Feature2["Coins"] = "COINS"; Feature2["DynamicFields"] = "DYNAMIC_FIELDS"; Feature2["MoveRegistry"] = "MOVE_REGISTRY"; Feature2["NameService"] = "NAME_SERVICE"; Feature2["Subscriptions"] = "SUBSCRIPTIONS"; Feature2["SystemState"] = "SYSTEM_STATE"; return Feature2; })(Feature || {}); var MoveAbility = /* @__PURE__ */ ((MoveAbility2) => { MoveAbility2["Copy"] = "COPY"; MoveAbility2["Drop"] = "DROP"; MoveAbility2["Key"] = "KEY"; MoveAbility2["Store"] = "STORE"; return MoveAbility2; })(MoveAbility || {}); var MoveVisibility = /* @__PURE__ */ ((MoveVisibility2) => { MoveVisibility2["Friend"] = "FRIEND"; MoveVisibility2["Private"] = "PRIVATE"; MoveVisibility2["Public"] = "PUBLIC"; return MoveVisibility2; })(MoveVisibility || {}); var ObjectKind = /* @__PURE__ */ ((ObjectKind2) => { ObjectKind2["Indexed"] = "INDEXED"; ObjectKind2["NotIndexed"] = "NOT_INDEXED"; return ObjectKind2; })(ObjectKind || {}); var StakeStatus = /* @__PURE__ */ ((StakeStatus2) => { StakeStatus2["Active"] = "ACTIVE"; StakeStatus2["Pending"] = "PENDING"; StakeStatus2["Unstaked"] = "UNSTAKED"; return StakeStatus2; })(StakeStatus || {}); var TransactionBlockKindInput = /* @__PURE__ */ ((TransactionBlockKindInput2) => { TransactionBlockKindInput2["ProgrammableTx"] = "PROGRAMMABLE_TX"; TransactionBlockKindInput2["SystemTx"] = "SYSTEM_TX"; return TransactionBlockKindInput2; })(TransactionBlockKindInput || {}); var ZkLoginIntentScope = /* @__PURE__ */ ((ZkLoginIntentScope2) => { ZkLoginIntentScope2["PersonalMessage"] = "PERSONAL_MESSAGE"; ZkLoginIntentScope2["TransactionData"] = "TRANSACTION_DATA"; return ZkLoginIntentScope2; })(ZkLoginIntentScope || {}); class TypedDocumentString extends String { constructor(value, __meta__) { super(value); this.value = value; this.__meta__ = __meta__; } toString() { return this.value; } } const Object_Owner_FieldsFragmentDoc = new TypedDocumentString(` fragment OBJECT_OWNER_FIELDS on ObjectOwner { __typename ... on AddressOwner { owner { asObject { address } asAddress { address } } } ... on Parent { parent { address } } ... on Shared { initialSharedVersion } ... on ConsensusV2 { authenticator { ... on Address { address } } } } `, { "fragmentName": "OBJECT_OWNER_FIELDS" }); const Object_FieldsFragmentDoc = new TypedDocumentString(` fragment OBJECT_FIELDS on Object { address digest version asMoveObject { contents { bcs type { repr } } } owner { ...OBJECT_OWNER_FIELDS } } fragment OBJECT_OWNER_FIELDS on ObjectOwner { __typename ... on AddressOwner { owner { asObject { address } asAddress { address } } } ... on Parent { parent { address } } ... on Shared { initialSharedVersion } ... on ConsensusV2 { authenticator { ... on Address { address } } } }`, { "fragmentName": "OBJECT_FIELDS" }); const Move_Object_FieldsFragmentDoc = new TypedDocumentString(` fragment MOVE_OBJECT_FIELDS on MoveObject { address digest version contents { bcs type { repr } } owner { ...OBJECT_OWNER_FIELDS } } fragment OBJECT_OWNER_FIELDS on ObjectOwner { __typename ... on AddressOwner { owner { asObject { address } asAddress { address } } } ... on Parent { parent { address } } ... on Shared { initialSharedVersion } ... on ConsensusV2 { authenticator { ... on Address { address } } } }`, { "fragmentName": "MOVE_OBJECT_FIELDS" }); const Transaction_FieldsFragmentDoc = new TypedDocumentString(` fragment TRANSACTION_FIELDS on TransactionBlock { digest bcs signatures effects { bcs unchangedSharedObjects { nodes { __typename ... on SharedObjectRead { object { asMoveObject { address contents { type { repr } } } } } } } objectChanges { nodes { address inputState { version asMoveObject { address contents { type { repr } } } } outputState { asMoveObject { address contents { type { repr } } } } } } } } `, { "fragmentName": "TRANSACTION_FIELDS" }); const GetAllBalancesDocument = new TypedDocumentString(` query getAllBalances($owner: SuiAddress!, $limit: Int, $cursor: String) { address(address: $owner) { balances(first: $limit, after: $cursor) { pageInfo { hasNextPage endCursor } nodes { coinType { repr } coinObjectCount totalBalance } } } } `); const GetBalanceDocument = new TypedDocumentString(` query getBalance($owner: SuiAddress!, $type: String = "0x2::sui::SUI") { address(address: $owner) { balance(type: $type) { coinType { repr } coinObjectCount totalBalance } } } `); const GetCoinsDocument = new TypedDocumentString(` query getCoins($owner: SuiAddress!, $first: Int, $cursor: String, $type: String = "0x2::sui::SUI") { address(address: $owner) { address coins(first: $first, after: $cursor, type: $type) { pageInfo { hasNextPage endCursor } nodes { coinBalance owner { ...OBJECT_OWNER_FIELDS } contents { bcs type { repr } } address version digest } } } } fragment OBJECT_OWNER_FIELDS on ObjectOwner { __typename ... on AddressOwner { owner { asObject { address } asAddress { address } } } ... on Parent { parent { address } } ... on Shared { initialSharedVersion } ... on ConsensusV2 { authenticator { ... on Address { address } } } }`); const GetDynamicFieldsDocument = new TypedDocumentString(` query getDynamicFields($parentId: SuiAddress!, $first: Int, $cursor: String) { owner(address: $parentId) { dynamicFields(first: $first, after: $cursor) { pageInfo { hasNextPage endCursor } nodes { name { bcs type { repr } } value { __typename ... on MoveValue { type { repr } } ... on MoveObject { contents { type { repr } } } } } } } } `); const GetReferenceGasPriceDocument = new TypedDocumentString(` query getReferenceGasPrice { epoch { referenceGasPrice } } `); const GetOwnedObjectsDocument = new TypedDocumentString(` query getOwnedObjects($owner: SuiAddress!, $limit: Int, $cursor: String, $filter: ObjectFilter) { address(address: $owner) { objects(first: $limit, after: $cursor, filter: $filter) { pageInfo { hasNextPage endCursor } nodes { ...MOVE_OBJECT_FIELDS } } } } fragment MOVE_OBJECT_FIELDS on MoveObject { address digest version contents { bcs type { repr } } owner { ...OBJECT_OWNER_FIELDS } } fragment OBJECT_OWNER_FIELDS on ObjectOwner { __typename ... on AddressOwner { owner { asObject { address } asAddress { address } } } ... on Parent { parent { address } } ... on Shared { initialSharedVersion } ... on ConsensusV2 { authenticator { ... on Address { address } } } }`); const MultiGetObjectsDocument = new TypedDocumentString(` query multiGetObjects($objectIds: [SuiAddress!]!, $limit: Int, $cursor: String) { objects(first: $limit, after: $cursor, filter: {objectIds: $objectIds}) { pageInfo { hasNextPage endCursor } nodes { ...OBJECT_FIELDS } } } fragment OBJECT_FIELDS on Object { address digest version asMoveObject { contents { bcs type { repr } } } owner { ...OBJECT_OWNER_FIELDS } } fragment OBJECT_OWNER_FIELDS on ObjectOwner { __typename ... on AddressOwner { owner { asObject { address } asAddress { address } } } ... on Parent { parent { address } } ... on Shared { initialSharedVersion } ... on ConsensusV2 { authenticator { ... on Address { address } } } }`); const DryRunTransactionBlockDocument = new TypedDocumentString(` query dryRunTransactionBlock($txBytes: String!) { dryRunTransactionBlock(txBytes: $txBytes) { error transaction { ...TRANSACTION_FIELDS } } } fragment TRANSACTION_FIELDS on TransactionBlock { digest bcs signatures effects { bcs unchangedSharedObjects { nodes { __typename ... on SharedObjectRead { object { asMoveObject { address contents { type { repr } } } } } } } objectChanges { nodes { address inputState { version asMoveObject { address contents { type { repr } } } } outputState { asMoveObject { address contents { type { repr } } } } } } } }`); const ExecuteTransactionBlockDocument = new TypedDocumentString(` mutation executeTransactionBlock($txBytes: String!, $signatures: [String!]!) { executeTransactionBlock(txBytes: $txBytes, signatures: $signatures) { errors effects { transactionBlock { ...TRANSACTION_FIELDS } } } } fragment TRANSACTION_FIELDS on TransactionBlock { digest bcs signatures effects { bcs unchangedSharedObjects { nodes { __typename ... on SharedObjectRead { object { asMoveObject { address contents { type { repr } } } } } } } objectChanges { nodes { address inputState { version asMoveObject { address contents { type { repr } } } } outputState { asMoveObject { address contents { type { repr } } } } } } } }`); const GetTransactionBlockDocument = new TypedDocumentString(` query getTransactionBlock($digest: String!) { transactionBlock(digest: $digest) { ...TRANSACTION_FIELDS } } fragment TRANSACTION_FIELDS on TransactionBlock { digest bcs signatures effects { bcs unchangedSharedObjects { nodes { __typename ... on SharedObjectRead { object { asMoveObject { address contents { type { repr } } } } } } } objectChanges { nodes { address inputState { version asMoveObject { address contents { type { repr } } } } outputState { asMoveObject { address contents { type { repr } } } } } } } }`); const VerifyZkLoginSignatureDocument = new TypedDocumentString(` query verifyZkLoginSignature($bytes: Base64!, $signature: Base64!, $intentScope: ZkLoginIntentScope!, $author: SuiAddress!) { verifyZkloginSignature( bytes: $bytes signature: $signature intentScope: $intentScope author: $author ) { success errors } } `); export { AddressTransactionBlockRelationship, DomainFormat, DryRunTransactionBlockDocument, ExecuteTransactionBlockDocument, ExecutionStatus, Feature, GetAllBalancesDocument, GetBalanceDocument, GetCoinsDocument, GetDynamicFieldsDocument, GetOwnedObjectsDocument, GetReferenceGasPriceDocument, GetTransactionBlockDocument, MoveAbility, MoveVisibility, Move_Object_FieldsFragmentDoc, MultiGetObjectsDocument, ObjectKind, Object_FieldsFragmentDoc, Object_Owner_FieldsFragmentDoc, StakeStatus, TransactionBlockKindInput, Transaction_FieldsFragmentDoc, TypedDocumentString, VerifyZkLoginSignatureDocument, ZkLoginIntentScope }; //# sourceMappingURL=queries.js.map