Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MercuricChloride committed May 11, 2022
0 parents commit 312a681
Show file tree
Hide file tree
Showing 7 changed files with 675 additions and 0 deletions.
374 changes: 374 additions & 0 deletions abis/superRare.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,374 @@
[
{
"constant": false,
"inputs": [
{ "name": "_uri", "type": "string" },
{ "name": "_editions", "type": "uint256" },
{ "name": "_salePrice", "type": "uint256" }
],
"name": "addNewTokenWithEditions",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_tokenId", "type": "uint256" },
{ "name": "_salePrice", "type": "uint256" }
],
"name": "setSalePrice",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [{ "name": "_name", "type": "string" }],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_to", "type": "address" },
{ "name": "_tokenId", "type": "uint256" }
],
"name": "approve",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "currentBidDetailsOfToken",
"outputs": [
{ "name": "", "type": "uint256" },
{ "name": "", "type": "address" }
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "approvedFor",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "acceptBid",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_creator", "type": "address" }],
"name": "isWhitelisted",
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "bid",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_owner", "type": "address" }],
"name": "tokensOf",
"outputs": [{ "name": "", "type": "uint256[]" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_percentage", "type": "uint256" }],
"name": "setMaintainerPercentage",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_creator", "type": "address" }],
"name": "whitelistCreator",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "ownerOf",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_uri", "type": "string" }],
"name": "originalTokenOfUri",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_owner", "type": "address" }],
"name": "balanceOf",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [{ "name": "_symbol", "type": "string" }],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "cancelBid",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "salePriceOfToken",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_to", "type": "address" },
{ "name": "_tokenId", "type": "uint256" }
],
"name": "transfer",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "takeOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_percentage", "type": "uint256" }],
"name": "setCreatorPercentage",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "tokenURI",
"outputs": [{ "name": "", "type": "string" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "creatorOfToken",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_tokenId", "type": "uint256" }],
"name": "buy",
"outputs": [],
"payable": true,
"stateMutability": "payable",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_uri", "type": "string" }],
"name": "addNewToken",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "creatorPercentage",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "maintainerPercentage",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "newOwner", "type": "address" }],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [{ "indexed": true, "name": "_creator", "type": "address" }],
"name": "WhitelistCreator",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "_bidder", "type": "address" },
{ "indexed": true, "name": "_amount", "type": "uint256" },
{ "indexed": true, "name": "_tokenId", "type": "uint256" }
],
"name": "Bid",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "_bidder", "type": "address" },
{ "indexed": true, "name": "_seller", "type": "address" },
{ "indexed": false, "name": "_amount", "type": "uint256" },
{ "indexed": true, "name": "_tokenId", "type": "uint256" }
],
"name": "AcceptBid",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "_bidder", "type": "address" },
{ "indexed": true, "name": "_amount", "type": "uint256" },
{ "indexed": true, "name": "_tokenId", "type": "uint256" }
],
"name": "CancelBid",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "_buyer", "type": "address" },
{ "indexed": true, "name": "_seller", "type": "address" },
{ "indexed": false, "name": "_amount", "type": "uint256" },
{ "indexed": true, "name": "_tokenId", "type": "uint256" }
],
"name": "Sold",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "_tokenId", "type": "uint256" },
{ "indexed": true, "name": "_price", "type": "uint256" }
],
"name": "SalePriceSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "previousOwner", "type": "address" },
{ "indexed": true, "name": "newOwner", "type": "address" }
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "_from", "type": "address" },
{ "indexed": true, "name": "_to", "type": "address" },
{ "indexed": false, "name": "_tokenId", "type": "uint256" }
],
"name": "Transfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "name": "_owner", "type": "address" },
{ "indexed": true, "name": "_approved", "type": "address" },
{ "indexed": false, "name": "_tokenId", "type": "uint256" }
],
"name": "Approval",
"type": "event"
}
]
7 changes: 7 additions & 0 deletions networks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"mainnet": {
"superRare": {
"address": "0x41a322b28d0ff354040e2cbc676f0320d8c8850d"
}
}
}
Loading

0 comments on commit 312a681

Please sign in to comment.