diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 3be6b8b..273a5ca 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/packages/nextjs/app/(app)/account/page.client.tsx b/packages/nextjs/app/(app)/account/page.client.tsx index fa968e7..125853a 100644 --- a/packages/nextjs/app/(app)/account/page.client.tsx +++ b/packages/nextjs/app/(app)/account/page.client.tsx @@ -1,16 +1,17 @@ +/* eslint-disable prettier/prettier */ "use client"; - +import { useState } from "react"; import { Address } from "viem"; import { useAccount, useDisconnect } from "wagmi"; import { Balance } from "~~/components/scaffold-eth"; import { AddressQRCodeModal } from "~~/components/scaffold-eth/RainbowKitCustomConnectButton/AddressQRCodeModal"; -// import { AddressInput } from "~~/components/scaffold-eth"; +import { AddressInput } from "~~/components/scaffold-eth"; // import { Address } from "~~/components/scaffold-eth"; export const AccountPageClient: React.FC = () => { const { address: connectedAddress } = useAccount(); const { disconnect } = useDisconnect(); - // onst [address, setAddress] = useState(""); + const [address, setAddress] = useState(""); return (
diff --git a/packages/nextjs/app/blockexplorer/address/[address]/page.tsx b/packages/nextjs/app/blockexplorer/address/[address]/page.tsx index 5dfe14d..85a30d0 100644 --- a/packages/nextjs/app/blockexplorer/address/[address]/page.tsx +++ b/packages/nextjs/app/blockexplorer/address/[address]/page.tsx @@ -1,4 +1,3 @@ - import fs from "fs"; import path from "path"; import { hardhat } from "viem/chains"; @@ -92,4 +91,4 @@ const AddressPage = async ({ params }: PageProps) => { return ; }; -export default AddressPage; \ No newline at end of file +export default AddressPage; diff --git a/packages/nextjs/components/dashboard/ClaimRoleCard.tsx b/packages/nextjs/components/dashboard/ClaimRoleCard.tsx index e1e6162..735d986 100644 --- a/packages/nextjs/components/dashboard/ClaimRoleCard.tsx +++ b/packages/nextjs/components/dashboard/ClaimRoleCard.tsx @@ -7,13 +7,13 @@ const roles = [ { label: "Miner", role: "MINER" }, { label: "Transporter", role: "TRANSPORTER" }, { label: "Auditor", role: "AUDITOR" }, - { label: "Inspector", role: "Inspector" }, + { label: "Inspector", role: "INSPECTOR" }, ]; export const ClaimRoleCard: React.FC = () => { return (
-

Congluations!

+

Congratulations!

Claim a role that will be used to identify you in Stoneproof platform.

@@ -23,7 +23,9 @@ export const ClaimRoleCard: React.FC = () => { {roles.map(role => ( - {role.label} + + {role.label} + ))} diff --git a/packages/nextjs/contracts/DataRegistry.json b/packages/nextjs/contracts/DataRegistry.json index 629862c..f3770a5 100644 --- a/packages/nextjs/contracts/DataRegistry.json +++ b/packages/nextjs/contracts/DataRegistry.json @@ -1,536 +1,535 @@ { - "_format": "hh-sol-artifact-1", - "contractName": "DataRegistry", - "sourceName": "contracts/DataRegistry.sol", - "abi": [ - { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "AccessControlBadConfirmation", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "neededRole", - "type": "bytes32" - } - ], - "name": "AccessControlUnauthorizedAccount", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint256", - "name": "eventId", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "batchId", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "eventType", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "details", - "type": "string" - } - ], - "name": "EventRecorded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "previousAdminRole", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "newAdminRole", - "type": "bytes32" - } - ], - "name": "RoleAdminChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "indexed": true, - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "RoleRevoked", - "type": "event" - }, - { - "inputs": [], - "name": "AUDITOR_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "DEFAULT_ADMIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "SUPPLY_CHAIN_ROLE", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_batchId", - "type": "uint256" - } - ], - "name": "auditBatch", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "batchId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "triggeredBy", - "type": "address" - }, - { - "internalType": "string", - "name": "eventType", - "type": "string" - }, - { - "internalType": "string", - "name": "details", - "type": "string" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "internalType": "struct DataRegistry.EventLog[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "batchEventIds", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "eventCounter", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "name": "events", - "outputs": [ - { - "internalType": "uint256", - "name": "batchId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "triggeredBy", - "type": "address" - }, - { - "internalType": "string", - "name": "eventType", - "type": "string" - }, - { - "internalType": "string", - "name": "details", - "type": "string" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_batchId", - "type": "uint256" - } - ], - "name": "getBatchEvents", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "batchId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "triggeredBy", - "type": "address" - }, - { - "internalType": "string", - "name": "eventType", - "type": "string" - }, - { - "internalType": "string", - "name": "details", - "type": "string" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "internalType": "struct DataRegistry.EventLog[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_eventId", - "type": "uint256" - } - ], - "name": "getEventDetails", - "outputs": [ - { - "components": [ - { - "internalType": "uint256", - "name": "batchId", - "type": "uint256" - }, - { - "internalType": "address", - "name": "triggeredBy", - "type": "address" - }, - { - "internalType": "string", - "name": "eventType", - "type": "string" - }, - { - "internalType": "string", - "name": "details", - "type": "string" - }, - { - "internalType": "uint256", - "name": "timestamp", - "type": "uint256" - } - ], - "internalType": "struct DataRegistry.EventLog", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - } - ], - "name": "getRoleAdmin", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "grantRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "hasRole", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_batchId", - "type": "uint256" - }, - { - "internalType": "string", - "name": "_eventType", - "type": "string" - }, - { - "internalType": "string", - "name": "_details", - "type": "string" - } - ], - "name": "recordEvent", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "callerConfirmation", - "type": "address" - } - ], - "name": "renounceRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "role", - "type": "bytes32" - }, - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "revokeRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - } - ], - "bytecode": "0x608060405234801561001057600080fd5b506100246000801b3361002a60201b60201c565b50610199565b600061003c838361012760201b60201c565b61011c57600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506100b961019160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610121565b600090505b92915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b611d4a806101a86000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806391d1485411610097578063ead37b8b11610066578063ead37b8b146102c3578063ec38d5a0146102f3578063ecd4066014610323578063f24cb0341461035357610100565b806391d148541461023d5780639c79e78b1461026d578063a217fddf14610289578063d547741f146102a757610100565b80632f2ff15d116100d35780632f2ff15d146101c957806336568abe146101e557806352c55db9146102015780636e1d616e1461021f57610100565b806301ffc9a71461010557806308649a06146101355780630b79143014610165578063248a9ca314610199575b600080fd5b61011f600480360381019061011a9190611141565b610371565b60405161012c9190611189565b60405180910390f35b61014f600480360381019061014a91906111da565b6103eb565b60405161015c9190611229565b60405180910390f35b61017f600480360381019061017a9190611244565b61041c565b604051610190959493929190611342565b60405180910390f35b6101b360048036038101906101ae91906113d9565b610582565b6040516101c09190611415565b60405180910390f35b6101e360048036038101906101de919061145c565b6105a1565b005b6101ff60048036038101906101fa919061145c565b6105c3565b005b61020961063e565b6040516102169190611229565b60405180910390f35b610227610644565b6040516102349190611415565b60405180910390f35b6102576004803603810190610252919061145c565b610668565b6040516102649190611189565b60405180910390f35b610287600480360381019061028291906115d1565b6106d2565b005b61029161086f565b60405161029e9190611415565b60405180910390f35b6102c160048036038101906102bc919061145c565b610876565b005b6102dd60048036038101906102d89190611244565b610898565b6040516102ea9190611803565b60405180910390f35b61030d60048036038101906103089190611244565b6108d5565b60405161031a91906118a2565b60405180910390f35b61033d60048036038101906103389190611244565b610ae9565b60405161034a9190611803565b60405180910390f35b61035b610db2565b6040516103689190611415565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806103e457506103e382610dd6565b5b9050919050565b6003602052816000526040600020818154811061040757600080fd5b90600052602060002001600091509150505481565b60026020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600201805461046b906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610497906118f3565b80156104e45780601f106104b9576101008083540402835291602001916104e4565b820191906000526020600020905b8154815290600101906020018083116104c757829003601f168201915b5050505050908060030180546104f9906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610525906118f3565b80156105725780601f1061054757610100808354040283529160200191610572565b820191906000526020600020905b81548152906001019060200180831161055557829003601f168201915b5050505050908060040154905085565b6000806000838152602001908152602001600020600101549050919050565b6105aa82610582565b6105b381610e40565b6105bd8383610e54565b50505050565b6105cb610f45565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461062f576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106398282610f4d565b505050565b60015481565b7f59a1c48e5837ad7a7f3dcedcbe129bf3249ec4fbf651fd4f5e2600ead39fe2f581565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f9fdd832c63a06cff8edefff7231d8026fd177377608db1841f7c881716ea19bc6106fc81610e40565b6001600081548092919061070f90611953565b91905055506040518060a001604052808581526020013373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001428152506002600060015481526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020190816107cc9190611b47565b5060608201518160030190816107e29190611b47565b5060808201518160040155905050600360008581526020019081526020016000206001549080600181540180825580915050600190039060005260206000200160009091909190915055836001547f2d48d2f69af261f5f302918c04726be4fefff850e3ec55d769d614526f1818328585604051610861929190611c19565b60405180910390a350505050565b6000801b81565b61087f82610582565b61088881610e40565b6108928383610f4d565b50505050565b60607f59a1c48e5837ad7a7f3dcedcbe129bf3249ec4fbf651fd4f5e2600ead39fe2f56108c481610e40565b6108cd83610ae9565b915050919050565b6108dd611090565b6000600260008481526020019081526020016000206004015403610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092d90611c9c565b60405180910390fd5b600260008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820180546109c4906118f3565b80601f01602080910402602001604051908101604052809291908181526020018280546109f0906118f3565b8015610a3d5780601f10610a1257610100808354040283529160200191610a3d565b820191906000526020600020905b815481529060010190602001808311610a2057829003601f168201915b50505050508152602001600382018054610a56906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a82906118f3565b8015610acf5780601f10610aa457610100808354040283529160200191610acf565b820191906000526020600020905b815481529060010190602001808311610ab257829003601f168201915b505050505081526020016004820154815250509050919050565b6060600060036000848152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610b4a57602002820191906000526020600020905b815481526020019060010190808311610b36575b505050505090506000815167ffffffffffffffff811115610b6e57610b6d6114a6565b5b604051908082528060200260200182016040528015610ba757816020015b610b94611090565b815260200190600190039081610b8c5790505b50905060005b8251811015610da75760026000848381518110610bcd57610bcc611cbc565b5b602002602001015181526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282018054610c5e906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8a906118f3565b8015610cd75780601f10610cac57610100808354040283529160200191610cd7565b820191906000526020600020905b815481529060010190602001808311610cba57829003601f168201915b50505050508152602001600382018054610cf0906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1c906118f3565b8015610d695780601f10610d3e57610100808354040283529160200191610d69565b820191906000526020600020905b815481529060010190602001808311610d4c57829003601f168201915b50505050508152602001600482015481525050828281518110610d8f57610d8e611cbc565b5b60200260200101819052508080600101915050610bad565b508092505050919050565b7f9fdd832c63a06cff8edefff7231d8026fd177377608db1841f7c881716ea19bc81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610e5181610e4c610f45565b61103f565b50565b6000610e608383610668565b610f3a57600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610ed7610f45565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610f3f565b600090505b92915050565b600033905090565b6000610f598383610668565b1561103457600080600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610fd1610f45565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611039565b600090505b92915050565b6110498282610668565b61108c5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611083929190611ceb565b60405180910390fd5b5050565b6040518060a0016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016060815260200160608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61111e816110e9565b811461112957600080fd5b50565b60008135905061113b81611115565b92915050565b600060208284031215611157576111566110df565b5b60006111658482850161112c565b91505092915050565b60008115159050919050565b6111838161116e565b82525050565b600060208201905061119e600083018461117a565b92915050565b6000819050919050565b6111b7816111a4565b81146111c257600080fd5b50565b6000813590506111d4816111ae565b92915050565b600080604083850312156111f1576111f06110df565b5b60006111ff858286016111c5565b9250506020611210858286016111c5565b9150509250929050565b611223816111a4565b82525050565b600060208201905061123e600083018461121a565b92915050565b60006020828403121561125a576112596110df565b5b6000611268848285016111c5565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061129c82611271565b9050919050565b6112ac81611291565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156112ec5780820151818401526020810190506112d1565b60008484015250505050565b6000601f19601f8301169050919050565b6000611314826112b2565b61131e81856112bd565b935061132e8185602086016112ce565b611337816112f8565b840191505092915050565b600060a082019050611357600083018861121a565b61136460208301876112a3565b81810360408301526113768186611309565b9050818103606083015261138a8185611309565b9050611399608083018461121a565b9695505050505050565b6000819050919050565b6113b6816113a3565b81146113c157600080fd5b50565b6000813590506113d3816113ad565b92915050565b6000602082840312156113ef576113ee6110df565b5b60006113fd848285016113c4565b91505092915050565b61140f816113a3565b82525050565b600060208201905061142a6000830184611406565b92915050565b61143981611291565b811461144457600080fd5b50565b60008135905061145681611430565b92915050565b60008060408385031215611473576114726110df565b5b6000611481858286016113c4565b925050602061149285828601611447565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6114de826112f8565b810181811067ffffffffffffffff821117156114fd576114fc6114a6565b5b80604052505050565b60006115106110d5565b905061151c82826114d5565b919050565b600067ffffffffffffffff82111561153c5761153b6114a6565b5b611545826112f8565b9050602081019050919050565b82818337600083830152505050565b600061157461156f84611521565b611506565b9050828152602081018484840111156115905761158f6114a1565b5b61159b848285611552565b509392505050565b600082601f8301126115b8576115b761149c565b5b81356115c8848260208601611561565b91505092915050565b6000806000606084860312156115ea576115e96110df565b5b60006115f8868287016111c5565b935050602084013567ffffffffffffffff811115611619576116186110e4565b5b611625868287016115a3565b925050604084013567ffffffffffffffff811115611646576116456110e4565b5b611652868287016115a3565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611691816111a4565b82525050565b6116a081611291565b82525050565b600082825260208201905092915050565b60006116c2826112b2565b6116cc81856116a6565b93506116dc8185602086016112ce565b6116e5816112f8565b840191505092915050565b600060a0830160008301516117086000860182611688565b50602083015161171b6020860182611697565b506040830151848203604086015261173382826116b7565b9150506060830151848203606086015261174d82826116b7565b91505060808301516117626080860182611688565b508091505092915050565b600061177983836116f0565b905092915050565b6000602082019050919050565b60006117998261165c565b6117a38185611667565b9350836020820285016117b585611678565b8060005b858110156117f157848403895281516117d2858261176d565b94506117dd83611781565b925060208a019950506001810190506117b9565b50829750879550505050505092915050565b6000602082019050818103600083015261181d818461178e565b905092915050565b600060a08301600083015161183d6000860182611688565b5060208301516118506020860182611697565b506040830151848203604086015261186882826116b7565b9150506060830151848203606086015261188282826116b7565b91505060808301516118976080860182611688565b508091505092915050565b600060208201905081810360008301526118bc8184611825565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061190b57607f821691505b60208210810361191e5761191d6118c4565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061195e826111a4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036119905761198f611924565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026119fd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826119c0565b611a0786836119c0565b95508019841693508086168417925050509392505050565b6000819050919050565b6000611a44611a3f611a3a846111a4565b611a1f565b6111a4565b9050919050565b6000819050919050565b611a5e83611a29565b611a72611a6a82611a4b565b8484546119cd565b825550505050565b600090565b611a87611a7a565b611a92818484611a55565b505050565b5b81811015611ab657611aab600082611a7f565b600181019050611a98565b5050565b601f821115611afb57611acc8161199b565b611ad5846119b0565b81016020851015611ae4578190505b611af8611af0856119b0565b830182611a97565b50505b505050565b600082821c905092915050565b6000611b1e60001984600802611b00565b1980831691505092915050565b6000611b378383611b0d565b9150826002028217905092915050565b611b50826112b2565b67ffffffffffffffff811115611b6957611b686114a6565b5b611b7382546118f3565b611b7e828285611aba565b600060209050601f831160018114611bb15760008415611b9f578287015190505b611ba98582611b2b565b865550611c11565b601f198416611bbf8661199b565b60005b82811015611be757848901518255600182019150602085019450602081019050611bc2565b86831015611c045784890151611c00601f891682611b0d565b8355505b6001600288020188555050505b505050505050565b60006040820190508181036000830152611c338185611309565b90508181036020830152611c478184611309565b90509392505050565b7f4576656e7420446f65736e277420457869737421210000000000000000000000600082015250565b6000611c866015836112bd565b9150611c9182611c50565b602082019050919050565b60006020820190508181036000830152611cb581611c79565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000604082019050611d0060008301856112a3565b611d0d6020830184611406565b939250505056fea26469706673582212201f315ef6c6f737ba01c0b5d652780a78e9750c5b536391bc9443932cdaf9b4ab64736f6c634300081b0033", - "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c806391d1485411610097578063ead37b8b11610066578063ead37b8b146102c3578063ec38d5a0146102f3578063ecd4066014610323578063f24cb0341461035357610100565b806391d148541461023d5780639c79e78b1461026d578063a217fddf14610289578063d547741f146102a757610100565b80632f2ff15d116100d35780632f2ff15d146101c957806336568abe146101e557806352c55db9146102015780636e1d616e1461021f57610100565b806301ffc9a71461010557806308649a06146101355780630b79143014610165578063248a9ca314610199575b600080fd5b61011f600480360381019061011a9190611141565b610371565b60405161012c9190611189565b60405180910390f35b61014f600480360381019061014a91906111da565b6103eb565b60405161015c9190611229565b60405180910390f35b61017f600480360381019061017a9190611244565b61041c565b604051610190959493929190611342565b60405180910390f35b6101b360048036038101906101ae91906113d9565b610582565b6040516101c09190611415565b60405180910390f35b6101e360048036038101906101de919061145c565b6105a1565b005b6101ff60048036038101906101fa919061145c565b6105c3565b005b61020961063e565b6040516102169190611229565b60405180910390f35b610227610644565b6040516102349190611415565b60405180910390f35b6102576004803603810190610252919061145c565b610668565b6040516102649190611189565b60405180910390f35b610287600480360381019061028291906115d1565b6106d2565b005b61029161086f565b60405161029e9190611415565b60405180910390f35b6102c160048036038101906102bc919061145c565b610876565b005b6102dd60048036038101906102d89190611244565b610898565b6040516102ea9190611803565b60405180910390f35b61030d60048036038101906103089190611244565b6108d5565b60405161031a91906118a2565b60405180910390f35b61033d60048036038101906103389190611244565b610ae9565b60405161034a9190611803565b60405180910390f35b61035b610db2565b6040516103689190611415565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806103e457506103e382610dd6565b5b9050919050565b6003602052816000526040600020818154811061040757600080fd5b90600052602060002001600091509150505481565b60026020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600201805461046b906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610497906118f3565b80156104e45780601f106104b9576101008083540402835291602001916104e4565b820191906000526020600020905b8154815290600101906020018083116104c757829003601f168201915b5050505050908060030180546104f9906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610525906118f3565b80156105725780601f1061054757610100808354040283529160200191610572565b820191906000526020600020905b81548152906001019060200180831161055557829003601f168201915b5050505050908060040154905085565b6000806000838152602001908152602001600020600101549050919050565b6105aa82610582565b6105b381610e40565b6105bd8383610e54565b50505050565b6105cb610f45565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461062f576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106398282610f4d565b505050565b60015481565b7f59a1c48e5837ad7a7f3dcedcbe129bf3249ec4fbf651fd4f5e2600ead39fe2f581565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f9fdd832c63a06cff8edefff7231d8026fd177377608db1841f7c881716ea19bc6106fc81610e40565b6001600081548092919061070f90611953565b91905055506040518060a001604052808581526020013373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001428152506002600060015481526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020190816107cc9190611b47565b5060608201518160030190816107e29190611b47565b5060808201518160040155905050600360008581526020019081526020016000206001549080600181540180825580915050600190039060005260206000200160009091909190915055836001547f2d48d2f69af261f5f302918c04726be4fefff850e3ec55d769d614526f1818328585604051610861929190611c19565b60405180910390a350505050565b6000801b81565b61087f82610582565b61088881610e40565b6108928383610f4d565b50505050565b60607f59a1c48e5837ad7a7f3dcedcbe129bf3249ec4fbf651fd4f5e2600ead39fe2f56108c481610e40565b6108cd83610ae9565b915050919050565b6108dd611090565b6000600260008481526020019081526020016000206004015403610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092d90611c9c565b60405180910390fd5b600260008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820180546109c4906118f3565b80601f01602080910402602001604051908101604052809291908181526020018280546109f0906118f3565b8015610a3d5780601f10610a1257610100808354040283529160200191610a3d565b820191906000526020600020905b815481529060010190602001808311610a2057829003601f168201915b50505050508152602001600382018054610a56906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a82906118f3565b8015610acf5780601f10610aa457610100808354040283529160200191610acf565b820191906000526020600020905b815481529060010190602001808311610ab257829003601f168201915b505050505081526020016004820154815250509050919050565b6060600060036000848152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610b4a57602002820191906000526020600020905b815481526020019060010190808311610b36575b505050505090506000815167ffffffffffffffff811115610b6e57610b6d6114a6565b5b604051908082528060200260200182016040528015610ba757816020015b610b94611090565b815260200190600190039081610b8c5790505b50905060005b8251811015610da75760026000848381518110610bcd57610bcc611cbc565b5b602002602001015181526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282018054610c5e906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8a906118f3565b8015610cd75780601f10610cac57610100808354040283529160200191610cd7565b820191906000526020600020905b815481529060010190602001808311610cba57829003601f168201915b50505050508152602001600382018054610cf0906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1c906118f3565b8015610d695780601f10610d3e57610100808354040283529160200191610d69565b820191906000526020600020905b815481529060010190602001808311610d4c57829003601f168201915b50505050508152602001600482015481525050828281518110610d8f57610d8e611cbc565b5b60200260200101819052508080600101915050610bad565b508092505050919050565b7f9fdd832c63a06cff8edefff7231d8026fd177377608db1841f7c881716ea19bc81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610e5181610e4c610f45565b61103f565b50565b6000610e608383610668565b610f3a57600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610ed7610f45565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610f3f565b600090505b92915050565b600033905090565b6000610f598383610668565b1561103457600080600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610fd1610f45565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611039565b600090505b92915050565b6110498282610668565b61108c5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611083929190611ceb565b60405180910390fd5b5050565b6040518060a0016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016060815260200160608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61111e816110e9565b811461112957600080fd5b50565b60008135905061113b81611115565b92915050565b600060208284031215611157576111566110df565b5b60006111658482850161112c565b91505092915050565b60008115159050919050565b6111838161116e565b82525050565b600060208201905061119e600083018461117a565b92915050565b6000819050919050565b6111b7816111a4565b81146111c257600080fd5b50565b6000813590506111d4816111ae565b92915050565b600080604083850312156111f1576111f06110df565b5b60006111ff858286016111c5565b9250506020611210858286016111c5565b9150509250929050565b611223816111a4565b82525050565b600060208201905061123e600083018461121a565b92915050565b60006020828403121561125a576112596110df565b5b6000611268848285016111c5565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061129c82611271565b9050919050565b6112ac81611291565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156112ec5780820151818401526020810190506112d1565b60008484015250505050565b6000601f19601f8301169050919050565b6000611314826112b2565b61131e81856112bd565b935061132e8185602086016112ce565b611337816112f8565b840191505092915050565b600060a082019050611357600083018861121a565b61136460208301876112a3565b81810360408301526113768186611309565b9050818103606083015261138a8185611309565b9050611399608083018461121a565b9695505050505050565b6000819050919050565b6113b6816113a3565b81146113c157600080fd5b50565b6000813590506113d3816113ad565b92915050565b6000602082840312156113ef576113ee6110df565b5b60006113fd848285016113c4565b91505092915050565b61140f816113a3565b82525050565b600060208201905061142a6000830184611406565b92915050565b61143981611291565b811461144457600080fd5b50565b60008135905061145681611430565b92915050565b60008060408385031215611473576114726110df565b5b6000611481858286016113c4565b925050602061149285828601611447565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6114de826112f8565b810181811067ffffffffffffffff821117156114fd576114fc6114a6565b5b80604052505050565b60006115106110d5565b905061151c82826114d5565b919050565b600067ffffffffffffffff82111561153c5761153b6114a6565b5b611545826112f8565b9050602081019050919050565b82818337600083830152505050565b600061157461156f84611521565b611506565b9050828152602081018484840111156115905761158f6114a1565b5b61159b848285611552565b509392505050565b600082601f8301126115b8576115b761149c565b5b81356115c8848260208601611561565b91505092915050565b6000806000606084860312156115ea576115e96110df565b5b60006115f8868287016111c5565b935050602084013567ffffffffffffffff811115611619576116186110e4565b5b611625868287016115a3565b925050604084013567ffffffffffffffff811115611646576116456110e4565b5b611652868287016115a3565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611691816111a4565b82525050565b6116a081611291565b82525050565b600082825260208201905092915050565b60006116c2826112b2565b6116cc81856116a6565b93506116dc8185602086016112ce565b6116e5816112f8565b840191505092915050565b600060a0830160008301516117086000860182611688565b50602083015161171b6020860182611697565b506040830151848203604086015261173382826116b7565b9150506060830151848203606086015261174d82826116b7565b91505060808301516117626080860182611688565b508091505092915050565b600061177983836116f0565b905092915050565b6000602082019050919050565b60006117998261165c565b6117a38185611667565b9350836020820285016117b585611678565b8060005b858110156117f157848403895281516117d2858261176d565b94506117dd83611781565b925060208a019950506001810190506117b9565b50829750879550505050505092915050565b6000602082019050818103600083015261181d818461178e565b905092915050565b600060a08301600083015161183d6000860182611688565b5060208301516118506020860182611697565b506040830151848203604086015261186882826116b7565b9150506060830151848203606086015261188282826116b7565b91505060808301516118976080860182611688565b508091505092915050565b600060208201905081810360008301526118bc8184611825565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061190b57607f821691505b60208210810361191e5761191d6118c4565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061195e826111a4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036119905761198f611924565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026119fd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826119c0565b611a0786836119c0565b95508019841693508086168417925050509392505050565b6000819050919050565b6000611a44611a3f611a3a846111a4565b611a1f565b6111a4565b9050919050565b6000819050919050565b611a5e83611a29565b611a72611a6a82611a4b565b8484546119cd565b825550505050565b600090565b611a87611a7a565b611a92818484611a55565b505050565b5b81811015611ab657611aab600082611a7f565b600181019050611a98565b5050565b601f821115611afb57611acc8161199b565b611ad5846119b0565b81016020851015611ae4578190505b611af8611af0856119b0565b830182611a97565b50505b505050565b600082821c905092915050565b6000611b1e60001984600802611b00565b1980831691505092915050565b6000611b378383611b0d565b9150826002028217905092915050565b611b50826112b2565b67ffffffffffffffff811115611b6957611b686114a6565b5b611b7382546118f3565b611b7e828285611aba565b600060209050601f831160018114611bb15760008415611b9f578287015190505b611ba98582611b2b565b865550611c11565b601f198416611bbf8661199b565b60005b82811015611be757848901518255600182019150602085019450602081019050611bc2565b86831015611c045784890151611c00601f891682611b0d565b8355505b6001600288020188555050505b505050505050565b60006040820190508181036000830152611c338185611309565b90508181036020830152611c478184611309565b90509392505050565b7f4576656e7420446f65736e277420457869737421210000000000000000000000600082015250565b6000611c866015836112bd565b9150611c9182611c50565b602082019050919050565b60006020820190508181036000830152611cb581611c79565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000604082019050611d0060008301856112a3565b611d0d6020830184611406565b939250505056fea26469706673582212201f315ef6c6f737ba01c0b5d652780a78e9750c5b536391bc9443932cdaf9b4ab64736f6c634300081b0033", - "linkReferences": {}, - "deployedLinkReferences": {} - } - \ No newline at end of file + "_format": "hh-sol-artifact-1", + "contractName": "DataRegistry", + "sourceName": "contracts/DataRegistry.sol", + "abi": [ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "AccessControlBadConfirmation", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "neededRole", + "type": "bytes32" + } + ], + "name": "AccessControlUnauthorizedAccount", + "type": "error" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "eventId", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "batchId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "string", + "name": "eventType", + "type": "string" + }, + { + "indexed": false, + "internalType": "string", + "name": "details", + "type": "string" + } + ], + "name": "EventRecorded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "previousAdminRole", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newAdminRole", + "type": "bytes32" + } + ], + "name": "RoleAdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleGranted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleRevoked", + "type": "event" + }, + { + "inputs": [], + "name": "AUDITOR_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "DEFAULT_ADMIN_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "SUPPLY_CHAIN_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_batchId", + "type": "uint256" + } + ], + "name": "auditBatch", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "batchId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "triggeredBy", + "type": "address" + }, + { + "internalType": "string", + "name": "eventType", + "type": "string" + }, + { + "internalType": "string", + "name": "details", + "type": "string" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "internalType": "struct DataRegistry.EventLog[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "batchEventIds", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "eventCounter", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "events", + "outputs": [ + { + "internalType": "uint256", + "name": "batchId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "triggeredBy", + "type": "address" + }, + { + "internalType": "string", + "name": "eventType", + "type": "string" + }, + { + "internalType": "string", + "name": "details", + "type": "string" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_batchId", + "type": "uint256" + } + ], + "name": "getBatchEvents", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "batchId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "triggeredBy", + "type": "address" + }, + { + "internalType": "string", + "name": "eventType", + "type": "string" + }, + { + "internalType": "string", + "name": "details", + "type": "string" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "internalType": "struct DataRegistry.EventLog[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_eventId", + "type": "uint256" + } + ], + "name": "getEventDetails", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "batchId", + "type": "uint256" + }, + { + "internalType": "address", + "name": "triggeredBy", + "type": "address" + }, + { + "internalType": "string", + "name": "eventType", + "type": "string" + }, + { + "internalType": "string", + "name": "details", + "type": "string" + }, + { + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "internalType": "struct DataRegistry.EventLog", + "name": "", + "type": "tuple" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleAdmin", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "_batchId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "_eventType", + "type": "string" + }, + { + "internalType": "string", + "name": "_details", + "type": "string" + } + ], + "name": "recordEvent", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "callerConfirmation", + "type": "address" + } + ], + "name": "renounceRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + } + ], + "bytecode": "0x608060405234801561001057600080fd5b506100246000801b3361002a60201b60201c565b50610199565b600061003c838361012760201b60201c565b61011c57600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506100b961019160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610121565b600090505b92915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b611d4a806101a86000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806391d1485411610097578063ead37b8b11610066578063ead37b8b146102c3578063ec38d5a0146102f3578063ecd4066014610323578063f24cb0341461035357610100565b806391d148541461023d5780639c79e78b1461026d578063a217fddf14610289578063d547741f146102a757610100565b80632f2ff15d116100d35780632f2ff15d146101c957806336568abe146101e557806352c55db9146102015780636e1d616e1461021f57610100565b806301ffc9a71461010557806308649a06146101355780630b79143014610165578063248a9ca314610199575b600080fd5b61011f600480360381019061011a9190611141565b610371565b60405161012c9190611189565b60405180910390f35b61014f600480360381019061014a91906111da565b6103eb565b60405161015c9190611229565b60405180910390f35b61017f600480360381019061017a9190611244565b61041c565b604051610190959493929190611342565b60405180910390f35b6101b360048036038101906101ae91906113d9565b610582565b6040516101c09190611415565b60405180910390f35b6101e360048036038101906101de919061145c565b6105a1565b005b6101ff60048036038101906101fa919061145c565b6105c3565b005b61020961063e565b6040516102169190611229565b60405180910390f35b610227610644565b6040516102349190611415565b60405180910390f35b6102576004803603810190610252919061145c565b610668565b6040516102649190611189565b60405180910390f35b610287600480360381019061028291906115d1565b6106d2565b005b61029161086f565b60405161029e9190611415565b60405180910390f35b6102c160048036038101906102bc919061145c565b610876565b005b6102dd60048036038101906102d89190611244565b610898565b6040516102ea9190611803565b60405180910390f35b61030d60048036038101906103089190611244565b6108d5565b60405161031a91906118a2565b60405180910390f35b61033d60048036038101906103389190611244565b610ae9565b60405161034a9190611803565b60405180910390f35b61035b610db2565b6040516103689190611415565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806103e457506103e382610dd6565b5b9050919050565b6003602052816000526040600020818154811061040757600080fd5b90600052602060002001600091509150505481565b60026020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600201805461046b906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610497906118f3565b80156104e45780601f106104b9576101008083540402835291602001916104e4565b820191906000526020600020905b8154815290600101906020018083116104c757829003601f168201915b5050505050908060030180546104f9906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610525906118f3565b80156105725780601f1061054757610100808354040283529160200191610572565b820191906000526020600020905b81548152906001019060200180831161055557829003601f168201915b5050505050908060040154905085565b6000806000838152602001908152602001600020600101549050919050565b6105aa82610582565b6105b381610e40565b6105bd8383610e54565b50505050565b6105cb610f45565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461062f576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106398282610f4d565b505050565b60015481565b7f59a1c48e5837ad7a7f3dcedcbe129bf3249ec4fbf651fd4f5e2600ead39fe2f581565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f9fdd832c63a06cff8edefff7231d8026fd177377608db1841f7c881716ea19bc6106fc81610e40565b6001600081548092919061070f90611953565b91905055506040518060a001604052808581526020013373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001428152506002600060015481526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020190816107cc9190611b47565b5060608201518160030190816107e29190611b47565b5060808201518160040155905050600360008581526020019081526020016000206001549080600181540180825580915050600190039060005260206000200160009091909190915055836001547f2d48d2f69af261f5f302918c04726be4fefff850e3ec55d769d614526f1818328585604051610861929190611c19565b60405180910390a350505050565b6000801b81565b61087f82610582565b61088881610e40565b6108928383610f4d565b50505050565b60607f59a1c48e5837ad7a7f3dcedcbe129bf3249ec4fbf651fd4f5e2600ead39fe2f56108c481610e40565b6108cd83610ae9565b915050919050565b6108dd611090565b6000600260008481526020019081526020016000206004015403610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092d90611c9c565b60405180910390fd5b600260008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820180546109c4906118f3565b80601f01602080910402602001604051908101604052809291908181526020018280546109f0906118f3565b8015610a3d5780601f10610a1257610100808354040283529160200191610a3d565b820191906000526020600020905b815481529060010190602001808311610a2057829003601f168201915b50505050508152602001600382018054610a56906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a82906118f3565b8015610acf5780601f10610aa457610100808354040283529160200191610acf565b820191906000526020600020905b815481529060010190602001808311610ab257829003601f168201915b505050505081526020016004820154815250509050919050565b6060600060036000848152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610b4a57602002820191906000526020600020905b815481526020019060010190808311610b36575b505050505090506000815167ffffffffffffffff811115610b6e57610b6d6114a6565b5b604051908082528060200260200182016040528015610ba757816020015b610b94611090565b815260200190600190039081610b8c5790505b50905060005b8251811015610da75760026000848381518110610bcd57610bcc611cbc565b5b602002602001015181526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282018054610c5e906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8a906118f3565b8015610cd75780601f10610cac57610100808354040283529160200191610cd7565b820191906000526020600020905b815481529060010190602001808311610cba57829003601f168201915b50505050508152602001600382018054610cf0906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1c906118f3565b8015610d695780601f10610d3e57610100808354040283529160200191610d69565b820191906000526020600020905b815481529060010190602001808311610d4c57829003601f168201915b50505050508152602001600482015481525050828281518110610d8f57610d8e611cbc565b5b60200260200101819052508080600101915050610bad565b508092505050919050565b7f9fdd832c63a06cff8edefff7231d8026fd177377608db1841f7c881716ea19bc81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610e5181610e4c610f45565b61103f565b50565b6000610e608383610668565b610f3a57600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610ed7610f45565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610f3f565b600090505b92915050565b600033905090565b6000610f598383610668565b1561103457600080600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610fd1610f45565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611039565b600090505b92915050565b6110498282610668565b61108c5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611083929190611ceb565b60405180910390fd5b5050565b6040518060a0016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016060815260200160608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61111e816110e9565b811461112957600080fd5b50565b60008135905061113b81611115565b92915050565b600060208284031215611157576111566110df565b5b60006111658482850161112c565b91505092915050565b60008115159050919050565b6111838161116e565b82525050565b600060208201905061119e600083018461117a565b92915050565b6000819050919050565b6111b7816111a4565b81146111c257600080fd5b50565b6000813590506111d4816111ae565b92915050565b600080604083850312156111f1576111f06110df565b5b60006111ff858286016111c5565b9250506020611210858286016111c5565b9150509250929050565b611223816111a4565b82525050565b600060208201905061123e600083018461121a565b92915050565b60006020828403121561125a576112596110df565b5b6000611268848285016111c5565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061129c82611271565b9050919050565b6112ac81611291565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156112ec5780820151818401526020810190506112d1565b60008484015250505050565b6000601f19601f8301169050919050565b6000611314826112b2565b61131e81856112bd565b935061132e8185602086016112ce565b611337816112f8565b840191505092915050565b600060a082019050611357600083018861121a565b61136460208301876112a3565b81810360408301526113768186611309565b9050818103606083015261138a8185611309565b9050611399608083018461121a565b9695505050505050565b6000819050919050565b6113b6816113a3565b81146113c157600080fd5b50565b6000813590506113d3816113ad565b92915050565b6000602082840312156113ef576113ee6110df565b5b60006113fd848285016113c4565b91505092915050565b61140f816113a3565b82525050565b600060208201905061142a6000830184611406565b92915050565b61143981611291565b811461144457600080fd5b50565b60008135905061145681611430565b92915050565b60008060408385031215611473576114726110df565b5b6000611481858286016113c4565b925050602061149285828601611447565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6114de826112f8565b810181811067ffffffffffffffff821117156114fd576114fc6114a6565b5b80604052505050565b60006115106110d5565b905061151c82826114d5565b919050565b600067ffffffffffffffff82111561153c5761153b6114a6565b5b611545826112f8565b9050602081019050919050565b82818337600083830152505050565b600061157461156f84611521565b611506565b9050828152602081018484840111156115905761158f6114a1565b5b61159b848285611552565b509392505050565b600082601f8301126115b8576115b761149c565b5b81356115c8848260208601611561565b91505092915050565b6000806000606084860312156115ea576115e96110df565b5b60006115f8868287016111c5565b935050602084013567ffffffffffffffff811115611619576116186110e4565b5b611625868287016115a3565b925050604084013567ffffffffffffffff811115611646576116456110e4565b5b611652868287016115a3565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611691816111a4565b82525050565b6116a081611291565b82525050565b600082825260208201905092915050565b60006116c2826112b2565b6116cc81856116a6565b93506116dc8185602086016112ce565b6116e5816112f8565b840191505092915050565b600060a0830160008301516117086000860182611688565b50602083015161171b6020860182611697565b506040830151848203604086015261173382826116b7565b9150506060830151848203606086015261174d82826116b7565b91505060808301516117626080860182611688565b508091505092915050565b600061177983836116f0565b905092915050565b6000602082019050919050565b60006117998261165c565b6117a38185611667565b9350836020820285016117b585611678565b8060005b858110156117f157848403895281516117d2858261176d565b94506117dd83611781565b925060208a019950506001810190506117b9565b50829750879550505050505092915050565b6000602082019050818103600083015261181d818461178e565b905092915050565b600060a08301600083015161183d6000860182611688565b5060208301516118506020860182611697565b506040830151848203604086015261186882826116b7565b9150506060830151848203606086015261188282826116b7565b91505060808301516118976080860182611688565b508091505092915050565b600060208201905081810360008301526118bc8184611825565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061190b57607f821691505b60208210810361191e5761191d6118c4565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061195e826111a4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036119905761198f611924565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026119fd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826119c0565b611a0786836119c0565b95508019841693508086168417925050509392505050565b6000819050919050565b6000611a44611a3f611a3a846111a4565b611a1f565b6111a4565b9050919050565b6000819050919050565b611a5e83611a29565b611a72611a6a82611a4b565b8484546119cd565b825550505050565b600090565b611a87611a7a565b611a92818484611a55565b505050565b5b81811015611ab657611aab600082611a7f565b600181019050611a98565b5050565b601f821115611afb57611acc8161199b565b611ad5846119b0565b81016020851015611ae4578190505b611af8611af0856119b0565b830182611a97565b50505b505050565b600082821c905092915050565b6000611b1e60001984600802611b00565b1980831691505092915050565b6000611b378383611b0d565b9150826002028217905092915050565b611b50826112b2565b67ffffffffffffffff811115611b6957611b686114a6565b5b611b7382546118f3565b611b7e828285611aba565b600060209050601f831160018114611bb15760008415611b9f578287015190505b611ba98582611b2b565b865550611c11565b601f198416611bbf8661199b565b60005b82811015611be757848901518255600182019150602085019450602081019050611bc2565b86831015611c045784890151611c00601f891682611b0d565b8355505b6001600288020188555050505b505050505050565b60006040820190508181036000830152611c338185611309565b90508181036020830152611c478184611309565b90509392505050565b7f4576656e7420446f65736e277420457869737421210000000000000000000000600082015250565b6000611c866015836112bd565b9150611c9182611c50565b602082019050919050565b60006020820190508181036000830152611cb581611c79565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000604082019050611d0060008301856112a3565b611d0d6020830184611406565b939250505056fea26469706673582212201f315ef6c6f737ba01c0b5d652780a78e9750c5b536391bc9443932cdaf9b4ab64736f6c634300081b0033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c806391d1485411610097578063ead37b8b11610066578063ead37b8b146102c3578063ec38d5a0146102f3578063ecd4066014610323578063f24cb0341461035357610100565b806391d148541461023d5780639c79e78b1461026d578063a217fddf14610289578063d547741f146102a757610100565b80632f2ff15d116100d35780632f2ff15d146101c957806336568abe146101e557806352c55db9146102015780636e1d616e1461021f57610100565b806301ffc9a71461010557806308649a06146101355780630b79143014610165578063248a9ca314610199575b600080fd5b61011f600480360381019061011a9190611141565b610371565b60405161012c9190611189565b60405180910390f35b61014f600480360381019061014a91906111da565b6103eb565b60405161015c9190611229565b60405180910390f35b61017f600480360381019061017a9190611244565b61041c565b604051610190959493929190611342565b60405180910390f35b6101b360048036038101906101ae91906113d9565b610582565b6040516101c09190611415565b60405180910390f35b6101e360048036038101906101de919061145c565b6105a1565b005b6101ff60048036038101906101fa919061145c565b6105c3565b005b61020961063e565b6040516102169190611229565b60405180910390f35b610227610644565b6040516102349190611415565b60405180910390f35b6102576004803603810190610252919061145c565b610668565b6040516102649190611189565b60405180910390f35b610287600480360381019061028291906115d1565b6106d2565b005b61029161086f565b60405161029e9190611415565b60405180910390f35b6102c160048036038101906102bc919061145c565b610876565b005b6102dd60048036038101906102d89190611244565b610898565b6040516102ea9190611803565b60405180910390f35b61030d60048036038101906103089190611244565b6108d5565b60405161031a91906118a2565b60405180910390f35b61033d60048036038101906103389190611244565b610ae9565b60405161034a9190611803565b60405180910390f35b61035b610db2565b6040516103689190611415565b60405180910390f35b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806103e457506103e382610dd6565b5b9050919050565b6003602052816000526040600020818154811061040757600080fd5b90600052602060002001600091509150505481565b60026020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600201805461046b906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610497906118f3565b80156104e45780601f106104b9576101008083540402835291602001916104e4565b820191906000526020600020905b8154815290600101906020018083116104c757829003601f168201915b5050505050908060030180546104f9906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610525906118f3565b80156105725780601f1061054757610100808354040283529160200191610572565b820191906000526020600020905b81548152906001019060200180831161055557829003601f168201915b5050505050908060040154905085565b6000806000838152602001908152602001600020600101549050919050565b6105aa82610582565b6105b381610e40565b6105bd8383610e54565b50505050565b6105cb610f45565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461062f576040517f6697b23200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6106398282610f4d565b505050565b60015481565b7f59a1c48e5837ad7a7f3dcedcbe129bf3249ec4fbf651fd4f5e2600ead39fe2f581565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7f9fdd832c63a06cff8edefff7231d8026fd177377608db1841f7c881716ea19bc6106fc81610e40565b6001600081548092919061070f90611953565b91905055506040518060a001604052808581526020013373ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001428152506002600060015481526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060408201518160020190816107cc9190611b47565b5060608201518160030190816107e29190611b47565b5060808201518160040155905050600360008581526020019081526020016000206001549080600181540180825580915050600190039060005260206000200160009091909190915055836001547f2d48d2f69af261f5f302918c04726be4fefff850e3ec55d769d614526f1818328585604051610861929190611c19565b60405180910390a350505050565b6000801b81565b61087f82610582565b61088881610e40565b6108928383610f4d565b50505050565b60607f59a1c48e5837ad7a7f3dcedcbe129bf3249ec4fbf651fd4f5e2600ead39fe2f56108c481610e40565b6108cd83610ae9565b915050919050565b6108dd611090565b6000600260008481526020019081526020016000206004015403610936576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092d90611c9c565b60405180910390fd5b600260008381526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016002820180546109c4906118f3565b80601f01602080910402602001604051908101604052809291908181526020018280546109f0906118f3565b8015610a3d5780601f10610a1257610100808354040283529160200191610a3d565b820191906000526020600020905b815481529060010190602001808311610a2057829003601f168201915b50505050508152602001600382018054610a56906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a82906118f3565b8015610acf5780601f10610aa457610100808354040283529160200191610acf565b820191906000526020600020905b815481529060010190602001808311610ab257829003601f168201915b505050505081526020016004820154815250509050919050565b6060600060036000848152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015610b4a57602002820191906000526020600020905b815481526020019060010190808311610b36575b505050505090506000815167ffffffffffffffff811115610b6e57610b6d6114a6565b5b604051908082528060200260200182016040528015610ba757816020015b610b94611090565b815260200190600190039081610b8c5790505b50905060005b8251811015610da75760026000848381518110610bcd57610bcc611cbc565b5b602002602001015181526020019081526020016000206040518060a0016040529081600082015481526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600282018054610c5e906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8a906118f3565b8015610cd75780601f10610cac57610100808354040283529160200191610cd7565b820191906000526020600020905b815481529060010190602001808311610cba57829003601f168201915b50505050508152602001600382018054610cf0906118f3565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1c906118f3565b8015610d695780601f10610d3e57610100808354040283529160200191610d69565b820191906000526020600020905b815481529060010190602001808311610d4c57829003601f168201915b50505050508152602001600482015481525050828281518110610d8f57610d8e611cbc565b5b60200260200101819052508080600101915050610bad565b508092505050919050565b7f9fdd832c63a06cff8edefff7231d8026fd177377608db1841f7c881716ea19bc81565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610e5181610e4c610f45565b61103f565b50565b6000610e608383610668565b610f3a57600160008085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610ed7610f45565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a460019050610f3f565b600090505b92915050565b600033905090565b6000610f598383610668565b1561103457600080600085815260200190815260200160002060000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610fd1610f45565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16847ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a460019050611039565b600090505b92915050565b6110498282610668565b61108c5780826040517fe2517d3f000000000000000000000000000000000000000000000000000000008152600401611083929190611ceb565b60405180910390fd5b5050565b6040518060a0016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016060815260200160608152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61111e816110e9565b811461112957600080fd5b50565b60008135905061113b81611115565b92915050565b600060208284031215611157576111566110df565b5b60006111658482850161112c565b91505092915050565b60008115159050919050565b6111838161116e565b82525050565b600060208201905061119e600083018461117a565b92915050565b6000819050919050565b6111b7816111a4565b81146111c257600080fd5b50565b6000813590506111d4816111ae565b92915050565b600080604083850312156111f1576111f06110df565b5b60006111ff858286016111c5565b9250506020611210858286016111c5565b9150509250929050565b611223816111a4565b82525050565b600060208201905061123e600083018461121a565b92915050565b60006020828403121561125a576112596110df565b5b6000611268848285016111c5565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061129c82611271565b9050919050565b6112ac81611291565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b838110156112ec5780820151818401526020810190506112d1565b60008484015250505050565b6000601f19601f8301169050919050565b6000611314826112b2565b61131e81856112bd565b935061132e8185602086016112ce565b611337816112f8565b840191505092915050565b600060a082019050611357600083018861121a565b61136460208301876112a3565b81810360408301526113768186611309565b9050818103606083015261138a8185611309565b9050611399608083018461121a565b9695505050505050565b6000819050919050565b6113b6816113a3565b81146113c157600080fd5b50565b6000813590506113d3816113ad565b92915050565b6000602082840312156113ef576113ee6110df565b5b60006113fd848285016113c4565b91505092915050565b61140f816113a3565b82525050565b600060208201905061142a6000830184611406565b92915050565b61143981611291565b811461144457600080fd5b50565b60008135905061145681611430565b92915050565b60008060408385031215611473576114726110df565b5b6000611481858286016113c4565b925050602061149285828601611447565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6114de826112f8565b810181811067ffffffffffffffff821117156114fd576114fc6114a6565b5b80604052505050565b60006115106110d5565b905061151c82826114d5565b919050565b600067ffffffffffffffff82111561153c5761153b6114a6565b5b611545826112f8565b9050602081019050919050565b82818337600083830152505050565b600061157461156f84611521565b611506565b9050828152602081018484840111156115905761158f6114a1565b5b61159b848285611552565b509392505050565b600082601f8301126115b8576115b761149c565b5b81356115c8848260208601611561565b91505092915050565b6000806000606084860312156115ea576115e96110df565b5b60006115f8868287016111c5565b935050602084013567ffffffffffffffff811115611619576116186110e4565b5b611625868287016115a3565b925050604084013567ffffffffffffffff811115611646576116456110e4565b5b611652868287016115a3565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611691816111a4565b82525050565b6116a081611291565b82525050565b600082825260208201905092915050565b60006116c2826112b2565b6116cc81856116a6565b93506116dc8185602086016112ce565b6116e5816112f8565b840191505092915050565b600060a0830160008301516117086000860182611688565b50602083015161171b6020860182611697565b506040830151848203604086015261173382826116b7565b9150506060830151848203606086015261174d82826116b7565b91505060808301516117626080860182611688565b508091505092915050565b600061177983836116f0565b905092915050565b6000602082019050919050565b60006117998261165c565b6117a38185611667565b9350836020820285016117b585611678565b8060005b858110156117f157848403895281516117d2858261176d565b94506117dd83611781565b925060208a019950506001810190506117b9565b50829750879550505050505092915050565b6000602082019050818103600083015261181d818461178e565b905092915050565b600060a08301600083015161183d6000860182611688565b5060208301516118506020860182611697565b506040830151848203604086015261186882826116b7565b9150506060830151848203606086015261188282826116b7565b91505060808301516118976080860182611688565b508091505092915050565b600060208201905081810360008301526118bc8184611825565b905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061190b57607f821691505b60208210810361191e5761191d6118c4565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061195e826111a4565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036119905761198f611924565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026119fd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826119c0565b611a0786836119c0565b95508019841693508086168417925050509392505050565b6000819050919050565b6000611a44611a3f611a3a846111a4565b611a1f565b6111a4565b9050919050565b6000819050919050565b611a5e83611a29565b611a72611a6a82611a4b565b8484546119cd565b825550505050565b600090565b611a87611a7a565b611a92818484611a55565b505050565b5b81811015611ab657611aab600082611a7f565b600181019050611a98565b5050565b601f821115611afb57611acc8161199b565b611ad5846119b0565b81016020851015611ae4578190505b611af8611af0856119b0565b830182611a97565b50505b505050565b600082821c905092915050565b6000611b1e60001984600802611b00565b1980831691505092915050565b6000611b378383611b0d565b9150826002028217905092915050565b611b50826112b2565b67ffffffffffffffff811115611b6957611b686114a6565b5b611b7382546118f3565b611b7e828285611aba565b600060209050601f831160018114611bb15760008415611b9f578287015190505b611ba98582611b2b565b865550611c11565b601f198416611bbf8661199b565b60005b82811015611be757848901518255600182019150602085019450602081019050611bc2565b86831015611c045784890151611c00601f891682611b0d565b8355505b6001600288020188555050505b505050505050565b60006040820190508181036000830152611c338185611309565b90508181036020830152611c478184611309565b90509392505050565b7f4576656e7420446f65736e277420457869737421210000000000000000000000600082015250565b6000611c866015836112bd565b9150611c9182611c50565b602082019050919050565b60006020820190508181036000830152611cb581611c79565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000604082019050611d0060008301856112a3565b611d0d6020830184611406565b939250505056fea26469706673582212201f315ef6c6f737ba01c0b5d652780a78e9750c5b536391bc9443932cdaf9b4ab64736f6c634300081b0033", + "linkReferences": {}, + "deployedLinkReferences": {} +} diff --git a/src/components/marketing/hero-section.tsx b/src/components/marketing/hero-section.tsx deleted file mode 100644 index e7102d9..0000000 --- a/src/components/marketing/hero-section.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { ArrowRight, Lock } from "lucide-react"; -import Link from "next/link"; - -export const HeroSection: React.FC = () => { - return ( -
- - -

- Revolutioning mineral supply chain with using the Etherium! -

- - -
-

- The Platform To Optimize Mineral Supply Chains -

-

- Streamline your mineral supply chain operations with enhanced - transparency, and secure transactions. Leverage blockchain technology - to ensure efficiency and trust across the supply chain. -

-
-
- -
-
-
-

$43.63M

-

30 Day Volume

-
-
-

400T

-

Managed minerals

-
-
-

$159.73M

-

Yearly Revenue

-
-
-
- ); -};