Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ develop-eggs
lib
lib64
venv*
PRs
test_out

# Installer logs
pip-log.txt
Expand Down
Empty file removed src/ZapToken/Curve/__init__.py
Empty file.
46 changes: 0 additions & 46 deletions src/ZapToken/Zaptoken.py

This file was deleted.

6 changes: 6 additions & 0 deletions src/arbiter/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class ZapArbiter(object):
"""docstring for ZapArbiter"""

def __init__(self, arg):
super(ZapArbiter, self).__init__()
self.arg = arg
25 changes: 25 additions & 0 deletions src/artifacts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import os
import json


def load_json(name: str) -> dict:
path = f"{os.path.dirname(os.path.dirname(__file__))}/artifacts/contracts/"
with open(os.path.abspath(path + f"{name}.json")) as f:
abi_file = json.load(f)
return abi_file


Artifacts = {
'ARBITER': load_json('Arbiter'),
'BONDAGE': load_json('Bondage'),
'DISPATCH': load_json('Dispatch'),
'REGISTRY': load_json('Registry'),
'CurrentCost': load_json('CurrentCost'),
'ZAP_TOKEN': load_json('ZapToken'),
'Client1': load_json('Client1'),
'Client2': load_json('Client2'),
'Client3': load_json('Client3'),
'Client4': load_json('Client4'),
'ZAPCOORDINATOR': load_json('ZapCoordinator'),
'TOKENDOTFACTORY': load_json('TokenDotFactory'),
}
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@
"transactionHash": "0xd891f92a9be7d2cb45ff46bbdfdf1cf20cc9957a7f3137905e105abf24e01bc1"
},
"31337": {
"address": "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"
"address": "0x9fe46736679d2d9a65f0992f2272de9f3c7fa6e0"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@
"transactionHash": "0xbf5c11d55267fc39e8d3c7cb1b8aac179c2141ec7dd26a98d03017cd4676b79e"
},
"31337": {
"address": "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707"
"address": "0x8a791620dd6260079bf849dc5567adc3f2fdc318"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@
"transactionHash": "0x9cbc488a7a4f2a217261e5f456f0118386a0a4b689e6c8ba8c601bda9341dd64"
},
"31337": {
"address": "0x0165878A594ca255338adfa4d48449f69242Eb8F"
"address": "0x5fc8d32690cc91d4c39d9d3abcbd16989f875707"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@
"42": {
"events": {},
"links": {},
"address": "0x513846a568407ebd16bc29d238c364702963377d",
"address": "0x26BC483E8f4E868B031b29973232c188B941a3D8",
"transactionHash": "0x9e913c416007746fb8967fb52558117ec97fd174b9f5368af08c7b951ccbb54e"
},
"31337": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"constant": true,
"inputs": [
{
"name": "",
"name": "endpoint",
"type": "bytes32"
}
],
Expand Down Expand Up @@ -260,6 +260,28 @@
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getFactories",
"outputs": [
{
"name": "",
"type": "address[]"
},
{
"name": "",
"type": "uint256[]"
},
{
"name": "",
"type": "bytes32[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
],
"networks": {
Expand All @@ -272,8 +294,14 @@
"42": {
"events": {},
"links": {},
"address": "0xf108237201E6EE3906f19390C699dA4d1495040F",
"address": "0xb0Bc8151Bcd5824359298587395655923F4c6AcB",
"transactionHash": "0x52a4cdc19fdb99c432317d14b4b27254c430998fc8baa4c9a56bcc6e9915f1eb"
},
"31337": {
"events": {},
"links": {},
"address": "0x809d550fca64d94bd9f66e60752a544199cfac3d",
"transactionHash": "0xcf5a0d23a80b4109afdc0bce7e496c6bd7b8491c683e9e5ebadd4e173da64e6c"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@
"42": {
"events": {},
"links": {},
"address": "0xbb05077924d88d6d76b1d10b058ff7e31a658f07",
"address": "0x0331048143015c0784D0F9c723E709314aB87460",
"transactionHash": "0x0323e79e6c0c01b5c7c2ced1d7bf1f8df695a02ddecefde5cb6fe187a88eb7d0"
},
"4447": {
Expand All @@ -422,6 +422,12 @@
"links": {},
"address": "0x11616e60d1b62633e02f044f155c9e03ff843974",
"transactionHash": "0x995123b07bdd859f0edfef77c6f2842b8b32f57c586d591a6f1fff258b2c11f8"
},
"31337": {
"events": {},
"links": {},
"address": "0x5fbdb2315678afecb367f032d93f642f64180aa3",
"transactionHash": "0xfa432264f28f3e8f3f151b9f834e1f6096d74b397bd5254cb883ef949aa5ad97"
}
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import utils
# import utils
from web3 import Web3

class BaseContract:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions src/dispatch/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class ZapDispatch(object):
"""docstring for ZapDispatch"""

def __init__(self, arg):
super(ZapDispatch, self).__init__()
self.arg = arg
Loading