Skip to content

Instantly share code, notes, and snippets.

@tymat
Last active April 26, 2016 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tymat/caa79528615ad600f216e2e6f6b6e3c3 to your computer and use it in GitHub Desktop.
Save tymat/caa79528615ad600f216e2e6f6b6e3c3 to your computer and use it in GitHub Desktop.
DigixDAO Tokens and Badge - Advanced

Main Net

Contract Address
Crowdsale 0xf0160428a8552ac9bb7e050d90eeade4ddd52843
Badge 0x54bda709fed875224eae569bb6817d96ef7ed9ad
Token 0xe0b7927c4af23765cb51314a0e0521a9645f0e2a

Morden Testnet

Contract Address
Crowdsale 0x175298fd52167b93c032c312284f9d3af9f2f4ff
Badge 0x40cd4bd518f130eed030693d933b5e127dcd046d
Token 0x3c6f5633b30aa3817fa50b17e5bd30fb49bddd95
[
{
"constant":false,
"inputs":[
{
"name":"_spender",
"type":"address"
},
{
"name":"_value",
"type":"uint256"
}
],
"name":"approve",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_owner",
"type":"address"
}
],
"name":"setOwner",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
],
"name":"totalSupply",
"outputs":[
{
"name":"",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_from",
"type":"address"
},
{
"name":"_to",
"type":"address"
},
{
"name":"_value",
"type":"uint256"
}
],
"name":"transferFrom",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"a",
"type":"uint256"
},
{
"name":"b",
"type":"uint256"
}
],
"name":"subtractSafely",
"outputs":[
{
"name":"",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_owner",
"type":"address"
},
{
"name":"_amount",
"type":"uint256"
}
],
"name":"mint",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"a",
"type":"uint256"
},
{
"name":"b",
"type":"uint256"
}
],
"name":"safeToAdd",
"outputs":[
{
"name":"",
"type":"bool"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
{
"name":"_owner",
"type":"address"
}
],
"name":"balanceOf",
"outputs":[
{
"name":"balance",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
],
"name":"owner",
"outputs":[
{
"name":"",
"type":"address"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_to",
"type":"address"
},
{
"name":"_value",
"type":"uint256"
}
],
"name":"transfer",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"a",
"type":"uint256"
},
{
"name":"b",
"type":"uint256"
}
],
"name":"addSafely",
"outputs":[
{
"name":"result",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
],
"name":"locked",
"outputs":[
{
"name":"",
"type":"bool"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
{
"name":"_owner",
"type":"address"
},
{
"name":"_spender",
"type":"address"
}
],
"name":"allowance",
"outputs":[
{
"name":"remaining",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"a",
"type":"uint256"
},
{
"name":"b",
"type":"uint256"
}
],
"name":"safeToSubtract",
"outputs":[
{
"name":"",
"type":"bool"
}
],
"type":"function"
},
{
"inputs":[
],
"type":"constructor"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"name":"_from",
"type":"address"
},
{
"indexed":true,
"name":"_to",
"type":"address"
},
{
"indexed":false,
"name":"_value",
"type":"uint256"
}
],
"name":"Transfer",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"name":"_recipient",
"type":"address"
},
{
"indexed":true,
"name":"_amount",
"type":"uint256"
}
],
"name":"Mint",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"name":"_owner",
"type":"address"
},
{
"indexed":true,
"name":"_spender",
"type":"address"
},
{
"indexed":false,
"name":"_value",
"type":"uint256"
}
],
"name":"Approval",
"type":"event"
}
]
[
{
"constant": false,
"inputs": [
{
"name": "_eth",
"type": "uint256"
}
],
"name": "setEthToCents",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "startDate",
"outputs": [
{
"name": "date",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
],
"name": "claimFounders",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_user",
"type": "address"
}
],
"name": "userInfo",
"outputs": [
{
"name": "centstotal",
"type": "uint256"
},
{
"name": "weitotal",
"type": "uint256"
},
{
"name": "share",
"type": "uint256"
},
{
"name": "badges",
"type": "uint256"
},
{
"name": "claimed",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "getPeriod",
"outputs": [
{
"name": "saleperiod",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "periodTwo",
"outputs": [
{
"name": "date",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_user",
"type": "address"
}
],
"name": "proxyPurchase",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "BILLION",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
],
"name": "claim",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "ethToCents",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_wei",
"type": "uint256"
}
],
"name": "weiToCents",
"outputs": [
{
"name": "centsvalue",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "totalWei",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "WEI_PER_ETH",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "goalReached",
"outputs": [
{
"name": "reached",
"type": "bool"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_proxy",
"type": "address"
}
],
"name": "getPayout",
"outputs": [
{
"name": "payout",
"type": "address"
},
{
"name": "isproxy",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "myInfo",
"outputs": [
{
"name": "centstotal",
"type": "uint256"
},
{
"name": "weitotal",
"type": "uint256"
},
{
"name": "share",
"type": "uint256"
},
{
"name": "badges",
"type": "uint256"
},
{
"name": "claimed",
"type": "bool"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_payout",
"type": "address"
}
],
"name": "regProxy",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "getSaleStatus",
"outputs": [
{
"name": "fclaim",
"type": "bool"
},
{
"name": "reltokens",
"type": "uint256"
},
{
"name": "relbadges",
"type": "uint256"
},
{
"name": "claimers",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
],
"name": "sendFunds",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "isEnded",
"outputs": [
{
"name": "ended",
"type": "bool"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
],
"name": "unlock",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_contrib",
"type": "uint256"
},
{
"name": "_total",
"type": "uint256"
}
],
"name": "calcShare",
"outputs": [
{
"name": "share",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_payout",
"type": "address"
}
],
"name": "getProxy",
"outputs": [
{
"name": "proxy",
"type": "address"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "periodThree",
"outputs": [
{
"name": "date",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "totalCents",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "endDate",
"outputs": [
{
"name": "date",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "getSaleConfig",
"outputs": [
{
"name": "start",
"type": "uint256"
},
{
"name": "two",
"type": "uint256"
},
{
"name": "three",
"type": "uint256"
},
{
"name": "end",
"type": "uint256"
},
{
"name": "goal",
"type": "uint256"
},
{
"name": "cap",
"type": "uint256"
},
{
"name": "famount",
"type": "uint256"
},
{
"name": "fwallet",
"type": "address"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "getSaleInfo",
"outputs": [
{
"name": "weiamount",
"type": "uint256"
},
{
"name": "cents",
"type": "uint256"
},
{
"name": "realcents",
"type": "uint256"
},
{
"name": "amount",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_user",
"type": "address"
}
],
"name": "claimFor",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
],
"name": "CENTS",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_a",
"type": "uint256"
},
{
"name": "_c",
"type": "uint256"
}
],
"name": "ppb",
"outputs": [
{
"name": "b",
"type": "uint256"
}
],
"type": "function"
},
{
"inputs": [
{
"name": "_config",
"type": "address"
}
],
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_exchange",
"type": "uint256"
},
{
"indexed": true,
"name": "_rate",
"type": "uint256"
},
{
"indexed": true,
"name": "_cents",
"type": "uint256"
}
],
"name": "Purchase",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_user",
"type": "address"
},
{
"indexed": true,
"name": "_amount",
"type": "uint256"
},
{
"indexed": true,
"name": "_badges",
"type": "uint256"
}
],
"name": "Claim",
"type": "event"
}
]
[
{
"constant":false,
"inputs":[
{
"name":"_spender",
"type":"address"
},
{
"name":"_value",
"type":"uint256"
}
],
"name":"approve",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_newowner",
"type":"address"
}
],
"name":"setOwner",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
],
"name":"totalSupply",
"outputs":[
{
"name":"",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_from",
"type":"address"
},
{
"name":"_to",
"type":"address"
},
{
"name":"_value",
"type":"uint256"
}
],
"name":"transferFrom",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_dao",
"type":"address"
}
],
"name":"registerDao",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"a",
"type":"uint256"
},
{
"name":"b",
"type":"uint256"
}
],
"name":"subtractSafely",
"outputs":[
{
"name":"",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_tokensales",
"type":"address"
}
],
"name":"registerSeller",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_owner",
"type":"address"
},
{
"name":"_amount",
"type":"uint256"
}
],
"name":"mint",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
],
"name":"dao",
"outputs":[
{
"name":"",
"type":"address"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
],
"name":"badgeLedger",
"outputs":[
{
"name":"",
"type":"address"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"a",
"type":"uint256"
},
{
"name":"b",
"type":"uint256"
}
],
"name":"safeToAdd",
"outputs":[
{
"name":"",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_newdao",
"type":"address"
}
],
"name":"setDao",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
{
"name":"_owner",
"type":"address"
}
],
"name":"balanceOf",
"outputs":[
{
"name":"balance",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
],
"name":"config",
"outputs":[
{
"name":"",
"type":"address"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
],
"name":"owner",
"outputs":[
{
"name":"",
"type":"address"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_to",
"type":"address"
},
{
"name":"_value",
"type":"uint256"
}
],
"name":"transfer",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_tokensales",
"type":"address"
}
],
"name":"unregisterSeller",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"a",
"type":"uint256"
},
{
"name":"b",
"type":"uint256"
}
],
"name":"addSafely",
"outputs":[
{
"name":"result",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
],
"name":"locked",
"outputs":[
{
"name":"",
"type":"bool"
}
],
"type":"function"
},
{
"constant":true,
"inputs":[
{
"name":"_owner",
"type":"address"
},
{
"name":"_spender",
"type":"address"
}
],
"name":"allowance",
"outputs":[
{
"name":"remaining",
"type":"uint256"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_owner",
"type":"address"
},
{
"name":"_amount",
"type":"uint256"
}
],
"name":"mintBadge",
"outputs":[
{
"name":"success",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"a",
"type":"uint256"
},
{
"name":"b",
"type":"uint256"
}
],
"name":"safeToSubtract",
"outputs":[
{
"name":"",
"type":"bool"
}
],
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"_query",
"type":"address"
}
],
"name":"isSeller",
"outputs":[
{
"name":"isseller",
"type":"bool"
}
],
"type":"function"
},
{
"inputs":[
{
"name":"_config",
"type":"address"
}
],
"type":"constructor"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"name":"_from",
"type":"address"
},
{
"indexed":true,
"name":"_to",
"type":"address"
},
{
"indexed":false,
"name":"_value",
"type":"uint256"
}
],
"name":"Transfer",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"name":"_recipient",
"type":"address"
},
{
"indexed":false,
"name":"_amount",
"type":"uint256"
}
],
"name":"Mint",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"name":"_owner",
"type":"address"
},
{
"indexed":true,
"name":"_spender",
"type":"address"
},
{
"indexed":false,
"name":"_value",
"type":"uint256"
}
],
"name":"Approval",
"type":"event"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment