mirror of https://github.com/nucypher/nucypher.git
234 lines
5.3 KiB
JSON
234 lines
5.3 KiB
JSON
{
|
|
"customABIMultipleParameters" : {
|
|
"contractAddress": "0x01B67b1194C75264d06F808A921228a95C765dd7",
|
|
"method": "isSubscribedToToken",
|
|
"parameters": [":userAddress", "subscriptionCode", 4],
|
|
"functionAbi": {
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "subscriber",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "subscriptionCode",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "tokenId",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"name": "isSubscribedToToken",
|
|
"outputs": [
|
|
{
|
|
"components": [
|
|
{
|
|
"internalType": "bool",
|
|
"name": "valid",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"internalType": "bytes32",
|
|
"name": "subscriptionType",
|
|
"type": "bytes32"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "price",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "createdAt",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "expireAt",
|
|
"type": "uint256"
|
|
},
|
|
{
|
|
"internalType": "bytes",
|
|
"name": "data",
|
|
"type": "bytes"
|
|
}
|
|
],
|
|
"internalType": "struct Project.SubscriberData",
|
|
"name": "",
|
|
"type": "tuple"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function",
|
|
"constant": true
|
|
},
|
|
"chain": 137,
|
|
"returnValueTest": {
|
|
"comparator": "==",
|
|
"value": true
|
|
}
|
|
},
|
|
"TStaking": {
|
|
"contractAddress": "0x01B67b1194C75264d06F808A921228a95C765dd7",
|
|
"chain": 1,
|
|
"method": "stakes",
|
|
"functionAbi": {
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "stakingProvider",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "stakes",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint96",
|
|
"name": "tStake",
|
|
"type": "uint96"
|
|
},
|
|
{
|
|
"internalType": "uint96",
|
|
"name": "keepInTStake",
|
|
"type": "uint96"
|
|
},
|
|
{
|
|
"internalType": "uint96",
|
|
"name": "nuInTStake",
|
|
"type": "uint96"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
"parameters": [
|
|
":userAddress"
|
|
],
|
|
"returnValueTest": {
|
|
"key": "tStake",
|
|
"comparator": ">",
|
|
"value": 0
|
|
}
|
|
},
|
|
"SubscriptionManagerPayment": {
|
|
"contractAddress": "0xaDD9D957170dF6F33982001E4c22eCCdd5539118",
|
|
"chain": 137,
|
|
"method": "isValidPolicy",
|
|
"parameters": [
|
|
":hrac"
|
|
],
|
|
"returnValueTest": {
|
|
"comparator": "==",
|
|
"value": true
|
|
}
|
|
},
|
|
"ERC1155_balance": {
|
|
"contractAddress": "0xaDD9D957170dF6F33982001E4c22eCCdd5539118",
|
|
"standardContractType": "ERC1155",
|
|
"chain": 1,
|
|
"method": "balanceOf",
|
|
"parameters": [
|
|
":userAddress",
|
|
9541
|
|
],
|
|
"returnValueTest": {
|
|
"comparator": ">",
|
|
"value": 0
|
|
}
|
|
},
|
|
"ERC1155_balance_batch": {
|
|
"contractAddress": "0xaDD9D957170dF6F33982001E4c22eCCdd5539118",
|
|
"standardContractType": "ERC1155",
|
|
"chain": 1,
|
|
"method": "balanceOfBatch",
|
|
"parameters": [
|
|
[":userAddress",":userAddress",":userAddress",":userAddress"],
|
|
[1,2,10003,10004]
|
|
],
|
|
"returnValueTest": {
|
|
"comparator": ">",
|
|
"value": 0
|
|
}
|
|
},
|
|
"ERC721_ownership": {
|
|
"contractAddress": "0xaDD9D957170dF6F33982001E4c22eCCdd5539118",
|
|
"standardContractType": "ERC721",
|
|
"chain": 1,
|
|
"method": "ownerOf",
|
|
"parameters": [
|
|
5954
|
|
],
|
|
"returnValueTest": {
|
|
"comparator": "=",
|
|
"value": ":userAddress"
|
|
}
|
|
},
|
|
"ERC721_balance": {
|
|
"contractAddress": "0xaDD9D957170dF6F33982001E4c22eCCdd5539118",
|
|
"standardContractType": "ERC721",
|
|
"chain": 1,
|
|
"method": "balanceOf",
|
|
"parameters": [
|
|
":userAddress"
|
|
],
|
|
"returnValueTest": {
|
|
"comparator": ">",
|
|
"value": 0
|
|
}
|
|
},
|
|
"ERC20_balance": {
|
|
"contractAddress": "0xaDD9D957170dF6F33982001E4c22eCCdd5539118",
|
|
"standardContractType": "ERC20",
|
|
"chain": 1,
|
|
"method": "balanceOf",
|
|
"parameters": [
|
|
":userAddress"
|
|
],
|
|
"returnValueTest": {
|
|
"comparator": ">",
|
|
"value": 0
|
|
}
|
|
},
|
|
"ETH_balance": {
|
|
"contractAddress": "",
|
|
"standardContractType": "",
|
|
"chain": 1,
|
|
"method": "eth_getBalance",
|
|
"parameters": [
|
|
":userAddress",
|
|
"latest"
|
|
],
|
|
"returnValueTest": {
|
|
"comparator": ">=",
|
|
"value": 10000000000000
|
|
}
|
|
},
|
|
"specific_wallet_address": {
|
|
"contractAddress": "",
|
|
"standardContractType": "",
|
|
"chain": 1,
|
|
"method": "",
|
|
"parameters": [
|
|
":userAddress"
|
|
],
|
|
"returnValueTest": {
|
|
"comparator": "=",
|
|
"value": "0xaDD9D957170dF6F33982001E4c22eCCdd5539118"
|
|
}
|
|
},
|
|
"timestamp": {
|
|
"contractAddress": "",
|
|
"standardContractType": "timestamp",
|
|
"chain": 1,
|
|
"method": "eth_getBlockByNumber",
|
|
"parameters": ["latest"],
|
|
"returnValueTest": {
|
|
"comparator": ">=",
|
|
"value": 1234567890
|
|
}
|
|
}
|
|
}
|