PoC-Doc-Delivery / PoC_Transaction_Data / ABI.js
ABI.js
Raw
const abi = [
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "address",
                "name": "account",
                "type": "address"
            },
            {
                "indexed": false,
                "internalType": "bytes32",
                "name": "identifier",
                "type": "bytes32"
            },
            {
                "indexed": false,
                "internalType": "uint256",
                "name": "info",
                "type": "uint256"
            },
            {
                "indexed": false,
                "internalType": "bytes",
                "name": "evidence",
                "type": "bytes"
            }
        ],
        "name": "Result",
        "type": "event"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "_id",
                "type": "bytes32"
            },
            {
                "internalType": "address",
                "name": "_addrA",
                "type": "address"
            },
            {
                "internalType": "bytes32",
                "name": "_h",
                "type": "bytes32"
            },
            {
                "internalType": "uint256",
                "name": "_tm",
                "type": "uint256"
            },
            {
                "internalType": "uint256",
                "name": "_td",
                "type": "uint256"
            },
            {
                "internalType": "bytes",
                "name": "_fc",
                "type": "bytes"
            }
        ],
        "name": "accept",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "_id",
                "type": "bytes32"
            }
        ],
        "name": "getStatus",
        "outputs": [
            {
                "internalType": "enum DocDelivery.State",
                "name": "",
                "type": "uint8"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "_id",
                "type": "bytes32"
            },
            {
                "internalType": "bytes",
                "name": "_k",
                "type": "bytes"
            }
        ],
        "name": "publish",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    }
];

module.exports = { abi };