// GlobalStateContext.js
import React, { useState } from "react";
import GlobalStateContext from "./GlobalStateContext";


const GlobalStateProvider = ({ children }) => {
  const [isAuthenticate, setIsAuthenticate] = useState(false);

  const [transactions, setTransactions] = useState([
    {
      id: 1,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5def6ghi7jkl8mnojhdj9pqrs2tuv5wxys2tuv5wxy',
      sender: 'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      receiver:
        'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "ABCDESDJFDBJ",
      subnetID: "A1B2C3D4E5F6G",
    },
    {
      id: 2,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5de7euuf6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 3,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfu8c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 4,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfhfi9c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
  ]);







  const [transactionsApi] = useState({
    "status": true,
    "data": {
      "currentPage": 1,
      "totalCount": 25998,
      "totalPages": 2600,
      "items": [
        {
          "transactionType": "RBT",
          "netWorkType": "SubNet",
          "blockHash": null,
          "subNetworkId": "cef6bcee3c814a6a90f752ae4d4d9f5e",
          "transactionId": "96717e750ab7944355fa6c8d9289609477c03ef84e7237eca632af62af89d001",
          "sender": "bafybmiape32tu6iwy4mqhgwgrhwwoo4you2slqhz4ez6tszi3fr55eyfma",
          "receiver": "bafybmiefuemjomyrsd5roytomo2divn23xy4sbrzak3bupd3oejdftzqr4",
          "amount": 1,
          "timestamp": "2024-09-25T09:17:03.631Z",
          "quorumList": [
            "QmX8GJSGjgVKXTycxqPytwa6CQc1b22eEsP5xCs18XegnN",
            "QmWeqAqFBg9GwSCJ5mFijoodostkzvYsR9BV8C2KrrqNZf",
            "Qmae4pZp7nAGGNvkcU29cCTRjTMbgkRL72R187XB3ExUAa",
            "QmdsjdAhwcfJHzexj2pRMMCdHMSNV5xVRAefghppDSQ3zH",
            "QmYPC5B7U6d3dVU2CwTyGjfRjMxz5oLod5QK3KjyFd5cUF"
          ],
          "pledgeInfo": {
            "pledgeDetails": {
              "QmX8GJSGjgVKXTycxqPytwa6CQc1b22eEsP5xCs18XegnN": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f01"
              ],
              "QmWeqAqFBg9GwSCJ5mFijoodostkzvYsR9BV8C2KrrqNZf": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f02"
              ],
              "Qmae4pZp7nAGGNvkcU29cCTRjTMbgkRL72R187XB3ExUAa": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f03"
              ],
              "QmdsjdAhwcfJHzexj2pRMMCdHMSNV5xVRAefghppDSQ3zH": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f04"
              ],
              "QmYPC5B7U6d3dVU2CwTyGjfRjMxz5oLod5QK3KjyFd5cUF": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f05"
              ]
            },
            "pledgedTokenList": null
          },
          "tokenList": null,
          "comments": "Test transaction 1"
        },
        {
          "transactionType": "RBT",
          "netWorkType": "SubNet",
          "blockHash": null,
          "subNetworkId": "7a37cf36b3024a83b136321364c1c894",
          "transactionId": "ce948cba00f34f5dbd87b734574eab4fb5e9a247e0a6e5d6c3626b0bb85a7aac",
          "sender": "bafybmiefuemjomyrsd5roytomo2divn23xy4sbrzak3bupd3oejdftzqr4",
          "receiver": "bafybmiape32tu6iwy4mqhgwgrhwwoo4you2slqhz4ez6tszi3fr55eyfma",
          "amount": 2,
          "timestamp": "2024-09-25T15:20:06.21Z",
          "quorumList": [
            "Qmae4pZp7nAGGNvkcU29cCTRjTMbgkRL72R187XB3ExUAa",
            "QmQdE9VYtr7uDwto6s4R7Exs6fF3cQRKE5Qtp9t5KVeLJT",
            "QmUDohHDbugxdYkmeKJh3qnnJoJqC98waY2GusLMG8hMFg",
            "QmfXtphSRGMCqFoFP9oeTsDHE96jQ86H7gfSxmiqz97FLo",
            "QmYPC5B7U6d3dVU2CwTyGjfRjMxz5oLod5QK3KjyFd5cUF"
          ],
          "pledgeInfo": {
            "pledgeDetails": {
              "Qmae4pZp7nAGGNvkcU29cCTRjTMbgkRL72R187XB3ExUAa": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f01"
              ],
              "QmQdE9VYtr7uDwto6s4R7Exs6fF3cQRKE5Qtp9t5KVeLJT": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f02"
              ],
              "QmUDohHDbugxdYkmeKJh3qnnJoJqC98waY2GusLMG8hMFg": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f03"
              ],
              "QmfXtphSRGMCqFoFP9oeTsDHE96jQ86H7gfSxmiqz97FLo": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f04"
              ],
              "QmYPC5B7U6d3dVU2CwTyGjfRjMxz5oLod5QK3KjyFd5cUF": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f05"
              ]
            },
            "pledgedTokenList": null
          },
          "tokenList": null,
          "comments": "Test transaction with test mb"
        },
        {
          "transactionType": "RBT",
          "netWorkType": "SubNet",
          "blockHash": null,
          "subNetworkId": "7a37cf36b3024a83b136321364c1c894",
          "transactionId": "ce948cba00f34f5dbd87b734574eab4fb5e9a247e0a6e5d6c3626b0bb85a7aab",
          "sender": "bafybmiefuemjomyrsd5roytomo2divn23xy4sbrzak3bupd3oejdftzqr4",
          "receiver": "bafybmiape32tu6iwy4mqhgwgrhwwoo4you2slqhz4ez6tszi3fr55eyfma",
          "amount": 2,
          "timestamp": "2024-09-25T15:15:05.265Z",
          "quorumList": [
            "Qmae4pZp7nAGGNvkcU29cCTRjTMbgkRL72R187XB3ExUAa",
            "QmQdE9VYtr7uDwto6s4R7Exs6fF3cQRKE5Qtp9t5KVeLJT",
            "QmUDohHDbugxdYkmeKJh3qnnJoJqC98waY2GusLMG8hMFg",
            "QmfXtphSRGMCqFoFP9oeTsDHE96jQ86H7gfSxmiqz97FLo",
            "QmYPC5B7U6d3dVU2CwTyGjfRjMxz5oLod5QK3KjyFd5cUF"
          ],
          "pledgeInfo": {
            "pledgeDetails": {
              "Qmae4pZp7nAGGNvkcU29cCTRjTMbgkRL72R187XB3ExUAa": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f01"
              ],
              "QmQdE9VYtr7uDwto6s4R7Exs6fF3cQRKE5Qtp9t5KVeLJT": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f02"
              ],
              "QmUDohHDbugxdYkmeKJh3qnnJoJqC98waY2GusLMG8hMFg": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f03"
              ],
              "QmfXtphSRGMCqFoFP9oeTsDHE96jQ86H7gfSxmiqz97FLo": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f04"
              ],
              "QmYPC5B7U6d3dVU2CwTyGjfRjMxz5oLod5QK3KjyFd5cUF": [
                "QmRaGyPVpHxa79vDfcti9qgv9PCbxVhKSd82snpeP86f05"
              ]
            },
            "pledgedTokenList": null
          },
          "tokenList": null,
          "comments": "Test transaction with test mb"
        },
        {
          "transactionType": "RBT",
          "netWorkType": "Main",
          "blockHash": null,
          "subNetworkId": "MainNet",
          "transactionId": "6520b254ad734465ee982ba057296d1139046e9c65cec49fd1a27bfc0900801c",
          "sender": "bafybmidjb3pncyh6oouowci6vbewcba5xn7suw2nxex26jplyysrks32oq",
          "receiver": "bafybmic3e64jd657vdjnuedu3mdppzqm6tjul2tvqal4onwiy3d6uh5hia",
          "amount": 1,
          "timestamp": "2023-02-20T17:07:30.549Z",
          "quorumList": null,
          "pledgeInfo": null,
          "tokenList": null,
          "comments": null
        },
        {
          "transactionType": "RBT",
          "netWorkType": "Main",
          "blockHash": null,
          "subNetworkId": "MainNet",
          "transactionId": "1632cb5d3b166f2ec5a0960913eea314e21197144a4eec0eeef32d74bc61d17e",
          "sender": "bafybmidjb3pncyh6oouowci6vbewcba5xn7suw2nxex26jplyysrks32oq",
          "receiver": "bafybmic3e64jd657vdjnuedu3mdppzqm6tjul2tvqal4onwiy3d6uh5hia",
          "amount": 1,
          "timestamp": "2023-02-21T10:43:37.854Z",
          "quorumList": null,
          "pledgeInfo": null,
          "tokenList": null,
          "comments": null
        },
        {
          "transactionType": "RBT",
          "netWorkType": "Main",
          "blockHash": null,
          "subNetworkId": "MainNet",
          "transactionId": "4bdd5cba6bda992acd23fc69961b99c882ccb0be6e94093ffad903ad94c98f01",
          "sender": "bafybmidzccailq5baguinbr6ejy3sdw6xe3aqupdqaxphwkqrc45mc3kym",
          "receiver": "bafybmigx4ojuq2wenslotwjmhjf5w5rzxmsfjwkxgaq6xn47itguoihk2u",
          "amount": 1,
          "timestamp": "2023-06-01T08:12:46.719Z",
          "quorumList": null,
          "pledgeInfo": null,
          "tokenList": null,
          "comments": null
        },
        {
          "transactionType": "RBT",
          "netWorkType": "Main",
          "blockHash": null,
          "subNetworkId": "MainNet",
          "transactionId": "a8283c6d38976eee357e9e81deb36204f409019f13efc68379c2f96419c6ef3e",
          "sender": "bafybmidjb3pncyh6oouowci6vbewcba5xn7suw2nxex26jplyysrks32oq",
          "receiver": "bafybmic3e64jd657vdjnuedu3mdppzqm6tjul2tvqal4onwiy3d6uh5hia",
          "amount": 1,
          "timestamp": "2023-02-22T09:48:09.738Z",
          "quorumList": null,
          "pledgeInfo": null,
          "tokenList": null,
          "comments": null
        },
        {
          "transactionType": "RBT",
          "netWorkType": "Main",
          "blockHash": null,
          "subNetworkId": "MainNet",
          "transactionId": "cdfad7ec67f9c3579a29a83c4d5905703d980fd7e5418b6369e256905f369829",
          "sender": "bafybmigg2stwaziksv7prdrewwdvbwddtlplzarj2sxehxdumq2hssx3vu",
          "receiver": "bafybmiaqiklrldfa5npiw2tfwbcxbfhgp44ih5b3apr53augqkj54uy4ye",
          "amount": 1,
          "timestamp": "2023-03-05T06:41:56.444Z",
          "quorumList": null,
          "pledgeInfo": null,
          "tokenList": null,
          "comments": null
        },
        {
          "transactionType": "RBT",
          "netWorkType": "Main",
          "blockHash": null,
          "subNetworkId": "MainNet",
          "transactionId": "6f4de39b69f1ab6ade1b4c6f897428b9fe08841c959f865ada5fde6169283496",
          "sender": "bafybmiafnsxrzvdwulkplgco6fgkhntdph27jnfcamk4v7corfyyb5bhs4",
          "receiver": "bafybmidvt6esdggtdi6jcm4bvo4qts5anokxkfubmzmdiswd6rrv5yaapu",
          "amount": 10,
          "timestamp": "2023-04-12T13:36:07.547Z",
          "quorumList": null,
          "pledgeInfo": null,
          "tokenList": null,
          "comments": null
        },
        {
          "transactionType": "RBT",
          "netWorkType": "Main",
          "blockHash": null,
          "subNetworkId": "MainNet",
          "transactionId": "bd016b42be1045fb0b27dd8a4c441b5e7a342faf8bfdd309c7a44fba11fef3f1",
          "sender": "bafybmigg2stwaziksv7prdrewwdvbwddtlplzarj2sxehxdumq2hssx3vu",
          "receiver": "bafybmiaqiklrldfa5npiw2tfwbcxbfhgp44ih5b3apr53augqkj54uy4ye",
          "amount": 5,
          "timestamp": "2023-03-05T06:50:15.964Z",
          "quorumList": null,
          "pledgeInfo": null,
          "tokenList": null,
          "comments": null
        }
      ]
    },
    "message": null
  });
























  const [ overview, setOverview] = useState([
    {
      id: 1,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5def6ghi7jkl8mnojhdj9pqrs2tuv5wxys2tuv5wxy',
      sender: 'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      receiver:
        'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "ABCDESDJFDBJ",
      subnetID: "A1B2C3D4E5F6G",
    },
    {
      id: 2,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5de7euuf6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 3,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfu8c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 4,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfhfi9c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 1,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5def6ghi7jkl8mnojhdj9pqrs2tuv5wxys2tuv5wxy',
      sender: 'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      receiver:
        'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "ABCDESDJFDBJ",
      subnetID: "A1B2C3D4E5F6G",
    },
    {
      id: 2,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbc5de7euuf6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 3,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfu8c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 4,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzbjfhfi9c5def6ghi7jkl8mno9pqrs2tuv5wxys2tuv5wxy',
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
  ]);

  const [ subnet, setSubnet] = useState([
    {
      id: 1,
      description:
        'abc5def6ghi7jkl8mno9pqrs2tuv5wxyzABCDEFGHIJKLMNOPQRS5674577TUV WXYZ !"§ $%&',
      sender: 'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      receiver:
        'abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ',
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "ABCDESDJFDBJ",
      subnetID: "A1B2C3D4E5F6G",
    },
    {
      id: 2,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 3,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 4,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 5,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 6,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 7,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 8,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 9,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 10,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
    {
      id: 11,
      description: "anotherDescription567123ABCDESDJ123",
      sender: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      receiver: "abcdefghiklmnopqrstuvwxyzABCDEGHIJKLMNOPQRSTUVWXYZ",
      contract:"A1B2C3D4E5F6G",
      date:"18 hours ago, 29/07/2024",
      amount:"$ 10000.12345",
      transactionType: "TXType2Example",
      subnetID: "S1N2P3E4T5I6D",
    },
  ]);

  const [subnetId, setSubnetId] = useState([
    {
      id: 1,
      subnetId: "96717e750ab7944355fa6c8d9289609477c03ef84e7237eca632af62af89d001",
      transactionCount: [
        "96717e750ab7944355fa6c8d9289609477c03ef84e7237eca632af62af89d001",
        "96717e750ab7944355fa6c8d9289609477c03ef84e7237eca632af62af89d001",
        "96717e750ab7944355fa6c8d9289609477c03ef84e7237eca632af62af89d001",
        "96717e750ab7944355fa6c8d9289609477c03ef84e7237eca632af62af89d001"
      ],
    },
  ]);

  return (
    <GlobalStateContext.Provider
      value={{
        isAuthenticate,
        setIsAuthenticate,
        transactions,
        setTransactions,
        overview,
        setOverview,
        subnet,
        setSubnet,
        subnetId,
        setSubnetId,


        transactionsApi
      }}
    >
      {children}
    </GlobalStateContext.Provider>
  );
};
export default GlobalStateProvider;
