@jbx-protocol/contracts-v1
Version:
366 lines (365 loc) • 8 kB
JSON
{
"address": "0xfeCeD4eBe0529a429d7DEE321Ec6F57287B8f415",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_projectId",
"type": "uint256"
},
{
"internalType": "contract ITerminalDirectory",
"name": "_terminalDirectory",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [
{
"internalType": "contract ITerminalV1",
"name": "_terminalV1",
"type": "address"
}
],
"name": "acceptGovernance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IPrices",
"name": "_prices",
"type": "address"
},
{
"internalType": "contract AggregatorV3Interface",
"name": "_feed",
"type": "address"
},
{
"internalType": "uint256",
"name": "_currency",
"type": "uint256"
}
],
"name": "addPriceFeed",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract ITerminal",
"name": "_from",
"type": "address"
},
{
"internalType": "contract ITerminal",
"name": "_to",
"type": "address"
}
],
"name": "allowMigration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract ITerminalV1",
"name": "_terminalV1",
"type": "address"
},
{
"internalType": "address payable",
"name": "_newGovernance",
"type": "address"
}
],
"name": "appointGovernance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "onERC721Received",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_beneficiary",
"type": "address"
},
{
"internalType": "string",
"name": "_memo",
"type": "string"
},
{
"internalType": "bool",
"name": "_preferUnstakedTickets",
"type": "bool"
}
],
"name": "pay",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "projectId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract ITerminalV1",
"name": "_terminalV1",
"type": "address"
},
{
"internalType": "uint256",
"name": "_fee",
"type": "uint256"
}
],
"name": "setFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IOperatorStore",
"name": "_operatorStore",
"type": "address"
},
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "uint256",
"name": "_projectId",
"type": "uint256"
},
{
"internalType": "uint256[]",
"name": "_permissionIndexes",
"type": "uint256[]"
}
],
"name": "setOperator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IOperatorStore",
"name": "_operatorStore",
"type": "address"
},
{
"internalType": "address[]",
"name": "_operators",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "_projectIds",
"type": "uint256[]"
},
{
"internalType": "uint256[][]",
"name": "_permissionIndexes",
"type": "uint256[][]"
}
],
"name": "setOperators",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_projectId",
"type": "uint256"
}
],
"name": "setProjectId",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "terminalDirectory",
"outputs": [
{
"internalType": "contract ITerminalDirectory",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IProjects",
"name": "_projects",
"type": "address"
},
{
"internalType": "address",
"name": "_newOwner",
"type": "address"
},
{
"internalType": "uint256",
"name": "_projectId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "transferProjectOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "_beneficiary",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
}