Skip to content

mislavio/contracter

Repository files navigation

Contracter

Go Report Card build

Smart Contract Deployment and Abstraction Service.

Config

To run the POC happy path you must have:

  • Upvest OAuth credentials
  • An existing user
  • A single ETH wallet owned by the user
  • The wallet should have some funds to deploy a contract
  • Infura project ID
  • Local postgres database

Once all requisites are satisfied, insert the relevant credentials in the config.yaml as shown in the example below.

---
upvestPassword: hunter2
upvestUsername: user1
upvestWalletID: 01234567-0123-4567-0123-0123456789ab
walletAddress: 0x0123456789abcdef0123456789abcdef01234567
upvestOAuthID: randomCHARSrandomCHARSrandomCHARSrandom4
upvestOAuthSecret: >-
    randomCHARSrandomCHARSrandomCHARSrandomCHARSrandomCHARSrandomCHARSrandomCHARSrandomCHARSrandomCHARSrandomCHARSrandomCHARSrandom4
upvestBaseURL: https://api.playground.upvest.co/
upvestEtherAssetID: 01234567-0123-4567-0123-0123456789ab
smartContractABI: >-
    [{"inputs":[{"internalType":"string","name":"_version","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"value","type":"bytes32"}],"name":"ItemSet","type":"event"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"items","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"},{"internalType":"bytes32","name":"value","type":"bytes32"}],"name":"setItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
smartContractBytecode: >-
    608060405234801561001057600080fd5b506040516104493803806104498339818101604052602081101561003357600080fd5b810190808051604051939291908464010000000082111561005357600080fd5b8382019150602082018581111561006957600080fd5b825186600182028301116401000000008211171561008657600080fd5b8083526020830192505050908051906020019080838360005b838110156100ba57808201518184015260208101905061009f565b50505050905090810190601f1680156100e75780820380516001836020036101000a031916815260200191505b50604052505050806000908051906020019061010492919061010b565b50506101b0565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061014c57805160ff191683800117855561017a565b8280016001018555821561017a579182015b8281111561017957825182559160200191906001019061015e565b5b509050610187919061018b565b5090565b6101ad91905b808211156101a9576000816000905550600101610191565b5090565b90565b61028a806101bf6000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806348f343f31461004657806354fd4d5014610088578063f56256c71461010b575b600080fd5b6100726004803603602081101561005c57600080fd5b8101908080359060200190929190505050610143565b6040518082815260200191505060405180910390f35b61009061015b565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100d05780820151818401526020810190506100b5565b50505050905090810190601f1680156100fd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101416004803603604081101561012157600080fd5b8101908080359060200190929190803590602001909291905050506101f9565b005b60016020528060005260406000206000915090505481565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156101f15780601f106101c6576101008083540402835291602001916101f1565b820191906000526020600020905b8154815290600101906020018083116101d457829003601f168201915b505050505081565b8060016000848152602001908152602001600020819055507fe79e73da417710ae99aa2088575580a60415d359acfad9cdd3382d59c80281d48282604051808381526020018281526020019250505060405180910390a1505056fea26469706673582212209c226abe2705af69cabaab8ddf898fbf689e140aeb56f84de7fdb495441e23e764736f6c63430006060033
infuraProjectID: e08c99bf72b34790b5b499bb38584770

About

Smart contract interface abstraction service.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages