diff --git a/.lintstagedrc.js b/.lintstagedrc.js index cb97efc65..033af828f 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,5 +1,5 @@ module.exports = { - '**/*.(md|mdx|json|yml|yaml|html|css)': ['prettier --write'], + '**/*.(md|mdx|json|html|css)': ['prettier --write'], '*.{js,jsx,ts,tsx}': ['prettier --write', 'eslint --fix'], '.{ts,tsx}': ['tsc --noEmit'], }; diff --git a/.prettierignore b/.prettierignore index bf928e39e..907ed9ebd 100644 --- a/.prettierignore +++ b/.prettierignore @@ -19,3 +19,4 @@ storybook-static pnpm-lock.yaml .next graphql.schema.json +heml diff --git a/package.json b/package.json index 9aa012742..741f3a09b 100644 --- a/package.json +++ b/package.json @@ -60,12 +60,11 @@ }, "devDependencies": { "@fuels/tsup-config": "^0.0.11", + "@next/eslint-plugin-next": "^13.5.3", "@swc/core": "1.3.89", "@swc/jest": "0.2.29", "@types/jest": "29.5.5", "@types/node": "20.7.0", - "deepmerge-json": "1.5.0", - "@next/eslint-plugin-next": "^13.5.3", "@typescript-eslint/eslint-plugin": "^6.7.3", "@typescript-eslint/parser": "^6.7.3", "eslint": "^8.50.0", @@ -83,6 +82,7 @@ "husky": "^8.0.3", "npm-run-all": "^4.1.5", "prettier": "^3.0.3", + "ts-node": "10.9.1", "tsup": "7.2.0", "turbo": "^1.10.14", "typescript": "5.2.2", diff --git a/packages/app/.env.example b/packages/app/.env.example index efd85eb1d..037950fa5 100644 --- a/packages/app/.env.example +++ b/packages/app/.env.example @@ -1,2 +1,3 @@ -GRAPHQL_API=http://beta-4.fuel.network/graphql +FUEL_PROVIDER_URL=http://beta-4.fuel.network/graphql + diff --git a/packages/app/.env.production b/packages/app/.env.production new file mode 100644 index 000000000..e4dbc4235 --- /dev/null +++ b/packages/app/.env.production @@ -0,0 +1,2 @@ +FUEL_PROVIDER_URL=http://beta-4.fuel.network/graphql + diff --git a/packages/app/.gitignore b/packages/app/.gitignore index 371b45136..884dd54c1 100644 --- a/packages/app/.gitignore +++ b/packages/app/.gitignore @@ -1,2 +1,3 @@ public/storybook public/ui +src/graphql/generated diff --git a/packages/app/next-env.d.ts b/packages/app/next-env.d.ts index 4f11a03dc..fd36f9494 100644 --- a/packages/app/next-env.d.ts +++ b/packages/app/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/packages/app/next.config.mjs b/packages/app/next.config.mjs index bd8b33adb..27f06f715 100644 --- a/packages/app/next.config.mjs +++ b/packages/app/next.config.mjs @@ -2,10 +2,20 @@ const config = { reactStrictMode: true, swcMinify: true, + transpilePackages: ['@fuel-explorer/graphql'], experimental: { externalDir: true, - serverComponentsExternalPackages: ['bcryptjs'], + serverComponentsExternalPackages: [ + 'bcryptjs', + '@graphql-tools/delegate', + '@graphql-tools/load', + '@graphql-tools/schema', + '@graphql-tools/stitch', + '@graphql-tools/url-loader', + '@graphql-tools/utils', + ], serverActions: true, + esmExternals: true, }, /** We run eslint as a separate task in CI */ eslint: { @@ -19,7 +29,7 @@ const config = { ? [ { source: '/graphql', - destination: process.env.GRAPHQL_API, + destination: '/api/graphql', }, ] : []; @@ -38,6 +48,15 @@ const config = { }, ]; }, + webpack: (config) => { + config.module.rules.push({ + test: /\.(graphql|gql)/, + exclude: /node_modules/, + loader: 'graphql-tag/loader', + }); + + return config; + }, }; export default config; diff --git a/packages/app/package.json b/packages/app/package.json index aacb52b91..0bfbd3f06 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -27,10 +27,14 @@ "dayjs": "1.11.10", "framer-motion": "10.16.4", "fuels": "0.59.0", + "graphql": "16.8.1", "graphql-request": "6.1.0", + "graphql-tag": "2.12.6", + "graphql-yoga": "4.0.4", "next": "13.5.3", "react": "18.2.0", "react-dom": "18.2.0", + "tai64": "1.0.0", "tailwind-merge": "1.14.0", "tailwind-variants": "0.1.14", "zod": "3.22.2", diff --git a/packages/app/src/graphql.d.ts b/packages/app/src/graphql.d.ts new file mode 100644 index 000000000..a7eac6db2 --- /dev/null +++ b/packages/app/src/graphql.d.ts @@ -0,0 +1,5 @@ +declare module '*.graphql' { + import type { DocumentNode } from 'graphql'; + const Schema: DocumentNode; + export = Schema; +} diff --git a/packages/app/src/pages/api/graphql.ts b/packages/app/src/pages/api/graphql.ts new file mode 100644 index 000000000..70c256a05 --- /dev/null +++ b/packages/app/src/pages/api/graphql.ts @@ -0,0 +1,17 @@ +import { createSchema } from '@fuel-explorer/graphql'; +import { createYoga } from 'graphql-yoga'; + +export const config = { + api: { + // Disable body parsing (required for file uploads) + bodyParser: false, + }, +}; + +const schema = createSchema(process.env.FUEL_PROVIDER_URL!); + +export default createYoga({ + schema, + // Needed to be defined explicitly because our endpoint lives at a different path other than `/graphql` + graphqlEndpoint: '/api/graphql', +}); diff --git a/packages/app/src/systems/Core/utils/sdk.ts b/packages/app/src/systems/Core/utils/sdk.ts index 3aa0db9dc..3194445e8 100644 --- a/packages/app/src/systems/Core/utils/sdk.ts +++ b/packages/app/src/systems/Core/utils/sdk.ts @@ -1,5 +1,16 @@ import { getSdk } from '@fuel-explorer/graphql'; import { GraphQLClient } from 'graphql-request'; +import { resolve } from 'url'; -const graphql = new GraphQLClient(process.env.GRAPHQL_API!); -export const sdk = getSdk(graphql); +const VERCEL_URL = process.env.VERCEL_URL || process.env.NEXT_PUBLIC_VERCEL_URL; +const VERCEL_ENV = + process.env.VERCEL_ENV || process.env.NEXT_PUBLIC_VERCEL_ENV || 'development'; + +const getBaseUrl = () => { + if (VERCEL_ENV !== 'development') return `https://${VERCEL_URL}`; + return 'http://localhost:3000'; +}; + +const API_URL = resolve(getBaseUrl(), '/api/graphql'); +const client = new GraphQLClient(API_URL); +export const sdk = getSdk(client); diff --git a/packages/app/src/systems/Transaction/component/__mocks__/tx.ts b/packages/app/src/systems/Transaction/component/__mocks__/tx.ts new file mode 100644 index 000000000..47b0e298e --- /dev/null +++ b/packages/app/src/systems/Transaction/component/__mocks__/tx.ts @@ -0,0 +1,26 @@ +import { mocks } from '@fuel-explorer/graphql'; +import { bn } from '@fuel-ts/math'; +import { dayjs } from '~/systems/Core/utils/dayjs'; + +const status = mocks.aSuccessStatus({ + __typename: 'SuccessStatus', + block: mocks.aBlock({ + transactions: [], + }), +}); + +const date = dayjs().subtract(1, 'day'); + +export const TX_MOCK = mocks.aTransaction({ + id: '0x78d13f111bf301324f34f2a7eaffc546d39598d156af38e7c4ef9fe61ea2c46a', + time: { + __typename: 'ParsedTime', + fromNow: date.fromNow(), + full: dayjs().format('DD MMM YYYY - HH:mm:ss A'), + }, + totalAccounts: 2, + totalAssets: 3, + totalOperations: 4, + gasUsed: bn(1), + status, +}); diff --git a/packages/app/tsconfig.json b/packages/app/tsconfig.json index 37b9149f9..54fb64e65 100644 --- a/packages/app/tsconfig.json +++ b/packages/app/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "plugins": [{ "name": "next" }], + "plugins": [ + { + "name": "next" + } + ], "allowJs": true, "noEmit": true, "lib": ["dom"], @@ -17,11 +21,13 @@ "@react-aria/interactions": [ "../../node_modules/@react-aria/interactions" ] - } + }, + "strictNullChecks": true }, "include": [ "next-env.d.ts", ".next/types/**/*.ts", + "./src/generated", "src", ".storybook", "*.config.*" diff --git a/packages/graphql/.babelrc b/packages/graphql/.babelrc new file mode 100644 index 000000000..d8cf9c8f5 --- /dev/null +++ b/packages/graphql/.babelrc @@ -0,0 +1,4 @@ +{ + "presets": ["@babel/preset-env", "@babel/preset-typescript"], + "plugins": ["import-graphql"] +} diff --git a/packages/graphql/.env.example b/packages/graphql/.env.example index a9438ce5e..d35912e92 100644 --- a/packages/graphql/.env.example +++ b/packages/graphql/.env.example @@ -1 +1 @@ -FUEL_PROVIDER_URL=http://beta-4.fuel.network/graphql \ No newline at end of file +FUEL_PROVIDER_URL=http://beta-4.fuel.network/graphql diff --git a/packages/graphql/codegen.ts b/packages/graphql/codegen.ts index 14ef90c30..1d53c27c6 100644 --- a/packages/graphql/codegen.ts +++ b/packages/graphql/codegen.ts @@ -5,7 +5,7 @@ const config: CodegenConfig = { schema: './src/schemas/fullschema.graphql', documents: ['./src/queries/**.graphql'], generates: { - 'src/generated/graphql.ts': { + 'src/generated/types.ts': { plugins: [ 'typescript', 'typescript-operations', @@ -21,7 +21,7 @@ const config: CodegenConfig = { plugins: ['typescript-mock-data'], config: { addTypename: true, - typesFile: './graphql.ts', + typesFile: './types.ts', typesNames: 'keep', scalars: { Tai64Timestamp: 'unix_time', diff --git a/packages/graphql/graphql.schema.json b/packages/graphql/graphql.schema.json deleted file mode 100644 index 2a5fc92d5..000000000 --- a/packages/graphql/graphql.schema.json +++ /dev/null @@ -1,6701 +0,0 @@ -{ - "__schema": { - "queryType": { - "name": "Query" - }, - "mutationType": { - "name": "Mutation" - }, - "subscriptionType": { - "name": "Subscription" - }, - "types": [ - { - "kind": "SCALAR", - "name": "Address", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "AssetId", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Balance", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "owner", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BalanceConnection", - "description": null, - "fields": [ - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BalanceEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nodes", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Balance", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BalanceEdge", - "description": null, - "fields": [ - { - "name": "cursor", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "node", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Balance", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "BalanceFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "owner", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Block", - "description": null, - "fields": [ - { - "name": "consensus", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "Consensus", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "header", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Header", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "BlockId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactions", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Transaction", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BlockConnection", - "description": null, - "fields": [ - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BlockEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nodes", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Block", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BlockEdge", - "description": null, - "fields": [ - { - "name": "cursor", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "node", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Block", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "BlockId", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Boolean", - "description": "The `Boolean` scalar type represents `true` or `false`.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Bytes32", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChainInfo", - "description": null, - "fields": [ - { - "name": "baseChainHeight", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "consensusParameters", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ConsensusParameters", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "latestBlock", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Block", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "peerCount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ChangeOutput", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "to", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Coin", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "blockCreated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maturity", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "owner", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "CoinStatus", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "utxoId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UtxoId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CoinConnection", - "description": null, - "fields": [ - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CoinEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nodes", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Coin", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CoinEdge", - "description": null, - "fields": [ - { - "name": "cursor", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "node", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Coin", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "CoinFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "assetId", - "description": null, - "type": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "owner", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "CoinOutput", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "to", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "CoinStatus", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "SPENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNSPENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "Consensus", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "Genesis", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "PoAConsensus", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "ConsensusParameters", - "description": null, - "fields": [ - { - "name": "contractMaxSize", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gasPerByte", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gasPriceFactor", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxGasPerTx", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxInputs", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxMessageDataLength", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxOutputs", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxPredicateDataLength", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxPredicateLength", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxScriptDataLength", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxScriptLength", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxStorageSlots", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxWitnesses", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Contract", - "description": null, - "fields": [ - { - "name": "bytecode", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ContractId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "salt", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Salt", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ContractBalance", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contract", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ContractId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ContractBalanceConnection", - "description": null, - "fields": [ - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContractBalanceEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nodes", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContractBalance", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ContractBalanceEdge", - "description": null, - "fields": [ - { - "name": "cursor", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "node", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContractBalance", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ContractBalanceFilterInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "contract", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ContractId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ContractCreated", - "description": null, - "fields": [ - { - "name": "contract", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Contract", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stateRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "ContractId", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ContractOutput", - "description": null, - "fields": [ - { - "name": "balanceRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputIndex", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stateRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "ExcludeInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "messages", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "MessageId", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "utxos", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UtxoId", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "FailureStatus", - "description": null, - "fields": [ - { - "name": "block", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Block", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "programState", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProgramState", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reason", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "time", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Tai64Timestamp", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Genesis", - "description": null, - "fields": [ - { - "name": "chainConfigHash", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "coinsRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contractsRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "messagesRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Header", - "description": null, - "fields": [ - { - "name": "applicationHash", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "daHeight", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "height", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "BlockId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "outputMessagesCount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "outputMessagesRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "prevRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "time", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Tai64Timestamp", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionsCount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionsRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "HexString", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "Input", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "InputCoin", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "InputContract", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "InputMessage", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "InputCoin", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maturity", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "owner", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "predicate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "predicateData", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "txPointer", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "TxPointer", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "utxoId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UtxoId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "witnessIndex", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InputContract", - "description": null, - "fields": [ - { - "name": "balanceRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contract", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Contract", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "stateRoot", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "txPointer", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "TxPointer", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "utxoId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UtxoId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "InputMessage", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "data", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "messageId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "MessageId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nonce", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "predicate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "predicateData", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sender", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "witnessIndex", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Int", - "description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Message", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "daHeight", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "data", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "messageId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "MessageId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nonce", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sender", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "MessageStatus", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MessageConnection", - "description": null, - "fields": [ - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MessageEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nodes", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Message", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MessageEdge", - "description": null, - "fields": [ - { - "name": "cursor", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "node", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Message", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "MessageId", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MessageOutput", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "MessageProof", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "data", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "header", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Header", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nonce", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "proofIndex", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "proofSet", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sender", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "signature", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Signature", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "MessageStatus", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "SPENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNSPENT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Mutation", - "description": null, - "fields": [ - { - "name": "dryRun", - "description": null, - "args": [ - { - "name": "tx", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "utxoValidation", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Receipt", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "produceBlocks", - "description": null, - "args": [ - { - "name": "blocksToProduce", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "time", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "TimeParameters", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "submit", - "description": null, - "args": [ - { - "name": "tx", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Transaction", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "NodeInfo", - "description": null, - "fields": [ - { - "name": "maxDepth", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maxTx", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "minGasPrice", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nodeVersion", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "utxoValidation", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "vmBacktrace", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "Output", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "ChangeOutput", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "CoinOutput", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ContractCreated", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "ContractOutput", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "MessageOutput", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "VariableOutput", - "ofType": null - } - ] - }, - { - "kind": "OBJECT", - "name": "PageInfo", - "description": null, - "fields": [ - { - "name": "endCursor", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "hasNextPage", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "hasPreviousPage", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startCursor", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "PoAConsensus", - "description": null, - "fields": [ - { - "name": "signature", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Signature", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ProgramState", - "description": null, - "fields": [ - { - "name": "data", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "returnType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ReturnType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Query", - "description": null, - "fields": [ - { - "name": "balance", - "description": null, - "args": [ - { - "name": "assetId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "owner", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Balance", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "balances", - "description": null, - "args": [ - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "BalanceFilterInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BalanceConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "block", - "description": null, - "args": [ - { - "name": "height", - "description": null, - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "type": { - "kind": "SCALAR", - "name": "BlockId", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Block", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "blocks", - "description": null, - "args": [ - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BlockConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "chain", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ChainInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "coin", - "description": null, - "args": [ - { - "name": "utxoId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "UtxoId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Coin", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "coins", - "description": null, - "args": [ - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "CoinFilterInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CoinConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contract", - "description": null, - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ContractId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Contract", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contractBalance", - "description": null, - "args": [ - { - "name": "asset", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contract", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ContractId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContractBalance", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contractBalances", - "description": null, - "args": [ - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ContractBalanceFilterInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ContractBalanceConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "health", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "messageProof", - "description": null, - "args": [ - { - "name": "messageId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "MessageId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "TransactionId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "MessageProof", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "messages", - "description": null, - "args": [ - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "owner", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "MessageConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nodeInfo", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "NodeInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "resourcesToSpend", - "description": null, - "args": [ - { - "name": "excludedIds", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "ExcludeInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "owner", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "queryPerAsset", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "SpendQueryElementInput", - "ofType": null - } - } - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "Resource", - "ofType": null - } - } - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transaction", - "description": null, - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "TransactionId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "OBJECT", - "name": "Transaction", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactions", - "description": null, - "args": [ - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "transactionsByOwner", - "description": null, - "args": [ - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "owner", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Receipt", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetId", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contract", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Contract", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "contractId", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "ContractId", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "data", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "digest", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gas", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gasUsed", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "is", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "len", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "messageId", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "MessageId", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nonce", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "param1", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "param2", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pc", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ptr", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ra", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rawPayload", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rb", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rc", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rd", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "reason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "receiptType", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "ReceiptType", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "recipient", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "result", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sender", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "to", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "Contract", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "toAddress", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "val", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "ReceiptType", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "CALL", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LOG", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LOG_DATA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MESSAGE_OUT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PANIC", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RETURN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RETURN_DATA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REVERT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCRIPT_RESULT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSFER", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "TRANSFER_OUT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "Resource", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "Coin", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "Message", - "ofType": null - } - ] - }, - { - "kind": "ENUM", - "name": "ReturnType", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "RETURN", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RETURN_DATA", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "REVERT", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Salt", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Signature", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "SpendQueryElementInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "amount", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "max", - "description": null, - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SqueezedOutStatus", - "description": null, - "fields": [ - { - "name": "reason", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "String", - "description": "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SubmittedStatus", - "description": null, - "fields": [ - { - "name": "time", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Tai64Timestamp", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Subscription", - "description": null, - "fields": [ - { - "name": "statusChange", - "description": null, - "args": [ - { - "name": "id", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "TransactionId", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "TransactionStatus", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "SuccessStatus", - "description": null, - "fields": [ - { - "name": "block", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Block", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "programState", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "ProgramState", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "time", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Tai64Timestamp", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "Tai64Timestamp", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "INPUT_OBJECT", - "name": "TimeParameters", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "blockTimeInterval", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "startTime", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "Transaction", - "description": null, - "fields": [ - { - "name": "bytecodeLength", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "bytecodeWitnessIndex", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gasLimit", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "gasPrice", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "TransactionId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputAssetIds", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputContracts", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Contract", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputs", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "Input", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isCreate", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isMint", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isScript", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "maturity", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "outputs", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "Output", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "rawPayload", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "receipts", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Receipt", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "receiptsRoot", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Bytes32", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "salt", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "Salt", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "script", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "scriptData", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "args": [], - "type": { - "kind": "UNION", - "name": "TransactionStatus", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "storageSlots", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "txPointer", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "TxPointer", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "witnesses", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "HexString", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionConnection", - "description": null, - "fields": [ - { - "name": "edges", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "TransactionEdge", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "nodes", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Transaction", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "pageInfo", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "PageInfo", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "TransactionEdge", - "description": null, - "fields": [ - { - "name": "cursor", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "node", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "Transaction", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "TransactionId", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "UNION", - "name": "TransactionStatus", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "FailureStatus", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SqueezedOutStatus", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SubmittedStatus", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "SuccessStatus", - "ofType": null - } - ] - }, - { - "kind": "SCALAR", - "name": "TxPointer", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "U64", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "SCALAR", - "name": "UtxoId", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "VariableOutput", - "description": null, - "fields": [ - { - "name": "amount", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "U64", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "assetId", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "AssetId", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "to", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Address", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Directive", - "description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isRepeatable", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "locations", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "__DirectiveLocation", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "args", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "__DirectiveLocation", - "description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "QUERY", - "description": "Location adjacent to a query operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "MUTATION", - "description": "Location adjacent to a mutation operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SUBSCRIPTION", - "description": "Location adjacent to a subscription operation.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIELD", - "description": "Location adjacent to a field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FRAGMENT_DEFINITION", - "description": "Location adjacent to a fragment definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FRAGMENT_SPREAD", - "description": "Location adjacent to a fragment spread.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INLINE_FRAGMENT", - "description": "Location adjacent to an inline fragment.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "VARIABLE_DEFINITION", - "description": "Location adjacent to a variable definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCHEMA", - "description": "Location adjacent to a schema definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SCALAR", - "description": "Location adjacent to a scalar definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBJECT", - "description": "Location adjacent to an object type definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FIELD_DEFINITION", - "description": "Location adjacent to a field definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ARGUMENT_DEFINITION", - "description": "Location adjacent to an argument definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INTERFACE", - "description": "Location adjacent to an interface definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNION", - "description": "Location adjacent to a union definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM", - "description": "Location adjacent to an enum definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM_VALUE", - "description": "Location adjacent to an enum value definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_OBJECT", - "description": "Location adjacent to an input object type definition.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_FIELD_DEFINITION", - "description": "Location adjacent to an input object field definition.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__EnumValue", - "description": "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Field", - "description": "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "args", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__InputValue", - "description": "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.", - "fields": [ - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "type", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "defaultValue", - "description": "A GraphQL-formatted string representing the default value for this input value.", - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "isDeprecated", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "deprecationReason", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Schema", - "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.", - "fields": [ - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "types", - "description": "A list of all types supported by this server.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "queryType", - "description": "The type that query operations will be rooted at.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "mutationType", - "description": "If this server supports mutation, the type that mutation operations will be rooted at.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "subscriptionType", - "description": "If this server support subscription, the type that subscription operations will be rooted at.", - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "directives", - "description": "A list of all directives supported by this server.", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Directive", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "__Type", - "description": "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.", - "fields": [ - { - "name": "kind", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "__TypeKind", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "name", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "description", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "specifiedByURL", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fields", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Field", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "interfaces", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "possibleTypes", - "description": null, - "args": [], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "enumValues", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__EnumValue", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "inputFields", - "description": null, - "args": [ - { - "name": "includeDeprecated", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "__InputValue", - "ofType": null - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ofType", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "__Type", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "__TypeKind", - "description": "An enum describing what kind of type a given `__Type` is.", - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "SCALAR", - "description": "Indicates this type is a scalar.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "OBJECT", - "description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INTERFACE", - "description": "Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "UNION", - "description": "Indicates this type is a union. `possibleTypes` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "ENUM", - "description": "Indicates this type is an enum. `enumValues` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "INPUT_OBJECT", - "description": "Indicates this type is an input object. `inputFields` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "LIST", - "description": "Indicates this type is a list. `ofType` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "NON_NULL", - "description": "Indicates this type is a non-null. `ofType` is a valid field.", - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - } - ], - "directives": [ - { - "name": "deprecated", - "description": "Marks an element of a GraphQL schema as no longer supported.", - "isRepeatable": false, - "locations": [ - "ARGUMENT_DEFINITION", - "ENUM_VALUE", - "FIELD_DEFINITION", - "INPUT_FIELD_DEFINITION" - ], - "args": [ - { - "name": "reason", - "description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).", - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": "\"No longer supported\"", - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "include", - "description": "Directs the executor to include this field or fragment only when the `if` argument is true.", - "isRepeatable": false, - "locations": [ - "FIELD", - "FRAGMENT_SPREAD", - "INLINE_FRAGMENT" - ], - "args": [ - { - "name": "if", - "description": "Included when true.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "skip", - "description": "Directs the executor to skip this field or fragment when the `if` argument is true.", - "isRepeatable": false, - "locations": [ - "FIELD", - "FRAGMENT_SPREAD", - "INLINE_FRAGMENT" - ], - "args": [ - { - "name": "if", - "description": "Skipped when true.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - }, - { - "name": "specifiedBy", - "description": "Exposes a URL that specifies the behavior of this scalar.", - "isRepeatable": false, - "locations": [ - "SCALAR" - ], - "args": [ - { - "name": "url", - "description": "The URL that specifies the behavior of this scalar.", - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ] - } - ] - } -} \ No newline at end of file diff --git a/packages/graphql/package.json b/packages/graphql/package.json index a230d919e..0d754c093 100644 --- a/packages/graphql/package.json +++ b/packages/graphql/package.json @@ -5,19 +5,16 @@ "private": true, "author": "Fuel Labs (https://fuel.network/)", "license": "Apache-2.0", - "main": "./dist/index.cjs.js", - "module": "./dist/index.cjs.js", - "types": "./dist/index.d.ts", - "typings": "./dist/index.d.ts", + "main": "./src/index.ts", + "types": "./src/index.ts", + "typings": "./src/index.ts", "scripts": { - "build": "pnpm codegen && tsup", + "dev": "node -r babel-register-ts src/bin.ts", + "start": "pnpm dev", "codegen": "gql-gen --config codegen.ts", "codegen:schema": "gql-gen --config codegen.schema.ts", - "dev": "ts-node-dev -r tsconfig-paths/register --transpile-only --watch ./src/**/*, src/bin.ts", "fix:generated": "node ./scripts/fix-generated.mjs", - "lint": "eslint .", - "prepare": "pnpm build", - "start": "ts-node -r tsconfig-paths/register --transpile-only src/bin.ts" + "prepare": "pnpm codegen" }, "dependencies": { "@fuel-ts/math": "0.59.0", @@ -41,6 +38,10 @@ "typescript": "^5.2.2" }, "devDependencies": { + "@babel/cli": "7.23.0", + "@babel/core": "^7.23.0", + "@babel/preset-env": "7.22.20", + "@babel/preset-typescript": "7.23.0", "@fuels/ts-config": "^0.0.11", "@graphql-codegen/cli": "5.0.0", "@graphql-codegen/introspection": "4.0.0", @@ -52,6 +53,8 @@ "@types/express": "^4.17.18", "@types/lodash": "4.14.199", "@types/node": "^20.7.0", + "babel-plugin-import-graphql": "2.8.1", + "babel-register-ts": "7.0.0", "graphql-codegen-typescript-common": "0.18.2", "graphql-codegen-typescript-mock-data": "3.5.0", "ts-node": "^10.9.1", diff --git a/packages/graphql/scripts/fix-generated.mjs b/packages/graphql/scripts/fix-generated.mjs index 71a2ab088..3a8f29b5c 100644 --- a/packages/graphql/scripts/fix-generated.mjs +++ b/packages/graphql/scripts/fix-generated.mjs @@ -3,7 +3,7 @@ import path from 'node:path'; import * as url from 'url'; const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); -const TYPES_FILE = path.resolve(__dirname, '../src/generated/graphql.ts'); +const TYPES_FILE = path.resolve(__dirname, '../src/generated/types.ts'); const MOCKS_FILE = path.resolve(__dirname, '../src/generated/mocks.ts'); async function types() { diff --git a/packages/graphql/src/bin.ts b/packages/graphql/src/bin.ts index 17019a3c6..f1fc08c74 100644 --- a/packages/graphql/src/bin.ts +++ b/packages/graphql/src/bin.ts @@ -1,7 +1,7 @@ import dotenv from 'dotenv'; dotenv.config(); -import app from './'; +import app from './server'; // Start the server: app.listen(4444, () => diff --git a/packages/graphql/src/graphql.d.ts b/packages/graphql/src/graphql.d.ts new file mode 100644 index 000000000..a7eac6db2 --- /dev/null +++ b/packages/graphql/src/graphql.d.ts @@ -0,0 +1,5 @@ +declare module '*.graphql' { + import type { DocumentNode } from 'graphql'; + const Schema: DocumentNode; + export = Schema; +} diff --git a/packages/graphql/src/graphql/schemas/fullschema.graphql b/packages/graphql/src/graphql/schemas/fullschema.graphql new file mode 100644 index 000000000..4650ce6d2 --- /dev/null +++ b/packages/graphql/src/graphql/schemas/fullschema.graphql @@ -0,0 +1,805 @@ +schema { + query: Query + mutation: Mutation + subscription: Subscription +} + +type Account { + address: String! + name: String! + url: String +} + +scalar Address + +scalar AssetId + +type Balance { + amount: U64! + assetId: AssetId! + owner: Address! +} + +type BalanceConnection { + """A list of edges.""" + edges: [BalanceEdge!]! + """A list of nodes.""" + nodes: [Balance!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! +} + +"""An edge in a connection.""" +type BalanceEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: Balance! +} + +input BalanceFilterInput { + """Filter coins based on the `owner` field""" + owner: Address! +} + +type Block { + consensus: Consensus! + header: Header! + id: BlockId! + transactions: [Transaction!]! +} + +type BlockConnection { + """A list of edges.""" + edges: [BlockEdge!]! + """A list of nodes.""" + nodes: [Block!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! +} + +"""An edge in a connection.""" +type BlockEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: Block! +} + +scalar BlockId + +scalar Bytes32 + +type ChainInfo { + baseChainHeight: U32! + consensusParameters: ConsensusParameters! + gasCosts: GasCosts! + latestBlock: Block! + name: String! + peerCount: Int! +} + +type ChangeOutput { + amount: U64! + assetId: AssetId! + to: Address! +} + +type Coin { + amount: U64! + assetId: AssetId! + """TxPointer - the height of the block this coin was created in""" + blockCreated: U32! + maturity: U32! + owner: Address! + """TxPointer - the index of the transaction that created this coin""" + txCreatedIdx: U64! + utxoId: UtxoId! +} + +type CoinConnection { + """A list of edges.""" + edges: [CoinEdge!]! + """A list of nodes.""" + nodes: [Coin!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! +} + +"""An edge in a connection.""" +type CoinEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: Coin! +} + +input CoinFilterInput { + """Returns coins only with `asset_id`.""" + assetId: AssetId + """Returns coins owned by the `owner`.""" + owner: Address! +} + +type CoinOutput { + amount: U64! + assetId: AssetId! + to: Address! +} + +"""The schema analog of the [`coins::CoinType`].""" +union CoinType = Coin | MessageCoin + +union Consensus = Genesis | PoAConsensus + +type ConsensusParameters { + chainId: U64! + contractMaxSize: U64! + gasPerByte: U64! + gasPriceFactor: U64! + maxGasPerPredicate: U64! + maxGasPerTx: U64! + maxInputs: U64! + maxMessageDataLength: U64! + maxOutputs: U64! + maxPredicateDataLength: U64! + maxPredicateLength: U64! + maxScriptDataLength: U64! + maxScriptLength: U64! + maxStorageSlots: U64! + maxWitnesses: U64! +} + +type Contract { + bytecode: HexString! + id: ContractId! + salt: Salt! +} + +type ContractBalance { + amount: U64! + assetId: AssetId! + contract: ContractId! +} + +type ContractBalanceConnection { + """A list of edges.""" + edges: [ContractBalanceEdge!]! + """A list of nodes.""" + nodes: [ContractBalance!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! +} + +"""An edge in a connection.""" +type ContractBalanceEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: ContractBalance! +} + +input ContractBalanceFilterInput { + """Filter assets based on the `contractId` field""" + contract: ContractId! +} + +type ContractCreated { + contract: Contract! + stateRoot: Bytes32! +} + +scalar ContractId + +type ContractOutput { + balanceRoot: Bytes32! + inputIndex: Int! + stateRoot: Bytes32! +} + +type DependentCost { + base: U64! + depPerUnit: U64! +} + +input ExcludeInput { + """Messages to exclude from the selection.""" + messages: [Nonce!]! + """Utxos to exclude from the selection.""" + utxos: [UtxoId!]! +} + +type FailureStatus { + block: Block! + programState: ProgramState + reason: String! + time: Tai64Timestamp! +} + +type GasCosts { + add: U64! + addi: U64! + aloc: U64! + and: U64! + andi: U64! + bal: U64! + bhei: U64! + bhsh: U64! + burn: U64! + call: DependentCost! + cb: U64! + ccp: DependentCost! + cfei: U64! + cfsi: U64! + croo: U64! + csiz: DependentCost! + div: U64! + divi: U64! + eck1: U64! + ecr1: U64! + ed19: U64! + eq: U64! + exp: U64! + expi: U64! + flag: U64! + gm: U64! + gt: U64! + gtf: U64! + ji: U64! + jmp: U64! + jmpb: U64! + jmpf: U64! + jne: U64! + jneb: U64! + jnef: U64! + jnei: U64! + jnzb: U64! + jnzf: U64! + jnzi: U64! + k256: U64! + lb: U64! + ldc: DependentCost! + log: U64! + logd: DependentCost! + lt: U64! + lw: U64! + mcl: DependentCost! + mcli: DependentCost! + mcp: DependentCost! + mcpi: U64! + meq: DependentCost! + mint: U64! + mldv: U64! + mlog: U64! + modOp: U64! + modi: U64! + moveOp: U64! + movi: U64! + mroo: U64! + mul: U64! + muli: U64! + noop: U64! + not: U64! + or: U64! + ori: U64! + ret: U64! + retd: DependentCost! + rvrt: U64! + s256: U64! + sb: U64! + scwq: U64! + sll: U64! + slli: U64! + smo: DependentCost! + srl: U64! + srli: U64! + srw: U64! + srwq: DependentCost! + sub: U64! + subi: U64! + sw: U64! + sww: U64! + swwq: U64! + time: U64! + tr: U64! + tro: U64! + wdam: U64! + wdcm: U64! + wddv: U64! + wdmd: U64! + wdml: U64! + wdmm: U64! + wdop: U64! + wqam: U64! + wqcm: U64! + wqdv: U64! + wqmd: U64! + wqml: U64! + wqmm: U64! + wqop: U64! + xor: U64! + xori: U64! +} + +type Genesis { + """ + The chain configs define what consensus type to use, what settlement layer to use, + rules of block validity, etc. + """ + chainConfigHash: Bytes32! + """The Binary Merkle Tree root of all genesis coins.""" + coinsRoot: Bytes32! + """ + The Binary Merkle Tree root of state, balances, contracts code hash of each contract. + """ + contractsRoot: Bytes32! + """The Binary Merkle Tree root of all genesis messages.""" + messagesRoot: Bytes32! +} + +type Header { + """Hash of the application header.""" + applicationHash: Bytes32! + """ + The layer 1 height of messages and events to include since the last layer 1 block number. + """ + daHeight: U64! + """Fuel block height.""" + height: U32! + """Hash of the header""" + id: BlockId! + """Number of message receipts in this block.""" + messageReceiptCount: U64! + """Merkle root of message receipts in this block.""" + messageReceiptRoot: Bytes32! + """Merkle root of all previous block header hashes.""" + prevRoot: Bytes32! + """The block producer time.""" + time: Tai64Timestamp! + """Number of transactions in this block.""" + transactionsCount: U64! + """Merkle root of transactions.""" + transactionsRoot: Bytes32! +} + +scalar HexString + +union Input = InputCoin | InputContract | InputMessage + +type InputCoin { + amount: U64! + assetId: AssetId! + maturity: U32! + owner: Address! + predicate: HexString! + predicateData: HexString! + predicateGasUsed: U64! + txPointer: TxPointer! + utxoId: UtxoId! + witnessIndex: Int! +} + +type InputContract { + balanceRoot: Bytes32! + contract: Contract! + stateRoot: Bytes32! + txPointer: TxPointer! + utxoId: UtxoId! +} + +type InputMessage { + amount: U64! + data: HexString! + nonce: Nonce! + predicate: HexString! + predicateData: HexString! + predicateGasUsed: U64! + recipient: Address! + sender: Address! + witnessIndex: Int! +} + +type MerkleProof { + proofIndex: U64! + proofSet: [Bytes32!]! +} + +type Message { + amount: U64! + daHeight: U64! + data: HexString! + nonce: Nonce! + recipient: Address! + sender: Address! +} + +type MessageCoin { + amount: U64! + assetId: AssetId! + daHeight: U64! + nonce: Nonce! + recipient: Address! + sender: Address! +} + +type MessageConnection { + """A list of edges.""" + edges: [MessageEdge!]! + """A list of nodes.""" + nodes: [Message!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! +} + +"""An edge in a connection.""" +type MessageEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: Message! +} + +scalar MessageId + +type MessageProof { + amount: U64! + blockProof: MerkleProof! + commitBlockHeader: Header! + data: HexString! + messageBlockHeader: Header! + messageProof: MerkleProof! + nonce: Nonce! + recipient: Address! + sender: Address! +} + +enum MessageState { + NOT_FOUND + SPENT + UNSPENT +} + +type MessageStatus { + state: MessageState! +} + +type Mutation { + """ + Execute a dry-run of the transaction using a fork of current state, no changes are committed. + """ + dryRun(tx: HexString!, utxoValidation: Boolean): [Receipt!]! + """ + Sequentially produces `blocks_to_produce` blocks. The first block starts with + `start_timestamp`. If the block production in the [`crate::service::Config`] is + `Trigger::Interval { block_time }`, produces blocks with `block_time ` intervals between + them. The `start_timestamp` is the timestamp in seconds. + """ + produceBlocks(blocksToProduce: U64!, startTimestamp: Tai64Timestamp): U32! + """ + Submits transaction to the `TxPool`. + + Returns submitted transaction if the transaction is included in the `TxPool` without problems. + """ + submit(tx: HexString!): Transaction! +} + +type NodeInfo { + maxDepth: U64! + maxTx: U64! + minGasPrice: U64! + nodeVersion: String! + utxoValidation: Boolean! + vmBacktrace: Boolean! +} + +scalar Nonce + +union Output = ChangeOutput | CoinOutput | ContractCreated | ContractOutput | VariableOutput + +"""Information about pagination in a connection""" +type PageInfo { + """When paginating forwards, the cursor to continue.""" + endCursor: String + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! + """When paginating backwards, the cursor to continue.""" + startCursor: String +} + +type ParsedTime { + fromNow: String + full: String + rawTai64: String + rawUnix: String +} + +type PoAConsensus { + """Gets the signature of the block produced by `PoA` consensus.""" + signature: Signature! +} + +type ProgramState { + data: HexString! + returnType: ReturnType! +} + +type Query { + accounts(addresses: [String]!): [Account!]! + balance( + """asset_id of the coin""" + assetId: AssetId! + """address of the owner""" + owner: Address! + ): Balance! + balances(after: String, before: String, filter: BalanceFilterInput!, first: Int, last: Int): BalanceConnection! + block( + """Height of the block""" + height: U64 + """ID of the block""" + id: BlockId + ): Block + blocks(after: String, before: String, first: Int, last: Int): BlockConnection! + chain: ChainInfo! + """Gets the coin by `utxo_id`.""" + coin( + """The ID of the coin""" + utxoId: UtxoId! + ): Coin + """ + Gets all unspent coins of some `owner` maybe filtered with by `asset_id` per page. + """ + coins(after: String, before: String, filter: CoinFilterInput!, first: Int, last: Int): CoinConnection! + """ + For each `query_per_asset`, get some spendable coins(of asset specified by the query) owned by + `owner` that add up at least the query amount. The returned coins can be spent. + The number of coins is optimized to prevent dust accumulation. + + The query supports excluding and maximum the number of coins. + + Returns: + The list of spendable coins per asset from the query. The length of the result is + the same as the length of `query_per_asset`. The ordering of assets and `query_per_asset` + is the same. + """ + coinsToSpend( + """The excluded coins from the selection.""" + excludedIds: ExcludeInput + """The `Address` of the coins owner.""" + owner: Address! + """ + The list of requested assets` coins with asset ids, `target` amount the user wants to reach, and the `max` number of coins in the selection. Several entries with the same asset id are not allowed. + """ + queryPerAsset: [SpendQueryElementInput!]! + ): [[CoinType!]!]! + contract( + """ID of the Contract""" + id: ContractId! + ): Contract + contractBalance(asset: AssetId!, contract: ContractId!): ContractBalance! + contractBalances(after: String, before: String, filter: ContractBalanceFilterInput!, first: Int, last: Int): ContractBalanceConnection! + """Estimate the predicate gas for the provided transaction""" + estimatePredicates(tx: HexString!): Transaction! + """Returns true when the GraphQL API is serving requests.""" + health: Boolean! + messageProof(commitBlockHeight: U32, commitBlockId: BlockId, messageId: MessageId!, transactionId: TransactionId!): MessageProof + messageStatus(nonce: Nonce!): MessageStatus! + messages( + after: String + before: String + first: Int + last: Int + """address of the owner""" + owner: Address + ): MessageConnection! + nodeInfo: NodeInfo! + tokens(assetsId: [String]!): [Token!]! + transaction( + """The ID of the transaction""" + id: TransactionId! + ): Transaction + transactions(after: String, before: String, first: Int, last: Int): TransactionConnection! + transactionsByOwner(after: String, before: String, first: Int, last: Int, owner: Address!): TransactionConnection! +} + +type Receipt { + amount: U64 + assetId: AssetId + contract: Contract + contractId: ContractId + data: HexString + digest: Bytes32 + gas: U64 + gasUsed: U64 + is: U64 + len: U64 + nonce: Nonce + param1: U64 + param2: U64 + pc: U64 + ptr: U64 + ra: U64 + rb: U64 + rc: U64 + rd: U64 + reason: U64 + receiptType: ReceiptType! + recipient: Address + result: U64 + sender: Address + subId: Bytes32 + to: Contract + toAddress: Address + val: U64 +} + +enum ReceiptType { + BURN + CALL + LOG + LOG_DATA + MESSAGE_OUT + MINT + PANIC + RETURN + RETURN_DATA + REVERT + SCRIPT_RESULT + TRANSFER + TRANSFER_OUT +} + +enum ReturnType { + RETURN + RETURN_DATA + REVERT +} + +scalar Salt + +scalar Signature + +input SpendQueryElementInput { + """Target amount for the query.""" + amount: U64! + """Identifier of the asset to spend.""" + assetId: AssetId! + """The maximum number of currencies for selection.""" + max: U64 +} + +type SqueezedOutStatus { + reason: String! +} + +type SubmittedStatus { + time: Tai64Timestamp! +} + +type Subscription { + """ + Returns a stream of status updates for the given transaction id. + If the current status is [`TransactionStatus::Success`], [`TransactionStatus::SqueezedOut`] + or [`TransactionStatus::Failed`] the stream will return that and end immediately. + If the current status is [`TransactionStatus::Submitted`] this will be returned + and the stream will wait for a future update. + + This stream will wait forever so it's advised to use within a timeout. + + It is possible for the stream to miss an update if it is polled slower + then the updates arrive. In such a case the stream will close without + a status. If this occurs the stream can simply be restarted to return + the latest status. + """ + statusChange( + """The ID of the transaction""" + id: TransactionId! + ): TransactionStatus! + """ + Submits transaction to the `TxPool` and await either confirmation or failure. + """ + submitAndAwait(tx: HexString!): TransactionStatus! +} + +type SuccessStatus { + block: Block! + programState: ProgramState + time: Tai64Timestamp! +} + +scalar Tai64Timestamp + +type Token { + assetId: String! + decimals: U64! + name: String! + symbol: String! + totalAssets: U64 + totalSupply: U64 + url: String +} + +type Transaction { + blockHeight: String + bytecodeLength: U64 + bytecodeWitnessIndex: Int + gasLimit: U64 + gasPrice: U64 + gasUsed: U64 + id: TransactionId! + inputAssetIds: [AssetId!] + inputContracts: [Contract!] + inputs: [Input!] + isCreate: Boolean! + isMint: Boolean! + isScript: Boolean! + maturity: U32 + outputs: [Output!]! + """Return the transaction bytes using canonical encoding""" + rawPayload: HexString! + receipts: [Receipt!] + receiptsRoot: Bytes32 + salt: Salt + script: HexString + scriptData: HexString + status: TransactionStatus + statusType: TransactionStatusType + storageSlots: [HexString!] + time: ParsedTime + title: TransactionTitle + totalAccounts: Int + totalAssets: Int + totalOperations: Int + txPointer: TxPointer + witnesses: [HexString!] +} + +type TransactionConnection { + accounts: [Account] + """A list of edges.""" + edges: [TransactionEdge!]! + """A list of nodes.""" + nodes: [Transaction!]! + """Information to aid in pagination.""" + pageInfo: PageInfo! + tokens: [Token] +} + +"""An edge in a connection.""" +type TransactionEdge { + """A cursor for use in pagination""" + cursor: String! + """The item at the end of the edge""" + node: Transaction! +} + +scalar TransactionId + +union TransactionStatus = FailureStatus | SqueezedOutStatus | SubmittedStatus | SuccessStatus + +enum TransactionStatusType { + Failure + Submitted + Success +} + +enum TransactionTitle { + Burn + ContractCall + Mint +} + +scalar TxPointer + +scalar U32 + +scalar U64 + +scalar UtxoId + +type VariableOutput { + amount: U64! + assetId: AssetId! + to: Address! +} \ No newline at end of file diff --git a/packages/graphql/src/index.ts b/packages/graphql/src/index.ts index fb0d7bb46..30de94628 100644 --- a/packages/graphql/src/index.ts +++ b/packages/graphql/src/index.ts @@ -1,28 +1,3 @@ -import cors from 'cors'; -import express from 'express'; -import expressPlayground from 'graphql-playground-middleware-express'; -import { startGraphql } from '~/startGraphql'; -import { requireEnv } from '~/utils'; - -const { FUEL_PROVIDER_URL } = requireEnv(['FUEL_PROVIDER_URL']); - -// Create a server: -const app = express(); - -app.use(cors()); -app.use(express.json()); - -app.get( - '/graphql', - expressPlayground({ - endpoint: '/graphql', - settings: { - 'schema.polling.enable': false, - }, - }), -); - -// Start graphql server -startGraphql(FUEL_PROVIDER_URL, app); - -export default app; +export { createSchema } from './schema'; +export * as mocks from './generated/mocks'; +export * from './generated/types'; diff --git a/packages/graphql/src/lib.ts b/packages/graphql/src/lib.ts deleted file mode 100644 index 4632df3d4..000000000 --- a/packages/graphql/src/lib.ts +++ /dev/null @@ -1,4 +0,0 @@ -import * as mocks from './generated/mocks'; -export * from './generated/graphql'; - -export { mocks }; diff --git a/packages/graphql/src/startGraphql.ts b/packages/graphql/src/schema.ts similarity index 74% rename from packages/graphql/src/startGraphql.ts rename to packages/graphql/src/schema.ts index d64e9e8e9..73c5d3006 100644 --- a/packages/graphql/src/startGraphql.ts +++ b/packages/graphql/src/schema.ts @@ -3,11 +3,12 @@ import { stitchSchemas } from '@graphql-tools/stitch'; import { UrlLoader } from '@graphql-tools/url-loader'; import type { Application } from 'express'; import { createHandler } from 'graphql-http/lib/use/express'; -import { ExtenderResolvers, ExtenderTypeDefs } from '~/services/extender'; -import { metadataSchema } from '~/services/metadata/schema'; -import { createGraphqlFetch } from '~/utils'; -async function createSchema(fuelCoreGraphql: string) { +import { ExtenderResolvers, ExtenderTypeDefs } from './services/extender'; +import { metadataSchema } from './services/metadata/schema'; +import { createGraphqlFetch } from './utils'; + +export async function createSchema(fuelCoreGraphql: string) { return stitchSchemas({ subschemas: [ { @@ -29,10 +30,5 @@ async function createSchema(fuelCoreGraphql: string) { export async function startGraphql(fuelCoreGraphql: string, app: Application) { const schema = await createSchema(fuelCoreGraphql); - app.post( - '/graphql', - createHandler({ - schema, - }), - ); + app.post('/graphql', createHandler({ schema })); } diff --git a/packages/graphql/src/server.ts b/packages/graphql/src/server.ts new file mode 100644 index 000000000..c2eb00205 --- /dev/null +++ b/packages/graphql/src/server.ts @@ -0,0 +1,29 @@ +import cors from 'cors'; +import express from 'express'; +import expressPlayground from 'graphql-playground-middleware-express'; + +import { startGraphql } from './schema'; +import { requireEnv } from './utils/requireEnv'; + +const { FUEL_PROVIDER_URL } = requireEnv(['FUEL_PROVIDER_URL']); + +// Create a server: +const app = express(); + +app.use(cors()); +app.use(express.json()); + +app.get( + '/graphql', + expressPlayground({ + endpoint: '/graphql', + settings: { + 'schema.polling.enable': false, + }, + }), +); + +// Start graphql server +startGraphql(FUEL_PROVIDER_URL, app); + +export default app; diff --git a/packages/graphql/src/services/extender/delegators/QueryAccounts.ts b/packages/graphql/src/services/extender/delegators/QueryAccounts.ts index 01a6a73e8..5b31db09f 100644 --- a/packages/graphql/src/services/extender/delegators/QueryAccounts.ts +++ b/packages/graphql/src/services/extender/delegators/QueryAccounts.ts @@ -2,7 +2,8 @@ import { delegateToSchema } from '@graphql-tools/delegate'; import type { GraphQLResolveInfo } from 'graphql'; import { OperationTypeNode } from 'graphql'; -import { metadataSchema } from '~/services/metadata'; + +import { metadataSchema } from '../../metadata'; export function delegateQueryAccounts( addresses: Array, diff --git a/packages/graphql/src/services/extender/delegators/QueryTokens.ts b/packages/graphql/src/services/extender/delegators/QueryTokens.ts index fb9db3e3c..e5b225bad 100644 --- a/packages/graphql/src/services/extender/delegators/QueryTokens.ts +++ b/packages/graphql/src/services/extender/delegators/QueryTokens.ts @@ -2,7 +2,8 @@ import { delegateToSchema } from '@graphql-tools/delegate'; import type { GraphQLResolveInfo } from 'graphql'; import { OperationTypeNode } from 'graphql'; -import { metadataSchema } from '~/services/metadata'; + +import { metadataSchema } from '../../metadata'; export function delegateQueryTokens( assetsId: Array, diff --git a/packages/graphql/src/services/extender/index.ts b/packages/graphql/src/services/extender/index.ts index f2358f760..1d2ca8277 100644 --- a/packages/graphql/src/services/extender/index.ts +++ b/packages/graphql/src/services/extender/index.ts @@ -1,8 +1,4 @@ -import { readFileSync } from 'fs'; -import { join } from 'path'; +import typeDefs from './extender.graphql'; export * as ExtenderResolvers from './resolvers'; -export const ExtenderTypeDefs = readFileSync( - join(__dirname, './extender.graphql'), - 'utf-8', -); +export const ExtenderTypeDefs = typeDefs; diff --git a/packages/graphql/src/services/extender/resolvers/Transaction.ts b/packages/graphql/src/services/extender/resolvers/Transaction.ts index 578da0d47..f89727b63 100644 --- a/packages/graphql/src/services/extender/resolvers/Transaction.ts +++ b/packages/graphql/src/services/extender/resolvers/Transaction.ts @@ -2,13 +2,14 @@ import { bn } from '@fuel-ts/math'; import type { IResolvers } from '@graphql-tools/utils'; import { groupBy } from 'lodash'; + import type { InputCoin, InputContract, InputMessage, TransactionItemFragment, -} from '~/lib'; -import { tai64toDate } from '~/utils/dayjs'; +} from '../../../'; +import { tai64toDate } from '../../../utils/dayjs'; export const Transaction: IResolvers = { title: { diff --git a/packages/graphql/src/services/extender/resolvers/TransactionConnection.ts b/packages/graphql/src/services/extender/resolvers/TransactionConnection.ts index 2d5371700..f44c50628 100644 --- a/packages/graphql/src/services/extender/resolvers/TransactionConnection.ts +++ b/packages/graphql/src/services/extender/resolvers/TransactionConnection.ts @@ -1,6 +1,6 @@ import type { IResolvers } from '@graphql-tools/utils'; -import { getFieldsValues, removeDuplicates } from '~/utils'; +import { getFieldsValues, removeDuplicates } from '../../../utils'; import { delegateQueryAccounts } from '../delegators/QueryAccounts'; import { delegateQueryTokens } from '../delegators/QueryTokens'; diff --git a/packages/graphql/src/services/extender/schema.ts b/packages/graphql/src/services/extender/schema.ts deleted file mode 100644 index 623b1a8cc..000000000 --- a/packages/graphql/src/services/extender/schema.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { readFileSync } from 'fs'; -import { join } from 'path'; - -readFileSync(join(__dirname, './schemas/extend.graphql'), 'utf-8'); diff --git a/packages/graphql/src/services/metadata/schema.ts b/packages/graphql/src/services/metadata/schema.ts index 1fffcb8a9..8f9d11d40 100644 --- a/packages/graphql/src/services/metadata/schema.ts +++ b/packages/graphql/src/services/metadata/schema.ts @@ -1,11 +1,10 @@ import { makeExecutableSchema } from '@graphql-tools/schema'; -import { readFileSync } from 'fs'; -import { join } from 'path'; +import typeDefs from './custom.graphql'; import { QueryTokens, QueryAccounts } from './resolvers'; export const metadataSchema = makeExecutableSchema({ - typeDefs: readFileSync(join(__dirname, './custom.graphql'), 'utf-8'), + typeDefs, resolvers: { Query: { tokens: QueryTokens, diff --git a/packages/graphql/src/utils/index.ts b/packages/graphql/src/utils/index.ts index b9f06894f..c6e5b706f 100644 --- a/packages/graphql/src/utils/index.ts +++ b/packages/graphql/src/utils/index.ts @@ -1,3 +1,2 @@ export * from './graphqlFetch'; export * from './getFieldsValues'; -export * from './requireEnv'; diff --git a/packages/graphql/src/utils/requireEnv.ts b/packages/graphql/src/utils/requireEnv.ts index 0be150313..8388d9018 100644 --- a/packages/graphql/src/utils/requireEnv.ts +++ b/packages/graphql/src/utils/requireEnv.ts @@ -1,3 +1,6 @@ +import dotenv from 'dotenv'; +dotenv.config(); + export function requireEnv< A extends string[], B extends { [key in A[number]]: string }, diff --git a/packages/graphql/tsconfig.build.json b/packages/graphql/tsconfig.build.json new file mode 100644 index 000000000..4490e84c8 --- /dev/null +++ b/packages/graphql/tsconfig.build.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "declaration": true, + "declarationDir": "dist", + "outDir": "./dist", + "module": "commonjs", + "lib": ["dom", "es6"] + }, + "include": ["src", "*.config.*"] +} diff --git a/packages/graphql/tsconfig.json b/packages/graphql/tsconfig.json index 19de573e2..eeea6dfbc 100644 --- a/packages/graphql/tsconfig.json +++ b/packages/graphql/tsconfig.json @@ -3,11 +3,7 @@ "compilerOptions": { "outDir": "./dist", "module": "commonjs", - "lib": ["dom", "es6"], - "baseUrl": ".", - "paths": { - "~/*": ["./src/*"] - } + "lib": ["dom", "es6"] }, "include": ["src", "*.config.*"] } diff --git a/packages/graphql/tsup.config.mjs b/packages/graphql/tsup.config.mjs deleted file mode 100644 index 63b3f2a73..000000000 --- a/packages/graphql/tsup.config.mjs +++ /dev/null @@ -1,15 +0,0 @@ -import { defineConfig } from 'tsup'; - -export default defineConfig(() => ({ - dts: true, - format: ['cjs', 'esm'], - outExtension({ format }) { - return { - js: `.${format}.js`, - }; - }, - entry: { - index: 'src/lib.ts', - }, - minify: process.env.NODE_ENV === 'production' ? 'terser' : false, -})); diff --git a/packages/ui/package.json b/packages/ui/package.json index b427c8e92..d6c5e37f6 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -68,7 +68,6 @@ "@tailwindcss/typography": "0.5.10", "clsx": "2.0.0", "csstype": "3.1.2", - "deepmerge-json": "1.5.0", "framer-motion": "10.16.4", "modern-normalize": "2.0.0", "radix-ui-themes-with-tailwind": "1.2.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 079a5c563..5ddf0a2db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,7 +35,7 @@ importers: version: 0.0.11(typescript@5.2.2) jest: specifier: 29.7.0 - version: 29.7.0(@types/node@20.7.0) + version: 29.7.0(@types/node@20.7.0)(ts-node@10.9.1) lint-staged: specifier: 14.0.1 version: 14.0.1 @@ -64,9 +64,6 @@ importers: '@typescript-eslint/parser': specifier: ^6.7.3 version: 6.7.3(eslint@8.50.0)(typescript@5.2.2) - deepmerge-json: - specifier: 1.5.0 - version: 1.5.0 eslint: specifier: ^8.50.0 version: 8.50.0 @@ -112,9 +109,12 @@ importers: prettier: specifier: ^3.0.3 version: 3.0.3 + ts-node: + specifier: 10.9.1 + version: 10.9.1(@swc/core@1.3.89)(@types/node@20.7.0)(typescript@5.2.2) tsup: specifier: 7.2.0 - version: 7.2.0(@swc/core@1.3.89)(typescript@5.2.2) + version: 7.2.0(@swc/core@1.3.89)(ts-node@10.9.1)(typescript@5.2.2) turbo: specifier: ^1.10.14 version: 1.10.14 @@ -169,9 +169,18 @@ importers: fuels: specifier: 0.59.0 version: 0.59.0 + graphql: + specifier: '>=16.8.1' + version: 16.8.1 graphql-request: specifier: 6.1.0 version: 6.1.0(graphql@16.8.1) + graphql-tag: + specifier: 2.12.6 + version: 2.12.6(graphql@16.8.1) + graphql-yoga: + specifier: 4.0.4 + version: 4.0.4(graphql@16.8.1) next: specifier: 13.5.3 version: 13.5.3(@babel/core@7.23.0)(react-dom@18.2.0)(react@18.2.0) @@ -181,6 +190,9 @@ importers: react-dom: specifier: 18.2.0 version: 18.2.0(react@18.2.0) + tai64: + specifier: 1.0.0 + version: 1.0.0 tailwind-merge: specifier: 1.14.0 version: 1.14.0 @@ -271,7 +283,7 @@ importers: version: link:../storybook-addon-theme tailwindcss: specifier: 3.3.3 - version: 3.3.3 + version: 3.3.3(ts-node@10.9.1) tailwindcss-animate: specifier: 1.0.7 version: 1.0.7(tailwindcss@3.3.3) @@ -351,6 +363,18 @@ importers: specifier: ^5.2.2 version: 5.2.2 devDependencies: + '@babel/cli': + specifier: 7.23.0 + version: 7.23.0(@babel/core@7.23.0) + '@babel/core': + specifier: ^7.23.0 + version: 7.23.0 + '@babel/preset-env': + specifier: 7.22.20 + version: 7.22.20(@babel/core@7.23.0) + '@babel/preset-typescript': + specifier: 7.23.0 + version: 7.23.0(@babel/core@7.23.0) '@fuels/ts-config': specifier: ^0.0.11 version: 0.0.11(typescript@5.2.2) @@ -384,6 +408,12 @@ importers: '@types/node': specifier: ^20.7.0 version: 20.7.0 + babel-plugin-import-graphql: + specifier: 2.8.1 + version: 2.8.1(graphql-tag@2.12.6)(graphql@16.8.1) + babel-register-ts: + specifier: 7.0.0 + version: 7.0.0(@babel/core@7.23.0) graphql-codegen-typescript-common: specifier: 0.18.2 version: 0.18.2(graphql@16.8.1) @@ -481,9 +511,6 @@ importers: csstype: specifier: 3.1.2 version: 3.1.2 - deepmerge-json: - specifier: 1.5.0 - version: 1.5.0 framer-motion: specifier: 10.16.4 version: 10.16.4(react-dom@18.2.0)(react@18.2.0) @@ -595,7 +622,7 @@ importers: version: link:../storybook-addon-theme tailwindcss: specifier: 3.3.3 - version: 3.3.3 + version: 3.3.3(ts-node@10.9.1) tsconfig-paths-webpack-plugin: specifier: ^4.1.0 version: 4.1.0 @@ -636,11 +663,11 @@ packages: graphql: '>=16.8.1' dependencies: '@babel/core': 7.23.0 - '@babel/generator': 7.22.15 - '@babel/parser': 7.22.16 + '@babel/generator': 7.23.0 + '@babel/parser': 7.23.0 '@babel/runtime': 7.22.15 - '@babel/traverse': 7.22.20 - '@babel/types': 7.22.19 + '@babel/traverse': 7.23.0 + '@babel/types': 7.23.0 babel-preset-fbjs: 3.4.0(@babel/core@7.23.0) chalk: 4.1.2 fb-watchman: 2.0.2 @@ -693,6 +720,26 @@ packages: default-browser-id: 3.0.0 dev: true + /@babel/cli@7.23.0(@babel/core@7.23.0): + resolution: {integrity: sha512-17E1oSkGk2IwNILM4jtfAvgjt+ohmpfBky8aLerUfYZhiPNg7ca+CRCxZn8QDxwNhV/upsc2VHBCqGFIR+iBfA==} + engines: {node: '>=6.9.0'} + hasBin: true + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@jridgewell/trace-mapping': 0.3.19 + commander: 4.1.1 + convert-source-map: 2.0.0 + fs-readdir-recursive: 1.1.0 + glob: 7.2.3 + make-dir: 2.1.0 + slash: 2.0.0 + optionalDependencies: + '@nicolo-ribaudo/chokidar-2': 2.1.8-no-fsevents.3 + chokidar: 3.5.3 + dev: true + /@babel/code-frame@7.22.13: resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} engines: {node: '>=6.9.0'} @@ -726,16 +773,6 @@ packages: transitivePeerDependencies: - supports-color - /@babel/generator@7.22.15: - resolution: {integrity: sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.19 - '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.19 - jsesc: 2.5.2 - dev: true - /@babel/generator@7.23.0: resolution: {integrity: sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==} engines: {node: '>=6.9.0'} @@ -950,14 +987,6 @@ packages: chalk: 2.4.2 js-tokens: 4.0.0 - /@babel/parser@7.22.16: - resolution: {integrity: sha512-+gPfKv8UWeKKeJTUxe59+OobVcrYHETCsORl61EmSkmgymguYk/X5bp7GuUIXaFsc6y++v8ZxPsLSSuujqDphA==} - engines: {node: '>=6.0.0'} - hasBin: true - dependencies: - '@babel/types': 7.23.0 - dev: true - /@babel/parser@7.23.0: resolution: {integrity: sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==} engines: {node: '>=6.0.0'} @@ -1535,6 +1564,18 @@ packages: '@babel/helper-simple-access': 7.22.5 dev: true + /@babel/plugin-transform-modules-commonjs@7.23.0(@babel/core@7.23.0): + resolution: {integrity: sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-module-transforms': 7.23.0(@babel/core@7.23.0) + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-simple-access': 7.22.5 + dev: true + /@babel/plugin-transform-modules-systemjs@7.22.11(@babel/core@7.23.0): resolution: {integrity: sha512-rIqHmHoMEOhI3VkVf5jQ15l539KrwhzqcBO6wdCNWPWc/JWt9ILNYNUssbRpeq0qWns8svuw8LnMNCvWBIJ8wA==} engines: {node: '>=6.9.0'} @@ -1958,7 +1999,7 @@ packages: '@babel/plugin-transform-logical-assignment-operators': 7.22.11(@babel/core@7.23.0) '@babel/plugin-transform-member-expression-literals': 7.22.5(@babel/core@7.23.0) '@babel/plugin-transform-modules-amd': 7.22.5(@babel/core@7.23.0) - '@babel/plugin-transform-modules-commonjs': 7.22.15(@babel/core@7.23.0) + '@babel/plugin-transform-modules-commonjs': 7.23.0(@babel/core@7.23.0) '@babel/plugin-transform-modules-systemjs': 7.22.11(@babel/core@7.23.0) '@babel/plugin-transform-modules-umd': 7.22.5(@babel/core@7.23.0) '@babel/plugin-transform-named-capturing-groups-regex': 7.22.5(@babel/core@7.23.0) @@ -2047,6 +2088,20 @@ packages: '@babel/plugin-transform-typescript': 7.22.15(@babel/core@7.23.0) dev: true + /@babel/preset-typescript@7.23.0(@babel/core@7.23.0): + resolution: {integrity: sha512-6P6VVa/NM/VlAYj5s2Aq/gdVg8FSENCg3wlZ6Qau9AcPaoF5LbN1nyGlR9DTRIw9PpxI94e+ReydsJHcjwAweg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + '@babel/helper-plugin-utils': 7.22.5 + '@babel/helper-validator-option': 7.22.15 + '@babel/plugin-syntax-jsx': 7.22.5(@babel/core@7.23.0) + '@babel/plugin-transform-modules-commonjs': 7.23.0(@babel/core@7.23.0) + '@babel/plugin-transform-typescript': 7.22.15(@babel/core@7.23.0) + dev: true + /@babel/register@7.22.15(@babel/core@7.23.0): resolution: {integrity: sha512-V3Q3EqoQdn65RCgTLwauZaTfd1ShhwPmbBv+1dkZV/HpCGMKVyn6oFcRlI7RaKqiDQjX2Qd3AuoEguBgdjIKlg==} engines: {node: '>=6.9.0'} @@ -2079,24 +2134,6 @@ packages: '@babel/parser': 7.23.0 '@babel/types': 7.23.0 - /@babel/traverse@7.22.20: - resolution: {integrity: sha512-eU260mPZbU7mZ0N+X10pxXhQFMGTeLb9eFS0mxehS8HZp9o1uSnFeWQuG1UPrlxgA7QoUzFhOnilHDp0AXCyHw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.22.13 - '@babel/generator': 7.23.0 - '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-function-name': 7.23.0 - '@babel/helper-hoist-variables': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.23.0 - '@babel/types': 7.23.0 - debug: 4.3.4 - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - dev: true - /@babel/traverse@7.23.0: resolution: {integrity: sha512-t/QaEvyIoIkwzpiZ7aoSKK8kObQYeF7T2v+dazAYCb8SXtp58zEVkWW7zAnju8FNKNdr4ScAOEDmMItbyOmEYw==} engines: {node: '>=6.9.0'} @@ -2114,15 +2151,6 @@ packages: transitivePeerDependencies: - supports-color - /@babel/types@7.22.19: - resolution: {integrity: sha512-P7LAw/LbojPzkgp5oznjE6tQEIWbp4PkkfrZDINTro9zgBRtI324/EYsiSI7lhPbpIQ+DCeR2NNmMWANGGfZsg==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-string-parser': 7.22.5 - '@babel/helper-validator-identifier': 7.22.20 - to-fast-properties: 2.0.0 - dev: true - /@babel/types@7.23.0: resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==} engines: {node: '>=6.9.0'} @@ -2187,7 +2215,6 @@ packages: engines: {node: '>=12'} dependencies: '@jridgewell/trace-mapping': 0.3.9 - dev: true /@discoveryjs/json-ext@0.5.7: resolution: {integrity: sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==} @@ -2218,6 +2245,21 @@ packages: dependencies: react: 18.2.0 + /@envelop/core@4.0.1: + resolution: {integrity: sha512-uBLI7ql3hZopz7vMi9UDAb9HWzKw4STKiqg4QT+lb+tu5ZNaeuJ4fom2rrmgITz38B85QZOhZrGyVrlJXxfDzw==} + engines: {node: '>=16.0.0'} + dependencies: + '@envelop/types': 4.0.1 + tslib: 2.6.2 + dev: false + + /@envelop/types@4.0.1: + resolution: {integrity: sha512-ULo27/doEsP7uUhm2iTnElx13qTO6I5FKvmLoX41cpfuw8x6e0NUFknoqhEsLzAbgz8xVS5mjwcxGCXh4lDYzg==} + engines: {node: '>=16.0.0'} + dependencies: + tslib: 2.6.2 + dev: false + /@esbuild/android-arm64@0.18.20: resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==} engines: {node: '>=12'} @@ -3104,7 +3146,7 @@ packages: '@types/react-dom': 18.2.7 dotenv: 16.3.1 identity-obj-proxy: 3.0.0 - jest: 29.7.0(@types/node@20.7.0) + jest: 29.7.0(@types/node@20.7.0)(ts-node@10.9.1) jest-axe: 8.0.0 jest-environment-jsdom: 29.7.0 jest-fail-on-console: 3.1.1 @@ -3146,7 +3188,7 @@ packages: dotenv: 16.3.1 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - tsup: 7.2.0(@swc/core@1.3.89)(typescript@5.2.2) + tsup: 7.2.0(@swc/core@1.3.89)(ts-node@10.9.1)(typescript@5.2.2) dev: true /@fuels/vm-asm@0.36.1: @@ -3163,9 +3205,9 @@ packages: '@parcel/watcher': optional: true dependencies: - '@babel/generator': 7.22.15 + '@babel/generator': 7.23.0 '@babel/template': 7.22.15 - '@babel/types': 7.22.19 + '@babel/types': 7.23.0 '@graphql-codegen/core': 4.0.0(graphql@16.8.1) '@graphql-codegen/plugin-helpers': 5.0.1(graphql@16.8.1) '@graphql-tools/apollo-engine-loader': 8.0.0(graphql@16.8.1) @@ -3574,10 +3616,10 @@ packages: graphql: '>=16.8.1' dependencies: '@babel/core': 7.23.0 - '@babel/parser': 7.22.16 + '@babel/parser': 7.23.0 '@babel/plugin-syntax-import-assertions': 7.22.5(@babel/core@7.23.0) - '@babel/traverse': 7.22.20 - '@babel/types': 7.22.19 + '@babel/traverse': 7.23.0 + '@babel/types': 7.23.0 '@graphql-tools/utils': 10.0.6(graphql@16.8.1) graphql: 16.8.1 tslib: 2.6.2 @@ -3819,6 +3861,31 @@ packages: dependencies: graphql: 16.8.1 + /@graphql-yoga/logger@1.0.0: + resolution: {integrity: sha512-JYoxwnPggH2BfO+dWlWZkDeFhyFZqaTRGLvFhy+Pjp2UxitEW6nDrw+pEDw/K9tJwMjIFMmTT9VfTqrnESmBHg==} + engines: {node: '>=16.0.0'} + dependencies: + tslib: 2.6.2 + dev: false + + /@graphql-yoga/subscription@4.0.0: + resolution: {integrity: sha512-0qsN/BPPZNMoC2CZ8i+P6PgiJyHh1H35aKDt37qARBDaIOKDQuvEOq7+4txUKElcmXi7DYFo109FkhSQoEajrg==} + engines: {node: '>=16.0.0'} + dependencies: + '@graphql-yoga/typed-event-target': 2.0.0 + '@repeaterjs/repeater': 3.0.4 + '@whatwg-node/events': 0.1.1 + tslib: 2.6.2 + dev: false + + /@graphql-yoga/typed-event-target@2.0.0: + resolution: {integrity: sha512-oA/VGxGmaSDym1glOHrltw43qZsFwLLjBwvh57B79UKX/vo3+UQcRgOyE44c5RP7DCYjkrC2tuArZmb6jCzysw==} + engines: {node: '>=16.0.0'} + dependencies: + '@repeaterjs/repeater': 3.0.4 + tslib: 2.6.2 + dev: false + /@humanwhocodes/config-array@0.11.11: resolution: {integrity: sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==} engines: {node: '>=10.10.0'} @@ -3897,7 +3964,7 @@ packages: jest-util: 29.7.0 slash: 3.0.0 - /@jest/core@29.7.0: + /@jest/core@29.7.0(ts-node@10.9.1): resolution: {integrity: sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -3918,7 +3985,7 @@ packages: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@20.7.0) + jest-config: 29.7.0(@types/node@20.7.0)(ts-node@10.9.1) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -4158,7 +4225,6 @@ packages: dependencies: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 - dev: true /@juggle/resize-observer@3.4.0: resolution: {integrity: sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==} @@ -4264,6 +4330,12 @@ packages: requiresBuild: true optional: true + /@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3: + resolution: {integrity: sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ==} + requiresBuild: true + dev: true + optional: true + /@noble/curves@1.1.0: resolution: {integrity: sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==} dependencies: @@ -8819,7 +8891,6 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true - dev: true optional: true /@swc/core-darwin-x64@1.3.89: @@ -8828,7 +8899,6 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true - dev: true optional: true /@swc/core-linux-arm-gnueabihf@1.3.89: @@ -8837,7 +8907,6 @@ packages: cpu: [arm] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-linux-arm64-gnu@1.3.89: @@ -8846,7 +8915,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-linux-arm64-musl@1.3.89: @@ -8855,7 +8923,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-linux-x64-gnu@1.3.89: @@ -8864,7 +8931,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-linux-x64-musl@1.3.89: @@ -8873,7 +8939,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true optional: true /@swc/core-win32-arm64-msvc@1.3.89: @@ -8882,7 +8947,6 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true - dev: true optional: true /@swc/core-win32-ia32-msvc@1.3.89: @@ -8891,7 +8955,6 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true - dev: true optional: true /@swc/core-win32-x64-msvc@1.3.89: @@ -8900,7 +8963,6 @@ packages: cpu: [x64] os: [win32] requiresBuild: true - dev: true optional: true /@swc/core@1.3.89: @@ -8926,11 +8988,9 @@ packages: '@swc/core-win32-arm64-msvc': 1.3.89 '@swc/core-win32-ia32-msvc': 1.3.89 '@swc/core-win32-x64-msvc': 1.3.89 - dev: true /@swc/counter@0.1.1: resolution: {integrity: sha512-xVRaR4u9hcYjFvcSg71Lz5Bo4//CyjAAfMxa7UsaDSYxAshflUkVJWiyVWrfxC59z2kP1IzI4/1BEpnhI9o3Mw==} - dev: true /@swc/helpers@0.4.14: resolution: {integrity: sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==} @@ -8963,7 +9023,6 @@ packages: /@swc/types@0.1.5: resolution: {integrity: sha512-myfUej5naTBWnqOCc/MdVOLVjXUXtIA+NpDrDBKJtLLg2shUjBu3cZmB/85RyitKc55+lUUyl7oRfLOvkr2hsw==} - dev: true /@tabler/icons-react@2.35.0(react@18.2.0): resolution: {integrity: sha512-jK2zgtMF2+LSjtbjYsfer+ryz72TwyJqv3MsmCfEpQwP37u01xvmTlVhJ+ox3bV+trsgjojsldVDuB05JuXLaw==} @@ -8991,7 +9050,7 @@ packages: lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 postcss-selector-parser: 6.0.10 - tailwindcss: 3.3.3 + tailwindcss: 3.3.3(ts-node@10.9.1) dev: false /@tanstack/query-core@4.35.3: @@ -9056,7 +9115,7 @@ packages: chalk: 3.0.0 css.escape: 1.5.1 dom-accessibility-api: 0.5.16 - jest: 29.7.0(@types/node@20.7.0) + jest: 29.7.0(@types/node@20.7.0)(ts-node@10.9.1) lodash: 4.17.21 redent: 3.0.0 @@ -9104,19 +9163,15 @@ packages: /@tsconfig/node10@1.0.9: resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} - dev: true /@tsconfig/node12@1.0.11: resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} - dev: true /@tsconfig/node14@1.0.3: resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} - dev: true /@tsconfig/node16@1.0.4: resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - dev: true /@types/aria-query@5.0.2: resolution: {integrity: sha512-PHKZuMN+K5qgKIWhBodXzQslTo5P+K/6LqeKXS6O/4liIDdZqaX5RXrCK++LAw+y/nptN48YmUMFiQHRSWYwtQ==} @@ -9818,6 +9873,14 @@ packages: fast-url-parser: 1.1.3 tslib: 2.6.2 + /@whatwg-node/server@0.9.14: + resolution: {integrity: sha512-I8TT0NoCP+xThLBuGlU6dgq5wpExkphNMo2geZwQW0vAmEPtc3MNMZMIYqg5GyNmpv5Nf7fnxb8tVOIHbDvuDA==} + engines: {node: '>=16.0.0'} + dependencies: + '@whatwg-node/fetch': 0.9.13 + tslib: 2.6.2 + dev: false + /@wry/equality@0.1.11: resolution: {integrity: sha512-mwEVBDUVODlsQQ5dfuLUS5/Tf7jqUKyhKYHmVi4fPB6bDMOfWvUPJmKgS1Z7Za/sOI3vzWt4+O7yCiL/70MogA==} dependencies: @@ -10155,7 +10218,6 @@ packages: /arg@4.1.3: resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - dev: true /arg@5.0.2: resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==} @@ -10438,6 +10500,17 @@ packages: resolution: {integrity: sha512-LY3+Y0XVDYcShHHorshrDbt4KFWL4bSeniCtl4SYZbask+Syngk1uMPCeN9+nSiZo6zX5s0RTq/J9Pnaaf/KHw==} dev: true + /babel-plugin-import-graphql@2.8.1(graphql-tag@2.12.6)(graphql@16.8.1): + resolution: {integrity: sha512-j8Y0rWfMCd7Q63+hzCENrzbwYvQ9GfRbD3S50oHJ0SmEeRRVgLMxj+jXCBVLTFlmFLzY8UYVQQGx3FgrK3wajA==} + engines: {node: '>= 4.x'} + peerDependencies: + graphql: '>=16.8.1' + graphql-tag: ^2.1.0 + dependencies: + graphql: 16.8.1 + graphql-tag: 2.12.6(graphql@16.8.1) + dev: true + /babel-plugin-istanbul@6.1.1: resolution: {integrity: sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==} engines: {node: '>=8'} @@ -10577,6 +10650,15 @@ packages: babel-plugin-jest-hoist: 29.6.3 babel-preset-current-node-syntax: 1.0.1(@babel/core@7.23.0) + /babel-register-ts@7.0.0(@babel/core@7.23.0): + resolution: {integrity: sha512-EpW+ANiWXOGS4cHxJEErbKG0fyMyzHNw9VyD2LU7gXRdjVP7BOK6a/MjF6On01/r3abzvvFEzcBSrD6dBNuR3w==} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/register': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.0 + dev: true + /balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -11473,7 +11555,7 @@ packages: sha.js: 2.4.11 dev: true - /create-jest@29.7.0(@types/node@20.7.0): + /create-jest@29.7.0(@types/node@20.7.0)(ts-node@10.9.1): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -11482,7 +11564,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@20.7.0) + jest-config: 29.7.0(@types/node@20.7.0)(ts-node@10.9.1) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -11493,7 +11575,6 @@ packages: /create-require@1.1.1: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - dev: true /cross-fetch@3.1.8: resolution: {integrity: sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==} @@ -11732,10 +11813,6 @@ packages: /deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} - /deepmerge-json@1.5.0: - resolution: {integrity: sha512-jZRrDmBKjmGcqMFEUJ14FjMJwm05Qaked+1vxaALRtF0UAl7lPU8OLWXFxvoeg3jbQM249VPFVn8g2znaQkEtA==} - engines: {node: '>=4.0.0'} - /deepmerge@3.2.0: resolution: {integrity: sha512-6+LuZGU7QCNUnAJyX8cIrlzoEgggTM6B7mm+znKOX4t5ltluT9KLjN6g61ECMS0LTsLW7yDpNoxhix5FZcrIow==} engines: {node: '>=0.10.0'} @@ -11901,7 +11978,6 @@ packages: /diff@4.0.2: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} - dev: true /diffie-hellman@5.0.3: resolution: {integrity: sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==} @@ -13157,6 +13233,10 @@ packages: resolution: {integrity: sha512-INM/fWAxMICjttnD0DX1rBvinKskj5G1w+oy/pnm9u/tSlnBrzFonJMcalKJ30P8RRsPzKcCG7Q8l0jx5Fh9YQ==} dev: true + /fs-readdir-recursive@1.1.0: + resolution: {integrity: sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==} + dev: true + /fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} @@ -13645,6 +13725,26 @@ packages: dependencies: graphql: 16.8.1 + /graphql-yoga@4.0.4(graphql@16.8.1): + resolution: {integrity: sha512-MvCLhFecYNIKuxAZisPjpIL9lxRYbpgPSNKENDO/8CV3oiFlsLJHZb5dp2sVAeLafXHeZ9TgkijLthUBc1+Jag==} + engines: {node: '>=16.0.0'} + peerDependencies: + graphql: '>=16.8.1' + dependencies: + '@envelop/core': 4.0.1 + '@graphql-tools/executor': 1.2.0(graphql@16.8.1) + '@graphql-tools/schema': 10.0.0(graphql@16.8.1) + '@graphql-tools/utils': 10.0.6(graphql@16.8.1) + '@graphql-yoga/logger': 1.0.0 + '@graphql-yoga/subscription': 4.0.0 + '@whatwg-node/fetch': 0.9.13 + '@whatwg-node/server': 0.9.14 + dset: 3.1.2 + graphql: 16.8.1 + lru-cache: 10.0.1 + tslib: 2.6.2 + dev: false + /graphql@16.8.1: resolution: {integrity: sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} @@ -14629,7 +14729,7 @@ packages: - babel-plugin-macros - supports-color - /jest-cli@29.7.0(@types/node@20.7.0): + /jest-cli@29.7.0(@types/node@20.7.0)(ts-node@10.9.1): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -14639,14 +14739,14 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0 + '@jest/core': 29.7.0(ts-node@10.9.1) '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@20.7.0) + create-jest: 29.7.0(@types/node@20.7.0)(ts-node@10.9.1) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@20.7.0) + jest-config: 29.7.0(@types/node@20.7.0)(ts-node@10.9.1) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -14656,7 +14756,7 @@ packages: - supports-color - ts-node - /jest-config@29.7.0(@types/node@20.7.0): + /jest-config@29.7.0(@types/node@20.7.0)(ts-node@10.9.1): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -14691,6 +14791,7 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 + ts-node: 10.9.1(@swc/core@1.3.89)(@types/node@20.7.0)(typescript@5.2.2) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -15017,7 +15118,7 @@ packages: merge-stream: 2.0.0 supports-color: 8.1.1 - /jest@29.7.0(@types/node@20.7.0): + /jest@29.7.0(@types/node@20.7.0)(ts-node@10.9.1): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -15027,10 +15128,10 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0 + '@jest/core': 29.7.0(ts-node@10.9.1) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@20.7.0) + jest-cli: 29.7.0(@types/node@20.7.0)(ts-node@10.9.1) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -15590,7 +15691,6 @@ packages: /make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - dev: true /makeerror@1.0.12: resolution: {integrity: sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==} @@ -16644,7 +16744,7 @@ packages: camelcase-css: 2.0.1 postcss: 8.4.30 - /postcss-load-config@4.0.1(postcss@8.4.30): + /postcss-load-config@4.0.1(postcss@8.4.30)(ts-node@10.9.1): resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==} engines: {node: '>= 14'} peerDependencies: @@ -16658,6 +16758,7 @@ packages: dependencies: lilconfig: 2.1.0 postcss: 8.4.30 + ts-node: 10.9.1(@swc/core@1.3.89)(@types/node@20.7.0)(typescript@5.2.2) yaml: 2.3.2 /postcss-loader@7.3.3(postcss@8.4.30)(typescript@5.2.2): @@ -18059,6 +18160,11 @@ packages: /sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + /slash@2.0.0: + resolution: {integrity: sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==} + engines: {node: '>=6'} + dev: true + /slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -18538,7 +18644,7 @@ packages: tailwindcss: '*' dependencies: tailwind-merge: 1.14.0 - tailwindcss: 3.3.3 + tailwindcss: 3.3.3(ts-node@10.9.1) dev: false /tailwindcss-animate@1.0.7(tailwindcss@3.3.3): @@ -18546,7 +18652,7 @@ packages: peerDependencies: tailwindcss: '>=3.0.0 || insiders' dependencies: - tailwindcss: 3.3.3 + tailwindcss: 3.3.3(ts-node@10.9.1) /tailwindcss-radix@2.8.0: resolution: {integrity: sha512-1k1UfoIYgVyBl13FKwwoKavjnJ5VEaUClCTAsgz3VLquN4ay/lyaMPzkbqD71sACDs2fRGImytAUlMb4TzOt1A==} @@ -18560,10 +18666,10 @@ packages: just-unique: 4.2.0 lodash.merge: 4.6.2 lodash.mergewith: 4.6.2 - tailwindcss: 3.3.3 + tailwindcss: 3.3.3(ts-node@10.9.1) dev: false - /tailwindcss@3.3.3: + /tailwindcss@3.3.3(ts-node@10.9.1): resolution: {integrity: sha512-A0KgSkef7eE4Mf+nKJ83i75TMyq8HqY3qmFIJSWy8bNt0v1lG7jUcpGpoTFxAwYcWOphcTBLPPJg+bDfhDf52w==} engines: {node: '>=14.0.0'} hasBin: true @@ -18585,7 +18691,7 @@ packages: postcss: 8.4.30 postcss-import: 15.1.0(postcss@8.4.30) postcss-js: 4.0.1(postcss@8.4.30) - postcss-load-config: 4.0.1(postcss@8.4.30) + postcss-load-config: 4.0.1(postcss@8.4.30)(ts-node@10.9.1) postcss-nested: 6.0.1(postcss@8.4.30) postcss-selector-parser: 6.0.13 resolve: 1.22.6 @@ -18935,7 +19041,6 @@ packages: typescript: 5.2.2 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 - dev: true /ts-pnp@1.2.0(typescript@5.2.2): resolution: {integrity: sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==} @@ -19010,7 +19115,7 @@ packages: /tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - /tsup@7.2.0(@swc/core@1.3.89)(typescript@5.2.2): + /tsup@7.2.0(@swc/core@1.3.89)(ts-node@10.9.1)(typescript@5.2.2): resolution: {integrity: sha512-vDHlczXbgUvY3rWvqFEbSqmC1L7woozbzngMqTtL2PGBODTtWlRwGDDawhvWzr5c1QjKe4OAKqJGfE1xeXUvtQ==} engines: {node: '>=16.14'} hasBin: true @@ -19035,7 +19140,7 @@ packages: execa: 5.1.1 globby: 11.1.0 joycon: 3.1.1 - postcss-load-config: 4.0.1(postcss@8.4.30) + postcss-load-config: 4.0.1(postcss@8.4.30)(ts-node@10.9.1) resolve-from: 5.0.0 rollup: 3.29.2 source-map: 0.8.0-beta.0 @@ -19499,7 +19604,6 @@ packages: /v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - dev: true /v8-to-istanbul@9.1.0: resolution: {integrity: sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==} @@ -20051,7 +20155,6 @@ packages: /yn@3.1.1: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} engines: {node: '>=6'} - dev: true /yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} diff --git a/turbo.json b/turbo.json index cb43cbbf0..2ce81951e 100644 --- a/turbo.json +++ b/turbo.json @@ -1,6 +1,6 @@ { "$schema": "https://turbo.build/schema.json", - "globalEnv": ["NODE_ENV", "IS_PREVIEW", "FUEL_PROVIDER_URL", "GRAPHQL_API"], + "globalEnv": ["NODE_ENV", "IS_PREVIEW", "FUEL_PROVIDER_URL"], "pipeline": { "build": { "outputs": ["dist/**", "build/**", ".next/**"],