@iota/graphql-transport 0.9.2 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -53,6 +53,7 @@ __export(queries_exports, {
53
53
  GetTransactionBlockDocument: () => GetTransactionBlockDocument,
54
54
  GetTypeLayoutDocument: () => GetTypeLayoutDocument,
55
55
  GetValidatorsApyDocument: () => GetValidatorsApyDocument,
56
+ IsTransactionIndexedOnNodeDocument: () => IsTransactionIndexedOnNodeDocument,
56
57
  MoveAbility: () => MoveAbility,
57
58
  MoveVisibility: () => MoveVisibility,
58
59
  MultiGetObjectsDocument: () => MultiGetObjectsDocument,
@@ -84,6 +85,7 @@ __export(queries_exports, {
84
85
  TransactionBlockKindInput: () => TransactionBlockKindInput,
85
86
  TryGetPastObjectDocument: () => TryGetPastObjectDocument,
86
87
  TypedDocumentString: () => TypedDocumentString,
88
+ ViewDocument: () => ViewDocument,
87
89
  ZkLoginIntentScope: () => ZkLoginIntentScope
88
90
  });
89
91
  module.exports = __toCommonJS(queries_exports);
@@ -1575,7 +1577,7 @@ const GetTypeLayoutDocument = new TypedDocumentString(`
1575
1577
  }
1576
1578
  `);
1577
1579
  const GetDynamicFieldObjectDocument = new TypedDocumentString(`
1578
- query getDynamicFieldObject($parentId: IotaAddress!, $name: DynamicFieldName!) {
1580
+ query getDynamicFieldObject($parentId: IotaAddress!, $name: DynamicFieldName!, $showBcs: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showStorageRebate: Boolean = false) {
1579
1581
  owner(address: $parentId) {
1580
1582
  dynamicObjectField(name: $name) {
1581
1583
  value {
@@ -1588,8 +1590,13 @@ const GetDynamicFieldObjectDocument = new TypedDocumentString(`
1588
1590
  address
1589
1591
  digest
1590
1592
  version
1591
- storageRebate
1592
- owner {
1593
+ display @include(if: $showDisplay) {
1594
+ key
1595
+ value
1596
+ error
1597
+ }
1598
+ storageRebate @include(if: $showStorageRebate)
1599
+ owner @include(if: $showOwner) {
1593
1600
  __typename
1594
1601
  ... on Parent {
1595
1602
  parent {
@@ -1597,10 +1604,27 @@ const GetDynamicFieldObjectDocument = new TypedDocumentString(`
1597
1604
  }
1598
1605
  }
1599
1606
  }
1600
- previousTransactionBlock {
1607
+ previousTransactionBlock @include(if: $showPreviousTransaction) {
1601
1608
  digest
1602
1609
  }
1603
- asMoveObject {
1610
+ asMoveObject @include(if: $showType) {
1611
+ contents {
1612
+ type {
1613
+ repr
1614
+ }
1615
+ }
1616
+ }
1617
+ asMoveObject @include(if: $showContent) {
1618
+ contents {
1619
+ data
1620
+ type {
1621
+ repr
1622
+ layout
1623
+ signature
1624
+ }
1625
+ }
1626
+ }
1627
+ asMoveObject @include(if: $showBcs) {
1604
1628
  contents {
1605
1629
  data
1606
1630
  type {
@@ -2161,6 +2185,11 @@ const ResolveNameServiceNamesDocument = new TypedDocumentString(`
2161
2185
  }
2162
2186
  }
2163
2187
  `);
2188
+ const IsTransactionIndexedOnNodeDocument = new TypedDocumentString(`
2189
+ query IsTransactionIndexedOnNode($digest: String!) {
2190
+ isTransactionIndexedOnNode(digest: $digest)
2191
+ }
2192
+ `);
2164
2193
  const GetOwnedObjectsDocument = new TypedDocumentString(`
2165
2194
  query getOwnedObjects($owner: IotaAddress!, $limit: Int, $cursor: String, $showBcs: Boolean = false, $showContent: Boolean = false, $showDisplay: Boolean = false, $showType: Boolean = false, $showOwner: Boolean = false, $showPreviousTransaction: Boolean = false, $showStorageRebate: Boolean = false, $filter: ObjectFilter) {
2166
2195
  address(address: $owner) {
@@ -2990,4 +3019,16 @@ fragment PAGINATE_TRANSACTION_LISTS on TransactionBlock {
2990
3019
  }
2991
3020
  }
2992
3021
  }`);
3022
+ const ViewDocument = new TypedDocumentString(`
3023
+ query View($functionName: String!, $typeArgs: [String!], $arguments: [JSON!]) {
3024
+ moveViewCall(
3025
+ functionName: $functionName
3026
+ typeArgs: $typeArgs
3027
+ arguments: $arguments
3028
+ ) {
3029
+ error
3030
+ results
3031
+ }
3032
+ }
3033
+ `);
2993
3034
  //# sourceMappingURL=queries.js.map