Skip to content

Blockchain interaction (deprecated)

watchtower edited this page Jun 7, 2021 · 1 revision

Created by Jelle

POA

Common Token

The common token lives here: 0x2ea0be07dfc0357f40884365f2c9cfd2a36d4a6e its code lives here: https://github.com/daostack/arc/blob/arc-factory/contracts/misc/CommonToken.sol which inherits from these openzeppelin contract versions https://github.com/OpenZeppelin/openzeppelin-contracts-ethereum-package/blob/v2.5.0/contracts - Connect to preview The ABI is here: https://github.com/daostack/migration/blob/0.1.1-rc.21-v0/contracts/0.1.1-rc.21/CommonToken.json (a more robust way of getting it is from arc.getABI(“CommonToken”, ARC_VERSION) This contrat has two “minters”. One is the supersecret Admin account, the other minter address is 0xCF8d68F810Cb8E3E228A7F31A61bEf0C1700A7d5

Deployment

Testflight: https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app/1512785740/testflight?section=iosbuilds

Test Accounts

Accounts we can use for testing. These are all funded with some ETH on rinkeby.

[
    {
        "mnemonic": "program excess joy neck episode series number assume assist damage lyrics aerobic",
        "address": "0xF4839E4303a58d0FdDDf5912B830e09f56182a89",
        "privateKey": "0xd1274d5a12ae7cbeb86fcbf436ed9e64ff904e86fa1b3064bbd4a4c0659a3282"
    },
    {
        "mnemonic": "fever worth nose reduce sentence tip melody travel flock enrich cigar hollow",
        "address": "0x294BBa55FaC79f7a71bF7Dfa7254850040098426",
        "privateKey": "0xe0c016a4bf2013a174cf1f13ce8b45c381a573d39fdb95fe7e5012196fb75de3"
    },
    {
        "mnemonic": "menu claw glove holiday rain rotate couch december cactus leg feed keen",
        "address": "0x91fdE97d253299B5e6Cbc2E04590A661f9e84C1d",
        "privateKey": "0x31def9b487c1f5f2d3ceb8797bf9824d811c1d1502ca3390d70fc750dcc2f28a"
    },
    {
        "mnemonic": "nice wide horn hole rotate black enrich exist debate sudden fold breeze",
        "address": "0x12A286aE640cA80fDEEe73b3d1BB37D3Cc75486f",
        "privateKey": "0x3f0ff58024e3b8e399bd3be846b774572dd02cc6e78e45ce5929db76e3f9c55e"
    },
    {
        "mnemonic": "tourist vocal life corn salute poverty spot wise sure twin crazy connect",
        "address": "0x5629e0f11485150Bbe136593784c0616c7bEf2a2",
        "privateKey": "0x258fc87bd5777a8a1b7411995d46ff060221b08c357c19cb0eb1417b0454dfe5"
    },
    {
        "mnemonic": "try celery arrange mail turtle front snake engine pair birth diagram diet",
        "address": "0x6F3df27e5361dCfb67A31Acb2fAB154Db3BC92E0",
        "privateKey": "0xdb95adb4d2e40a965e273a1b91ead10ecee7f2aa1c1f7a9e005b4e271249ec5c"
    },
    {
        "mnemonic": "grab vacant invite start castle ripple spell trim receive kitten domain winter",
        "address": "0x10a9B300ACc8A82F0E087dbD9396F97dC420FD8d",
        "privateKey": "0xb5ab076b9b5550d7f3f547c69eac5370a153ad13387af8a73abd1c3b323807f4"
    },
    {
        "mnemonic": "claim diary frozen avoid gorilla wire mandate luggage hurry scrap fish dune",
        "address": "0x27CD6a829d0F1D9509738580652b981a864EbB72",
        "privateKey": "0x898380a3c04154ea6c22d67d43c6f3498d1a29e3a25b44f7c8e0b7b78bea1511"
    },
    {
        "mnemonic": "hundred mutual climb pear word summer draw melt orchard display run post",
        "address": "0x0AeDD51f7CdD19478E5c43A94f9F8AfD7A9b1efc",
        "privateKey": "0x398c6012cd3234386b0c73f09291dad79fdb85637f0ece843b5736a0cf34627f"
    },
    {
        "mnemonic": "educate fly review wreck matter shaft box street place wrist neutral alley",
        "address": "0x6c32D2feacb92f1dC4CcC5E7Ff3a8e12F400532b",
        "privateKey": "0xe6c777836f6e812b8d17f36d8df6343d6d3610a2f5dfc50b0e332e3723ed7adb"
    }
]

Where is the code

We are working with code that is under active development. On March 24, 2020, this is where we are looking for

Arc - this is where most of the contract ABIs live:

We are looking, I think, at the “arc-factory” branch here: daostack/arc In particular, the code for the request to join and funding request schemes: https://github.com/daostack/arc/blob/arc-factory/contracts/schemes/JoinAndQuit.sol https://github.com/daostack/arc/blob/arc-factory/contracts/schemes/FundingRequest.sol

Subgraph - this is where the code lives that generates the graphql models

https://github.com/daostack/subgraph/releases/tag/ganache-0.1.1-rc.7-v1-0.1.1-rc.6-v0

Migration

This is where the DAO deployment scripts live, and especially the DAO creation scripts

Clone this wiki locally