-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding DxDAO Token Registry GenericScheme (#1620)
* Added dxDAO Token Registry Generic Schemes * Added DXTokenRegistry Multi-Registry GenericSchema which replaces Omen, Mix and Exchange Schemes * Formatting
- Loading branch information
Showing
2 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"name": "Token Registry", | ||
"addresses": { | ||
"main": [ | ||
"0x93DB90445B76329e9ed96ECd74e76D8fbf2590d8" | ||
], | ||
"rinkeby": [ | ||
"0x03165DF66d9448E45c2f5137486af3E7e752a352" | ||
], | ||
"kovan": [ | ||
"0x2C337c91A7FA83273F6D13721a2324c8B324f46e" | ||
], | ||
"private": [ | ||
"0xAB8278343a98b50D7eca37c97CcB53393B82D049" | ||
] | ||
}, | ||
"actions": [ | ||
{ | ||
"id": "addTokens", | ||
"label": "Add tokens", | ||
"description": "Add tokens to the Token Registry", | ||
"notes": "A list of available ListIds can be found <a target=\"_blank\" href=\"https://www.notion.so/DxDAO-Token-Registry-Lists-220e1411482342c4a7e47a641a676fcb\">here</a>", | ||
"fields": [ | ||
{ | ||
"label": "ListId", | ||
"name": "_listId" | ||
}, | ||
{ | ||
"label": "Tokens", | ||
"name": "_tokens", | ||
"placeholder":"Address (0x0000…)" | ||
} | ||
], | ||
"abi": { | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_listId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address[]", | ||
"name": "_tokens", | ||
"type": "address[]" | ||
} | ||
], | ||
"name": "addTokens", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
}, | ||
{ | ||
"id": "removeTokens", | ||
"label": "Remove tokens", | ||
"description": "Remove tokens from the Token Registry", | ||
"notes": "A list of available ListIds can be found <a target=\"_blank\" href=\"https://www.notion.so/DxDAO-Token-Registry-Lists-220e1411482342c4a7e47a641a676fcb\">here</a>", | ||
"fields": [ | ||
{ | ||
"label": "ListId", | ||
"name": "_listId" | ||
}, | ||
{ | ||
"label": "Tokens", | ||
"name": "_tokens", | ||
"placeholder":"Address (0x0000…)" | ||
} | ||
], | ||
"abi": { | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_listId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address[]", | ||
"name": "_tokens", | ||
"type": "address[]" | ||
} | ||
], | ||
"name": "removeTokens", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
}, | ||
{ | ||
"id": "transferOwnership", | ||
"label": "Transfer Ownership", | ||
"description": "Transfer ownership of the registry contract", | ||
"notes": "", | ||
"fields": [ | ||
{ | ||
"label": "New owner", | ||
"name": "newOwner", | ||
"placeholder": "Address (0x0000…)" | ||
} | ||
], | ||
"abi": { | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"name": "newOwner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "transferOwnership", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
} | ||
] | ||
} |