Skip to content

Commit

Permalink
Optimize page name to unblock transfers and allow single claim per pr…
Browse files Browse the repository at this point in the history
…ofile
  • Loading branch information
lykhonis committed Dec 14, 2023
1 parent 8c3fc66 commit 37ecce7
Show file tree
Hide file tree
Showing 9 changed files with 177 additions and 637 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ docs/

tools/playground.sh
scripts/Playground.s.sol
scripts/data.json
45 changes: 0 additions & 45 deletions artifacts/abi/marketplace/lsp8/LSP8Marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@
"name": "InvalidLSP18RoyaltiesData",
"type": "error"
},
{
"inputs": [],
"name": "NoPendingSale",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -674,46 +669,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pendingSale",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "asset",
"type": "address"
},
{
"internalType": "bytes32",
"name": "tokenId",
"type": "bytes32"
},
{
"internalType": "address",
"name": "seller",
"type": "address"
},
{
"internalType": "address",
"name": "buyer",
"type": "address"
},
{
"internalType": "uint256",
"name": "totalPaid",
"type": "uint256"
}
],
"internalType": "struct PendingSale",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
Expand Down
188 changes: 63 additions & 125 deletions artifacts/abi/page/PageName.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,32 +295,6 @@
"name": "OwnableCannotSetZeroAddressAsOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "bytes32",
"name": "tokenId",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "limit",
"type": "uint256"
}
],
"name": "TransferExceedLimit",
"type": "error"
},
{
"inputs": [
{
Expand Down Expand Up @@ -721,6 +695,45 @@
"stateMutability": "payable",
"type": "fallback"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "profiles",
"type": "address[]"
}
],
"name": "_internal_setProfileClaims",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "_unused_storage_slot_0",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "_unused_storage_slot_1",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -795,6 +808,25 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "claimsOf",
"outputs": [
{
"internalType": "uint24",
"name": "reservations",
"type": "uint24"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "controller",
Expand Down Expand Up @@ -940,25 +972,10 @@
"name": "controller_",
"type": "address"
},
{
"internalType": "uint256",
"name": "price_",
"type": "uint256"
},
{
"internalType": "uint8",
"name": "minimumLength_",
"type": "uint8"
},
{
"internalType": "uint16",
"name": "profileLimit_",
"type": "uint16"
},
{
"internalType": "contract IPageNameMarketplace",
"name": "marketplace_",
"type": "address"
}
],
"name": "initialize",
Expand Down Expand Up @@ -990,19 +1007,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "marketplace",
"outputs": [
{
"internalType": "contract IPageNameMarketplace",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "minimumLength",
Expand Down Expand Up @@ -1049,51 +1053,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "price",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "profileLimit",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenOwner",
"type": "address"
}
],
"name": "profileLimitOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -1126,6 +1085,11 @@
"name": "name",
"type": "string"
},
{
"internalType": "bytes",
"name": "salt",
"type": "bytes"
},
{
"internalType": "uint8",
"name": "v",
Expand Down Expand Up @@ -1296,32 +1260,6 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "newPrice",
"type": "uint256"
}
],
"name": "setPrice",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "newLimit",
"type": "uint16"
}
],
"name": "setProfileLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down
Loading

0 comments on commit 37ecce7

Please sign in to comment.