├── upload-block-numbers.json ├── .gitignore ├── version.js ├── index.js ├── README.md ├── package.json ├── update-contracts.sh └── addresses.json /upload-block-numbers.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | old 3 | *.log 4 | -------------------------------------------------------------------------------- /version.js: -------------------------------------------------------------------------------- 1 | // generated by genversion 2 | module.exports = '3.5.0-14'; 3 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | module.exports = { 4 | addresses: require("./addresses"), 5 | abi: require("./abi"), 6 | version: require('./version'), 7 | uploadBlockNumbers: require('./upload-block-numbers') 8 | }; 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | augur-contracts 2 | =============== 3 | 4 | [![npm version](https://badge.fury.io/js/augur-contracts.svg)](http://badge.fury.io/js/augur-contracts) 5 | 6 | Ethereum network addresses for the Augur contracts, transaction objects, and error codes. 7 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "augur-contracts", 3 | "version": "3.5.0-14", 4 | "description": "Augur contract addresses, transactions, and error codes", 5 | "author": "The Augur Developers ", 6 | "license": "MIT", 7 | "main": "index.js", 8 | "scripts": { 9 | "build": "genversion version.js", 10 | "version": "npm run build && git add version.js package.json package-lock.json", 11 | "update-contracts": "bash update-contracts.sh" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git+https://github.com/AugurProject/augur-contracts.git" 16 | }, 17 | "bugs": { 18 | "url": "https://github.com/AugurProject/augur-contracts/issues" 19 | }, 20 | "homepage": "https://github.com/AugurProject/augur-contracts#readme", 21 | "devDependencies": { 22 | "babel-preset-env": "1.6.0", 23 | "babel-preset-stage-0": "6.16.0", 24 | "dotsunited-merge-json": "3.0.0", 25 | "genversion": "1.1.3", 26 | "jq.node": "2.0.0" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /update-contracts.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # extended pattern matching 4 | shopt -s extglob 5 | 6 | if [[ "${SOURCE}x" == "x" ]]; then 7 | echo "SOURCE environment variable required with path to augur-core/output/contracts" 8 | exit 1 9 | fi 10 | 11 | npx dotsunited-merge-json addresses.json $SOURCE/addresses.json | npx jq.node --color=false --json > ./updated.json 12 | [[ $? == 0 ]] || exit 1 13 | mv updated.json addresses.json 14 | 15 | npx dotsunited-merge-json upload-block-numbers.json $SOURCE/upload-block-numbers.json | npx jq.node --color=false --json > ./updated.json 16 | [[ $? == 0 ]] || exit 1 17 | mv updated.json upload-block-numbers.json 18 | 19 | cat $SOURCE/contracts.json | npx jqn --color=false -j "at('contracts') | map(values) | flatten | map(mapValues(get('abi'))) | reduce(merge, {})" > ./abi.json 20 | [[ $? == 0 ]] || exit 1 21 | 22 | if [[ "$AUTOCOMMIT" == "true" ]]; then 23 | git add addresses.json abi.json upload-block-numbers.json 24 | git commit -m "Auto-updating from push to augur-core#${BRANCH} (${COMMIT})" 25 | 26 | case $BRANCH in 27 | master | v+([0-9]).+([0-9]).+([0-9])?(-+([0-9]))) 28 | # Commit on a tag, this will do all the work of commiting and pushing 29 | # a new release 30 | echo "Update master of augur-contracts, and publishing new NPM version" 31 | npm version --force prerelease 32 | git push && git push --tags && npm publish --tag dev 33 | ;; 34 | develop) 35 | echo "Updating develop branch of augur-contracts with force push" 36 | git checkout -B $BRANCH origin/$BRANCH 37 | git push --force-with-lease 38 | ;; 39 | *) 40 | echo "Making new branch (augur-core/${BRANCH}) on augur-contracts to match ${BRANCH}" 41 | git checkout -B augur-core/$BRANCH 42 | git push origin augur-core/$BRANCH --force-with-lease 43 | ;; 44 | esac 45 | else 46 | echo "Files updated, commit and push manually" 47 | fi 48 | -------------------------------------------------------------------------------- /addresses.json: -------------------------------------------------------------------------------- 1 | { 2 | "1": { 3 | "Augur": "0x96a8238db7ad03e505840bd361dc2f521a72adbc", 4 | "LegacyReputationToken": "0xe94327d07fc17907b4db788e5adf2ed424addff6" 5 | }, 6 | "3": { 7 | "Augur": "0x8d7c8b6dbb38e34c08459695bf2d7c72b1a8f5c0", 8 | "LegacyReputationToken": "0x7a305d9b681fb164dc5ad628b5992177dc66aec8" 9 | }, 10 | "4": { 11 | "Controller": "0x392be0a9d1ab1bde2931c2ddf1d722f9e13b6085", 12 | "Universe": "0x1f732847fbbcc46ffe859f28e916d993b2b08831", 13 | "Augur": "0x852684b374fe03ab77d06931f1b2831028fd58f5", 14 | "LegacyReputationToken": "0x097c198dcc997086d1555ad9ae6f52375cfb58d0", 15 | "CancelOrder": "0x389c0b3f0d51cfba9e4d214712a1142f5685814d", 16 | "Cash": "0xd2ee83a8a2a904181ccfddd8292f178614062aa0", 17 | "ClaimTradingProceeds": "0x8aa774927fb928ee1df0d0d3f94c8217658e0bce", 18 | "CompleteSets": "0xbf749b00e42751dba8e0872e66d3ba854f6c2632", 19 | "CreateOrder": "0xdadc071ecc3b7e97b139d2ef692defdc398c8211", 20 | "FillOrder": "0x0c77f6af7b3b5fed8ca980414a97c62da283098a", 21 | "Order": "0x4811d582f64e68e657bec21834012af38ef093bc", 22 | "Orders": "0x1ba5cf0ce546bf7d7943c4d4fb21ea59f6bb0eee", 23 | "OrdersFetcher": "0xb9f2cf78542de87ba7542d92e2937d0eedec5feb", 24 | "ShareToken": "0x925bee44fec28deb228d2251e1a9d32f7c73ebed", 25 | "Trade": "0x0dec7fd04933b8673cef99b64978113065b03926", 26 | "TradingEscapeHatch": "0x157a8998f5470a2be3917aab31d334109f56c30c" 27 | }, 28 | "8995": { 29 | "Controller": "0x9cf24251168bf923b3b21a36ce732bb64508bd50", 30 | "Universe": "0x117de388be5088426bb1329efc41fa38459d745e", 31 | "Augur": "0xb9ffc408d0c2501d90e54ed76f9132fb86fc8d9e", 32 | "LegacyReputationToken": "0xad4dac74a2415ea1a9ea2e372ad99bfd00fcfcd8", 33 | "CancelOrder": "0xf138244b262b30ee0280708ec36e7966b4597b21", 34 | "Cash": "0xf55f04d8e3a7a94b127d4e9cf86932c684f59af4", 35 | "ClaimTradingProceeds": "0x65be44060019b9d3f7a124078d06cccbd56a7b90", 36 | "CompleteSets": "0x5d2c8c2b877e505c8a1e4264cf5fae0bbaead1d3", 37 | "CreateOrder": "0xb0e2410e49eb187d8dad44a31f5151c66cad1fd5", 38 | "FillOrder": "0x830a777a1e3857a27676c7d1f5411ac96a459aed", 39 | "Order": "0xcbe93dcd3164dcffdc25f76932c70cb675715937", 40 | "Orders": "0x50524800827949258375a370dc7b97d5b476cfd3", 41 | "OrdersFetcher": "0xb882ea3a22ec42d0f28f441554f2cfb06c6afe47", 42 | "ShareToken": "0xe5fdcbc4c3378fbf24b88b50efbcbb9d8389d3fa", 43 | "Trade": "0x4e939013646c04f80bd5173cfe2e6fd3ef1a6acc", 44 | "TradingEscapeHatch": "0xf1a8b6618167b86310d15abc0f4248ee298d851d" 45 | }, 46 | "12346": { 47 | "Controller": "0x25ff5dc79a7c4e34254ff0f4a19d69e491201dd3", 48 | "Universe": "0x0782e4e784b5993a3ba08293d46f51182f2e6083", 49 | "Augur": "0xaf517e20601df8d8584035eb895c02713bc1f3a4", 50 | "LegacyReputationToken": "0x45a2897792afa20b95f7dcaf5c0fb45b84daf439", 51 | "CancelOrder": "0xb03cf72bc5a9a344aac43534d664917927367487", 52 | "Cash": "0x65f3a1a420679f9161c2b949ac372ab2bf091edc", 53 | "ClaimTradingProceeds": "0x905419e7a1f96a973ab8988ba19c84135c6f7122", 54 | "CompleteSets": "0x80f8daa435a9ab4b1802ba56fe7e0abd0f8ab3d3", 55 | "CreateOrder": "0x4ddebcebe274751dfb129efc96a588a5242530ab", 56 | "FillOrder": "0x3c6721551c2ba3973560aef3e11d34ce05db4047", 57 | "Order": "0x97ba58dbe58898f2b669c56496f46f638dc322d4", 58 | "Orders": "0x4e61185d7f125b84ac4a1837a0688d2bb58e8491", 59 | "OrdersFetcher": "0x2adaeaf11753515a37a3d50cecb636cf72ae4854", 60 | "ShareToken": "0x6bb64a5ec419bee4a9f769427733c1a7258d1cf3", 61 | "Trade": "0xb8da5fa6c6f9b55f1c9fa09e26a24d3675dbc36e", 62 | "TradingEscapeHatch": "0x3a043108953aacf3505503867f8db7c1585577c7" 63 | } 64 | } 65 | --------------------------------------------------------------------------------