@midnight-ntwrk/wallet-sdk-indexer-client 1.2.0 → 1.2.2

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.
@@ -1,2 +1,2 @@
1
- export * from "./fragment-masking.js";
2
- export * from "./gql.js";
1
+ export * from './fragment-masking.js';
2
+ export * from './gql.js';
@@ -1,2 +1,2 @@
1
- export * from "./fragment-masking.js";
2
- export * from "./gql.js";
1
+ export * from './fragment-masking.js';
2
+ export * from './gql.js';
@@ -0,0 +1,6 @@
1
+ import { Query } from '../../effect/index.js';
2
+ export declare const TransactionHistoryDetail: Query.Query<import("../generated/graphql.js").TransactionHistoryDetailQuery, import("../generated/graphql.js").Exact<{
3
+ transactionHash: import("../generated/graphql.js").Scalars["HexEncoded"]["input"];
4
+ }>, Query.Query.QueryFn<import("../generated/graphql.js").TransactionHistoryDetailQuery, import("../generated/graphql.js").Exact<{
5
+ transactionHash: import("../generated/graphql.js").Scalars["HexEncoded"]["input"];
6
+ }>>>;
@@ -0,0 +1,30 @@
1
+ // This file is part of MIDNIGHT-WALLET-SDK.
2
+ // Copyright (C) Midnight Foundation
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // You may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { gql } from '../generated/index.js';
14
+ import { Query } from '../../effect/index.js';
15
+ export const TransactionHistoryDetail = Query.make('TransactionHistoryDetail', gql(`
16
+ query TransactionHistoryDetail($transactionHash: HexEncoded!) {
17
+ transactions(offset: {hash: $transactionHash}) {
18
+ __typename
19
+ hash
20
+ block {
21
+ timestamp
22
+ }
23
+ ... on RegularTransaction {
24
+ transactionResult {
25
+ status
26
+ }
27
+ }
28
+ }
29
+ }
30
+ `));
@@ -3,3 +3,4 @@ export * from './Disconnect.js';
3
3
  export * from './BlockHash.js';
4
4
  export * from './FetchTermsAndConditions.js';
5
5
  export * from './TransactionStatus.js';
6
+ export * from './TransactionHistoryDetail.js';
@@ -15,3 +15,4 @@ export * from './Disconnect.js';
15
15
  export * from './BlockHash.js';
16
16
  export * from './FetchTermsAndConditions.js';
17
17
  export * from './TransactionStatus.js';
18
+ export * from './TransactionHistoryDetail.js';
@@ -17,6 +17,7 @@ export const ZswapEvents = Subscription.make('ZswapEvents', gql(`
17
17
  zswapLedgerEvents(id: $id) {
18
18
  id
19
19
  raw
20
+ protocolVersion
20
21
  maxId
21
22
  }
22
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midnight-ntwrk/wallet-sdk-indexer-client",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,20 +28,20 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@graphql-typed-document-node/core": "^3.2.0",
31
- "@midnight-ntwrk/wallet-sdk-utilities": "1.1.0",
31
+ "@midnight-ntwrk/wallet-sdk-utilities": "^1.2.0",
32
32
  "effect": "^3.19.19",
33
33
  "graphql": "^16.13.0",
34
34
  "graphql-http": "^1.22.4",
35
35
  "graphql-ws": "^6.0.7"
36
36
  },
37
37
  "devDependencies": {
38
- "@graphql-codegen/cli": "^6.1.2",
39
- "@graphql-codegen/client-preset": "^5.2.3",
40
- "@graphql-codegen/typescript": "^5.0.8",
41
- "@graphql-codegen/typescript-operations": "^5.0.8"
38
+ "@graphql-codegen/cli": "^7.0.0",
39
+ "@graphql-codegen/client-preset": "^6.0.0",
40
+ "@graphql-codegen/typescript": "^6.0.0",
41
+ "@graphql-codegen/typescript-operations": "^6.0.0"
42
42
  },
43
43
  "scripts": {
44
- "gql:codegen": "graphql-codegen",
44
+ "gql:codegen": "graphql-codegen --clean --config codegen.ts",
45
45
  "typecheck": "tsc -b ./tsconfig.json --noEmit --force",
46
46
  "format": "prettier --write \"**/*.{ts,js,json,yaml,yml,md}\"",
47
47
  "format:check": "prettier --check \"**/*.{ts,js,json,yaml,yml,md}\"",