Skip to content

Commit

Permalink
feat: add to index (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
nachomazzara authored May 9, 2019
1 parent 2aa7598 commit f0b589f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 154 deletions.
183 changes: 29 additions & 154 deletions src/contracts/artifacts/ClaimName.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,10 @@
{
"constant": false,
"inputs": [
{
"name": "_beneficiary",
"type": "address"
},
{
"name": "_userId",
"type": "string"
},
{
"name": "_username",
"type": "string"
},
{
"name": "_metadata",
"type": "string"
}
{ "name": "_beneficiary", "type": "address" },
{ "name": "_userId", "type": "string" },
{ "name": "_username", "type": "string" },
{ "name": "_metadata", "type": "string" }
],
"name": "registerUsername",
"outputs": [],
Expand All @@ -29,35 +17,16 @@
},
{
"constant": true,
"inputs": [
{
"name": "_user",
"type": "address"
}
],
"inputs": [{ "name": "_user", "type": "address" }],
"name": "userExists",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_account",
"type": "address"
},
{
"name": "_allowed",
"type": "bool"
}
],
"inputs": [{ "name": "_account", "type": "address" }, { "name": "_allowed", "type": "bool" }],
"name": "setAllowance",
"outputs": [],
"payable": false,
Expand All @@ -68,38 +37,19 @@
"constant": true,
"inputs": [],
"name": "manaToken",
"outputs": [
{
"name": "",
"type": "address"
}
],
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
}
],
"inputs": [{ "name": "", "type": "address" }],
"name": "user",
"outputs": [
{
"name": "userId",
"type": "string"
},
{
"name": "username",
"type": "string"
},
{
"name": "metadata",
"type": "string"
}
{ "name": "userId", "type": "string" },
{ "name": "username", "type": "string" },
{ "name": "metadata", "type": "string" }
],
"payable": false,
"stateMutability": "view",
Expand All @@ -109,24 +59,14 @@
"constant": true,
"inputs": [],
"name": "price",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_metadata",
"type": "string"
}
],
"inputs": [{ "name": "_metadata", "type": "string" }],
"name": "setMetadata",
"outputs": [],
"payable": false,
Expand All @@ -135,120 +75,55 @@
},
{
"constant": true,
"inputs": [
{
"name": "",
"type": "address"
}
],
"inputs": [{ "name": "", "type": "address" }],
"name": "allowed",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_username",
"type": "string"
}
],
"inputs": [{ "name": "_username", "type": "string" }],
"name": "isUsernameAvailable",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"outputs": [{ "name": "", "type": "bool" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"name": "_mana",
"type": "address"
}
],
"inputs": [{ "name": "_mana", "type": "address" }],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_owner",
"type": "address"
},
{
"indexed": false,
"name": "userId",
"type": "string"
},
{
"indexed": false,
"name": "_username",
"type": "string"
},
{
"indexed": false,
"name": "_metadata",
"type": "string"
},
{
"indexed": true,
"name": "_caller",
"type": "address"
}
{ "indexed": true, "name": "_owner", "type": "address" },
{ "indexed": false, "name": "_userId", "type": "string" },
{ "indexed": false, "name": "_username", "type": "string" },
{ "indexed": false, "name": "_metadata", "type": "string" },
{ "indexed": true, "name": "_caller", "type": "address" }
],
"name": "Register",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_owner",
"type": "address"
},
{
"indexed": false,
"name": "_metadata",
"type": "string"
}
{ "indexed": true, "name": "_owner", "type": "address" },
{ "indexed": false, "name": "_metadata", "type": "string" }
],
"name": "MetadataChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_caller",
"type": "address"
},
{
"indexed": true,
"name": "_account",
"type": "address"
},
{
"indexed": false,
"name": "_allowed",
"type": "bool"
}
{ "indexed": true, "name": "_caller", "type": "address" },
{ "indexed": true, "name": "_account", "type": "address" },
{ "indexed": false, "name": "_allowed", "type": "bool" }
],
"name": "Allow",
"type": "event"
Expand Down
1 change: 1 addition & 0 deletions src/contracts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ export { EstateRegistry } from './EstateRegistry'
export { LANDAuction } from './LANDAuction'
export { DecentralandInvite } from './DecentralandInvite'
export { ERC721Bid } from './ERC721Bid'
export { ClaimName } from './ClaimName'

0 comments on commit f0b589f

Please sign in to comment.