Skip to content

Commit

Permalink
commit1
Browse files Browse the repository at this point in the history
  • Loading branch information
PsychoPunkSage committed Mar 10, 2023
0 parents commit ed9f8c6
Show file tree
Hide file tree
Showing 19 changed files with 11,722 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
3 changes: 3 additions & 0 deletions .txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Upload subgraph to IPFS

Build completed: QmUc6XgtL3tzQfod5RrevABY2qoYvoDhs9iVXkxxpPxP88 -> Code for subgraph on IPFS
205 changes: 205 additions & 0 deletions abis/NftMarketplace.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
[
{
"inputs": [
{ "internalType": "address", "name": "nftAddress", "type": "address" },
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }
],
"name": "NftMarketplace__AlreadyListed",
"type": "error"
},
{ "inputs": [], "name": "NftMarketplace__NoProceeds", "type": "error" },
{
"inputs": [],
"name": "NftMarketplace__NotApprovedForMarketplace",
"type": "error"
},
{
"inputs": [
{ "internalType": "address", "name": "nftAddress", "type": "address" },
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }
],
"name": "NftMarketplace__NotListed",
"type": "error"
},
{ "inputs": [], "name": "NftMarketplace__NotOwner", "type": "error" },
{
"inputs": [],
"name": "NftMarketplace__PriceMustBeAboveZero",
"type": "error"
},
{
"inputs": [
{ "internalType": "address", "name": "nftAddress", "type": "address" },
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "internalType": "uint256", "name": "price", "type": "uint256" }
],
"name": "NftMarketplace__PriceNotMet",
"type": "error"
},
{ "inputs": [], "name": "NftMarketplace__TransferFailed", "type": "error" },
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "seller",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "nftAddress",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"name": "ItemBought",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "nftAddress",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ItemCanceled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "nftAddress",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
}
],
"name": "ItemListed",
"type": "event"
},
{
"inputs": [
{ "internalType": "address", "name": "nftAddress", "type": "address" },
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }
],
"name": "buyItem",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "nftAddress", "type": "address" },
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }
],
"name": "cancelListing",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "nftAddress", "type": "address" },
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }
],
"name": "getListing",
"outputs": [
{
"components": [
{ "internalType": "uint256", "name": "price", "type": "uint256" },
{ "internalType": "address", "name": "seller", "type": "address" }
],
"internalType": "struct NftMarketplace.Listing",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "seller", "type": "address" }
],
"name": "getProceeds",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "nftAddress", "type": "address" },
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "internalType": "uint256", "name": "price", "type": "uint256" }
],
"name": "listItem",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "nftAddress", "type": "address" },
{ "internalType": "uint256", "name": "tokenId", "type": "uint256" },
{ "internalType": "uint256", "name": "newPrice", "type": "uint256" }
],
"name": "updateListing",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "withdrawProceeds",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Binary file added build/NftMarketplace/NftMarketplace.wasm
Binary file not shown.
Loading

0 comments on commit ed9f8c6

Please sign in to comment.