diff --git a/docs/overview.mdx b/docs/overview.mdx
index 4ba77f2..68a4ee9 100644
--- a/docs/overview.mdx
+++ b/docs/overview.mdx
@@ -14,10 +14,16 @@ The playground is an interactive and graphical IDE that includes a reference for
You can test out the Fuel GraphQL API playground here:
+Beta-5:
+https://beta-5.fuel.network/playground
+
Beta-4:
https://beta-4.fuel.network/playground
## API Endpoint
+Beta-5:
+https://beta-5.fuel.network/graphql
+
Beta-4:
https://beta-4.fuel.network/graphql
diff --git a/docs/querying-from-a-dapp.mdx b/docs/querying-from-a-dapp.mdx
index 8954839..a69cc6b 100644
--- a/docs/querying-from-a-dapp.mdx
+++ b/docs/querying-from-a-dapp.mdx
@@ -11,7 +11,7 @@ This section covers just a few options available to get you started.
```javascript
export async function getHealth() {
- let response = await fetch('https://beta-4.fuel.network/graphql', {
+ let response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -36,7 +36,7 @@ npm install @apollo/client graphql
import { ApolloClient, InMemoryCache, gql } from '@apollo/client';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
@@ -66,7 +66,7 @@ npm install urql graphql
import { Client, cacheExchange, fetchExchange } from 'urql';
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
diff --git a/docs/reference/mutations.mdx b/docs/reference/mutations.mdx
index 609e1bb..87f17c2 100644
--- a/docs/reference/mutations.mdx
+++ b/docs/reference/mutations.mdx
@@ -3,8 +3,82 @@ title: Mutations
category: Reference
---
+{/* TODO: Finish this mutation */}
+
# Mutations
+## `startSession`
+
+### `startSession` `args`
+
+`id: ID!`
+
+returns `Boolean!`
+
+## `endSession`
+
+### `endSession` `args`
+
+`id: ID!`
+
+returns `Boolean!`
+
+## `reset`
+
+### `reset` `args`
+
+`id: ID!`
+
+returns `Boolean!`
+
+## `execute`
+
+### `execute` `args`
+
+`id: ID!`
+
+`op: String!`
+
+returns `Boolean!`
+
+## `setSingleStepping`
+
+### `setSingleStepping` `args`
+
+`id: ID!`
+
+`enable: boolean`
+
+returns `Boolean!`
+
+## `setBreakpoint`
+
+### `setBreakpoint` `args`
+
+`id: ID!`
+
+`breakpoint`: [`Breakpoint!`](/docs/reference/objects/#breakpoint)
+
+returns `Boolean!`
+
+## `startTx`
+
+### `startTx` `args`
+
+`id: ID!`
+
+`txJson: String!`
+
+returns `RunResult!`
+
+## `continueTx`
+
+### `continueTx` `args`
+
+`id: ID!`
+
+returns `RunResult!`
+
## `dryRun`
A mutation that spins up a new temporary node from the current state and emulates a given transaction.
diff --git a/docs/reference/objects.mdx b/docs/reference/objects.mdx
index 7bf7b76..492d583 100644
--- a/docs/reference/objects.mdx
+++ b/docs/reference/objects.mdx
@@ -55,6 +55,18 @@ The type of consensus used.
An array of transactions included in the block.
+## `Breakpoint`
+
+A breakpoint during debugging
+
+`contract`: [`ContractId!`](/docs/reference/scalars/#contractid)
+
+The contract address.
+
+`pc`: [`U64`](/docs/reference/scalars/#u64)
+
+The value of the program counter register `$pc`, which is the memory address of the current instruction.
+
## `ChainInfo`
Information about the base chain. At a very high level `chainInfo` helps you understand what Fuel chain you're connected to and the different parameters of this chain.
@@ -63,24 +75,28 @@ Information about the base chain. At a very high level `chainInfo` helps you und
`name: String!`
-The human-readable string name of the chain. i.e. beta-4
+The human-readable string name of the chain. i.e. beta-5
`latestBlock`: [`Block!`](#block)
The most recently created block.
-`baseChainHeight`: [`U32!`](/docs/reference/scalars/#u32)
+> `baseChainHeight`: [`U32!`](/docs/reference/scalars/#u32) _(beta-4 only)_
-Returns 0 (in development mode, this will change). This should return the height of the chain at start.
+> Returns 0 (in development mode, this will change). This should return the height of the chain at start.
-`peerCount: Int!`
+> `peerCount: Int!` _(beta-4 only)_
-The number of nodes that node is peered with.
+> The number of nodes that node is peered with.
`consensusParameters`: [`ConsensusParameters!`](#consensusparameters)
The consensus parameters used to validate blocks.
+`daHeight`: [`U64!`](/docs/reference/scalars/#u64)
+
+The height of the base chain via relayer (i.e. Ethereum or DA)
+
`gasCosts`: [`GasCosts!`](#gascosts)
The gas cost of each opcode.
@@ -175,59 +191,85 @@ The consensus parameters used for validating blocks.
**fields:**
-`contractMaxSize`: [`U64!`](/docs/reference/scalars/#u64)
+{/* TODO NEW */}
-The maximum contract size, in bytes.
+`txParams`: [`TxParameters!`](#TxParameters)
-`maxInputs`: [`U64!`](/docs/reference/scalars/#u64)
+The allowed parameters of transactions
-The maximum number of inputs.
+`predicateParams`: [`PredicateParameters!`](#PredicateParameters)
-`maxOutputs`: [`U64!`](/docs/reference/scalars/#u64)
+The allowed parameters of predicates
-The maximum number of outputs.
+`scriptParams`: [`ScriptParameters!`](#ScriptParameters)
-`maxWitnesses`: [`U64!`](/docs/reference/scalars/#u64)
+The allowed parameters of scripts
-The maximum number of witnesses.
+`contractParams`: [`ContractParameters!`](#ContractParameters)
-`maxGasPerTx`: [`U64!`](/docs/reference/scalars/#u64)
+The allowed parameters of contracts
-The maximum gas per transaction.
+`feeParams`: [`FeeParameters!`](#FeeParameters)
-`maxScriptLength`: [`U64!`](/docs/reference/scalars/#u64)
+The allowed parameters of fees
-The maximum length of a script, in instructions.
+`baseAssetId`: [`AssetId!`](/docs/reference/scalars/#assetid)
-`maxGasPerPredicate`: [`U64!`](/docs/reference/scalars/#u64)
+The asset id of the "base" asset used for gas fees.
-The maximum gas per predicate transaction.
+> `contractMaxSize`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-`maxScriptDataLength`: [`U64!`](/docs/reference/scalars/#u64)
+> The maximum contract size, in bytes.
-The maximum length of script data, in bytes.
+> `maxInputs`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-`maxStorageSlots`: [`U64!`](/docs/reference/scalars/#u64)
+> The maximum number of inputs.
-The maximum number of initial storage slots.
+> `maxOutputs`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-`maxPredicateLength`: [`U64!`](/docs/reference/scalars/#u64)
+> The maximum number of outputs.
-The maximum length of a predicate, in instructions.
+> `maxWitnesses`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-`maxPredicateDataLength`: [`U64!`](/docs/reference/scalars/#u64)
+> The maximum number of witnesses.
-The maximum length of predicate data, in bytes.
+> `maxGasPerTx`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-`gasPriceFactor`: [`U64!`](/docs/reference/scalars/#u64)
+> The maximum gas per transaction.
-A factor to convert between gas and the transaction assets value.
+> `maxScriptLength`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-`gasPerByte`: [`U64!`](/docs/reference/scalars/#u64)
+> The maximum length of a script, in instructions.
+
+> `maxGasPerPredicate`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
+
+> The maximum gas per predicate transaction.
+
+> `maxScriptDataLength`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
+
+> The maximum length of script data, in bytes.
+
+> `maxStorageSlots`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
+
+> The maximum number of initial storage slots.
+
+> `maxPredicateLength`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
+
+> The maximum length of a predicate, in instructions.
+
+> `maxPredicateDataLength`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
+
+> The maximum length of predicate data, in bytes.
+
+> `gasPriceFactor`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-A fixed ratio linking metered bytes to a gas price.
+> A factor to convert between gas and the transaction assets value.
-`maxMessageDataLength`: [`U64!`](/docs/reference/scalars/#u64)
+> `gasPerByte`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
+
+> A fixed ratio linking metered bytes to a gas price.
+
+> `maxMessageDataLength`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
The maximum length of message data, in bytes.
@@ -235,6 +277,10 @@ The maximum length of message data, in bytes.
A unique identifier for the chain.
+`gasCosts`: [`GasCosts!`](#gascosts)
+
+The gas cost of each opcode.
+
## `Contract`
An object representing a deployed contract.
@@ -313,7 +359,19 @@ The root of amount of coins owned by contract after transaction execution.
The state root of contract after transaction execution.
-## `DependentCost`
+## `ContractParameters`
+
+An object containing information about a contract
+
+`contractMaxSize`: [`U64!`](/docs/reference/scalars/#u64)
+
+Maximum size of a contract in bytes
+
+`maxStorageSlots`: [`U64!`](/docs/reference/scalars/#u64)
+
+Maximum number of storage slots
+
+## `DependentCost`_(beta-4 only)_
Contains the dependent cost of opcodes.
@@ -347,6 +405,10 @@ The status type of a transaction that has failed.
**fields:**
+`transactionId`: [`TransactionId!`](/docs/reference/scalars/#transactionid)
+
+A unique transaction id.
+
`block`: [`Block!`](#block)
The block number for the failed transaction.
@@ -363,6 +425,16 @@ The reason why the transaction failed.
The state of the program execution.
+## `FeeParameters`
+
+`gasPriceFactor`: [`U64!`](/docs/reference/scalars/#u64)
+
+The dynamic adjustment of gas costs
+
+`gasPerByte`: [`U64!`](/docs/reference/scalars/#u64)
+
+The gas cost per byte
+
## `GasCosts`
The breakdown of the gas costs of each opcode.
@@ -513,9 +585,9 @@ The gas cost of using the `$jnef` control flow opcode.
The gas cost of using the `$jneb` control flow opcode.
-`k256`: [`U64!`](/docs/reference/scalars/#u64)
+> `k256`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-The gas cost of using the `$k256` cryptographic opcode.
+> The gas cost of using the `$k256` cryptographic opcode.
`lb`: [`U64!`](/docs/reference/scalars/#u64)
@@ -533,9 +605,9 @@ The gas cost of using the `$lt` ALU opcode.
The gas cost of using the `$lw` memory opcode.
-`mcpi`: [`U64!`](/docs/reference/scalars/#u64)
+> `mcpi`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-The gas cost of using the `$mcpi` memory opcode.
+> The gas cost of using the `$mcpi` memory opcode.
`mint`: [`U64!`](/docs/reference/scalars/#u64)
@@ -593,6 +665,22 @@ The gas cost of using the `$or` ALU opcode.
The gas cost of using the `$ori` ALU opcode.
+`poph`: [`U64!`](/docs/reference/scalars/#u64)
+
+The gas cost of using the `$poph` opcode.
+
+`popl`: [`U64!`](/docs/reference/scalars/#u64)
+
+The gas cost of using the `$popl` opcode.
+
+`pshh`: [`U64!`](/docs/reference/scalars/#u64)
+
+The gas cost of using the `$pshh` opcode.
+
+`pshl`: [`U64!`](/docs/reference/scalars/#u64)
+
+The gas cost of using the `$pshl` opcode.
+
`ret`: [`U64!`](/docs/reference/scalars/#u64)
The gas cost of using the `$ret` opcode.
@@ -601,17 +689,17 @@ The gas cost of using the `$ret` opcode.
The gas cost of using the `$rvrt` contract opcode.
-`s256`: [`U64!`](/docs/reference/scalars/#u64)
+> `s256`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-The gas cost of using the `$s256` cryptographic opcode.
+> The gas cost of using the `$s256` cryptographic opcode.
`sb`: [`U64!`](/docs/reference/scalars/#u64)
The gas cost of using the `$sb` memory opcode.
-`scwq`: [`U64!`](/docs/reference/scalars/#u64)
+> `scwq`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-The gas cost of using the `$scwq` contract opcode.
+> The gas cost of using the `$scwq` contract opcode.
`sll`: [`U64!`](/docs/reference/scalars/#u64)
@@ -649,9 +737,9 @@ The gas cost of using the `$sw` memory opcode.
The gas cost of using the `$sww` contract opcode.
-`swwq`: [`U64!`](/docs/reference/scalars/#u64)
+> `swwq`: [`U64!`](/docs/reference/scalars/#u64) _(beta-4 only)_
-The gas cost of using the `$swwq` contract opcode.
+> The gas cost of using the `$swwq` contract opcode.
`time`: [`U64!`](/docs/reference/scalars/#u64)
@@ -729,54 +817,90 @@ The gas cost of using the `$xor` ALU opcode.
The gas cost of using the `$xori` ALU opcode.
-`call`: [`DependentCost!`](#dependentcost)
+`call`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$call` contract opcode.
-`ccp`: [`DependentCost!`](#dependentcost)
+`ccp`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$ccp` contract opcode.
-`csiz`: [`DependentCost!`](#dependentcost)
+`csiz`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$csiz` contract opcode.
-`ldc`: [`DependentCost!`](#dependentcost)
+`k256`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
+
+The `dependent` gas cost of using the `$k256` cryptographic opcode.
+
+`ldc`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$ldc` contract opcode.
-`logd`: [`DependentCost!`](#dependentcost)
+`logd`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$logd` contract opcode.
-`mcl`: [`DependentCost!`](#dependentcost)
+`mcl`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$mcl` memory opcode.
-`mcli`: [`DependentCost!`](#dependentcost)
+`mcli`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$mcli` memory opcode.
-`mcp`: [`DependentCost!`](#dependentcost)
+`mcp`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$mcp` memory opcode.
-`meq`: [`DependentCost!`](#dependentcost)
+`mcpi`: [`DependentCost`](/docs/reference/unions/#dependentcost)
+
+The `dependent` gas cost of using the `$mcpi` memory opcode.
+
+`meq`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$meq` memory opcode.
-`retd`: [`DependentCost!`](#dependentcost)
+`retd`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$retd` contract opcode.
-`smo`: [`DependentCost!`](#dependentcost)
+`s256`: [`DependentCost`](/docs/reference/unions/#dependentcost)
+
+The `dependent` gas cost of using the `$mcpi` cryptographic opcode.
+
+`scwq`: [`DependentCost`](/docs/reference/unions/#dependentcost)
+
+The `dependent` gas cost of using the `$scwq` cryptographic opcode.
+
+`smo`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$smo` contract opcode.
-`srwq`: [`DependentCost!`](#dependentcost)
+`srwq`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
The `dependent` gas cost of using the `$srwq` contract opcode.
+`swwq`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
+
+The `dependent` gas cost of using the `$swwq` contract opcode.
+
+`swwq`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
+
+The `dependent` gas cost of using the `$swwq` contract opcode.
+
+`contractRoot`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
+
+The `dependent` gas cost calculating the `contractRoot`
+
+`stateRoot`: [`DependentCost!`](/docs/reference/unions/#dependentcost)
+
+The `dependent` gas cost calculating the `stateRoot`
+
+`newStoragePerByte`: [`U64!`](/docs/reference/scalars/#u64)
+
+The gas cost of storage per byte
+
## `Genesis`
The genesis consensus type.
@@ -799,6 +923,20 @@ The binary Merkle tree root of state, balances, and the contracts code hash of e
The binary merkle tree root of all genesis messages.
+## `HeavyOperation`
+
+The operation dependent on the size of its inputs, and the time required per unit of input exceeding that of a single no-op operation
+
+**fields:**
+
+`base`: [`U64!`](/docs/reference/scalars/#u64)
+
+The minimum gas that this operation can cost
+
+`gasPerUnit`: [`U64!`](/docs/reference/scalars/#u64)
+
+The gas is required to process a single unit
+
## `Header`
The header contains metadata about a certain block.
@@ -955,6 +1093,20 @@ The predicate bytecode.
The predicate input parameters.
+## `LightOperation`
+
+The operation dependent on the size of its inputs, and the time required per unit of input less that of a single no-op operation
+
+**fields:**
+
+`base`: [`U64!`](/docs/reference/scalars/#u64)
+
+The minimum gas that this operation can cost
+
+`unitsPerGas`: [`U64!`](/docs/reference/scalars/#u64)
+
+The units that can be processed with a single gas
+
## `MerkleProof`
Information about a merkle proof.
@@ -1105,6 +1257,24 @@ The maximum number of connected UTXOs allowed, excluding contracts.
The node version.
+`peers: [`PeerInfo!`](#peerinfo)!`
+
+The information about the node's peers.
+
+## `OutputBreakpoint`
+
+A breakpoint during debugging
+
+`contract`: [`ContractId!`](/docs/reference/scalars/#contractid)
+
+The contract address.
+
+`pc`: [`U64`](/docs/reference/scalars/#u64)
+
+The value of the program counter register `$pc`, which is the memory address of the current instruction.
+
+## `peer`
+
## `PoAConsensus`
The proof-of-authority (PoA) consensus type.
diff --git a/docs/reference/unions.mdx b/docs/reference/unions.mdx
index 467618a..25889f2 100644
--- a/docs/reference/unions.mdx
+++ b/docs/reference/unions.mdx
@@ -26,6 +26,16 @@ The type of consensus mechanism used to validate a block.
[`PoAConsensus`](/docs/reference/objects/#poaconsensus): PoA
consensus
+## `DependentCost`
+
+Contains the dependent cost of opcodes.
+
+**Types:**
+
+[`LightOperation`](/docs/reference/objects/#lightoperation): Operations that can process many units with 1 gas
+
+[`HeavyOperation`](/docs/reference/objects/#heavyoperation): Operations that require more than 1 gas to process a single unit
+
## `Input`
An input type for a transaction.
diff --git a/examples/query.tsx b/examples/query.tsx
index 144677f..4707913 100644
--- a/examples/query.tsx
+++ b/examples/query.tsx
@@ -15,7 +15,7 @@ export function Query(props: QueryProps) {
function runQuery() {
setLoading(true);
- fetch('https://beta-4.fuel.network/graphql', {
+ fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/examples/tests/balance.test.ts b/examples/tests/balance.test.ts
index eda9f48..050049c 100644
--- a/examples/tests/balance.test.ts
+++ b/examples/tests/balance.test.ts
@@ -3,12 +3,12 @@ import { Client, cacheExchange, fetchExchange } from 'urql';
import 'isomorphic-fetch';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
@@ -30,7 +30,7 @@ describe('Balance', () => {
};
const getBalance = async () => {
- const response = await fetch('https://beta-4.fuel.network/graphql', {
+ const response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/examples/tests/balances.test.ts b/examples/tests/balances.test.ts
index b187814..502de0f 100644
--- a/examples/tests/balances.test.ts
+++ b/examples/tests/balances.test.ts
@@ -3,12 +3,12 @@ import { Client, cacheExchange, fetchExchange } from 'urql';
import 'isomorphic-fetch';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
@@ -31,7 +31,7 @@ describe('Balances', () => {
};
const getBalances = async () => {
- const response = await fetch('https://beta-4.fuel.network/graphql', {
+ const response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/examples/tests/block.test.ts b/examples/tests/block.test.ts
index b09f365..f00902b 100644
--- a/examples/tests/block.test.ts
+++ b/examples/tests/block.test.ts
@@ -3,12 +3,12 @@ import { Client, cacheExchange, fetchExchange } from 'urql';
import 'isomorphic-fetch';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
@@ -24,7 +24,7 @@ describe('Block Info', () => {
const args = { height: '3412' };
const getBlock = async () => {
- const response = await fetch('https://beta-4.fuel.network/graphql', {
+ const response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/examples/tests/contract-balance.test.ts b/examples/tests/contract-balance.test.ts
index c8fec60..4a50bc6 100644
--- a/examples/tests/contract-balance.test.ts
+++ b/examples/tests/contract-balance.test.ts
@@ -3,12 +3,12 @@ import { Client, cacheExchange, fetchExchange } from 'urql';
import 'isomorphic-fetch';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
@@ -30,7 +30,7 @@ describe('Contract Balance', () => {
};
const getContractBalance = async () => {
- const response = await fetch('https://beta-4.fuel.network/graphql', {
+ const response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/examples/tests/contract-balances.test.ts b/examples/tests/contract-balances.test.ts
index 9eb0875..554d4c8 100644
--- a/examples/tests/contract-balances.test.ts
+++ b/examples/tests/contract-balances.test.ts
@@ -3,12 +3,12 @@ import { Client, cacheExchange, fetchExchange } from 'urql';
import 'isomorphic-fetch';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
@@ -32,7 +32,7 @@ describe('Contract balances', () => {
};
const getContractBalances = async () => {
- const response = await fetch('https://beta-4.fuel.network/graphql', {
+ const response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/examples/tests/latest-blocks.test.ts b/examples/tests/latest-blocks.test.ts
index 2656f1a..3c0a698 100644
--- a/examples/tests/latest-blocks.test.ts
+++ b/examples/tests/latest-blocks.test.ts
@@ -3,12 +3,12 @@ import { Client, cacheExchange, fetchExchange } from 'urql';
import 'isomorphic-fetch';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
@@ -78,7 +78,7 @@ describe('Latest blocks', () => {
}`;
const getLatestBlocks = async () => {
- const response = await fetch('https://beta-4.fuel.network/graphql', {
+ const response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/examples/tests/latest-transactions.test.ts b/examples/tests/latest-transactions.test.ts
index 7eda540..290b946 100644
--- a/examples/tests/latest-transactions.test.ts
+++ b/examples/tests/latest-transactions.test.ts
@@ -3,12 +3,12 @@ import { Client, cacheExchange, fetchExchange } from 'urql';
import 'isomorphic-fetch';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
@@ -83,7 +83,7 @@ describe('Latest transactions', () => {
}`;
const getLatestTransactions = async () => {
- const response = await fetch('https://beta-4.fuel.network/graphql', {
+ const response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/examples/tests/messages.test.ts b/examples/tests/messages.test.ts
index 02ebd72..8a411a9 100644
--- a/examples/tests/messages.test.ts
+++ b/examples/tests/messages.test.ts
@@ -3,12 +3,12 @@ import { Client, cacheExchange, fetchExchange } from 'urql';
import 'isomorphic-fetch';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
@@ -34,7 +34,7 @@ describe('Messages', () => {
};
const getMessages = async () => {
- const response = await fetch('https://beta-4.fuel.network/graphql', {
+ const response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/examples/tests/transactions-by-owner.test.ts b/examples/tests/transactions-by-owner.test.ts
index 1e4dc0d..0899292 100644
--- a/examples/tests/transactions-by-owner.test.ts
+++ b/examples/tests/transactions-by-owner.test.ts
@@ -3,12 +3,12 @@ import { Client, cacheExchange, fetchExchange } from 'urql';
import 'isomorphic-fetch';
const apolloClient = new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});
@@ -88,7 +88,7 @@ describe('Transactions by owner', () => {
};
const getTransactions = async () => {
- const response = await fetch('https://beta-4.fuel.network/graphql', {
+ const response = await fetch('https://beta-5.fuel.network/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
diff --git a/src/components/CodeExamples.tsx b/src/components/CodeExamples.tsx
index 0045041..e9793f8 100644
--- a/src/components/CodeExamples.tsx
+++ b/src/components/CodeExamples.tsx
@@ -58,7 +58,7 @@ export function CodeExamples({
const apolloImport = `import { ApolloClient, InMemoryCache, gql } from '@apollo/client';
const apolloClient= new ApolloClient({
- uri: 'https://beta-4.fuel.network/graphql',
+ uri: 'https://beta-5.fuel.network/graphql',
cache: new InMemoryCache(),
});
@@ -67,7 +67,7 @@ const apolloClient= new ApolloClient({
const urqlImport = `import { Client, cacheExchange, fetchExchange } from 'urql';
const urqlClient = new Client({
- url: 'https://beta-4.fuel.network/graphql',
+ url: 'https://beta-5.fuel.network/graphql',
exchanges: [cacheExchange, fetchExchange],
});