@benddao/bend-downpayment
Version:
BendDAO downpayment smart contracts
153 lines (152 loc) • 3.05 kB
JSON
[
{
"inputs": [
{
"internalType": "uint256",
"name": "punkIndex",
"type": "uint256"
}
],
"name": "buyPunk",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "punkIndex",
"type": "uint256"
}
],
"name": "getPunk",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "punkIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minSalePriceInWei",
"type": "uint256"
}
],
"name": "offerPunkForSale",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "punkIndex",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minSalePriceInWei",
"type": "uint256"
},
{
"internalType": "address",
"name": "toAddress",
"type": "address"
}
],
"name": "offerPunkForSaleToAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "punkIndex",
"type": "uint256"
}
],
"name": "punkIndexToAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "punkIndex",
"type": "uint256"
}
],
"name": "punksOfferedForSale",
"outputs": [
{
"components": [
{
"internalType": "bool",
"name": "isForSale",
"type": "bool"
},
{
"internalType": "uint256",
"name": "punkIndex",
"type": "uint256"
},
{
"internalType": "address",
"name": "seller",
"type": "address"
},
{
"internalType": "uint256",
"name": "minValue",
"type": "uint256"
},
{
"internalType": "address",
"name": "onlySellTo",
"type": "address"
}
],
"internalType": "struct ICryptoPunksMarket.Offer",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "punkIndex",
"type": "uint256"
}
],
"name": "transferPunk",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]