Repository navigation
Expand file tree
/
Copy pathPisaChannel.py
More file actions
67 lines (46 loc) · 1.88 KB
/
Copy pathPisaChannel.py
File metadata and controls
67 lines (46 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
class Application:
def __init__(self, contract):
self._contract = contract
def transition(self, creditsA, creditsB, signers, cmds, inputs):
return self._contract.functions.transition(
creditsA, creditsB, signers, cmds, inputs
)
class StateChannel:
def __init__(self, contract):
self._contract = contract
def app(self):
return self._contract.functions.app()
def bestRound(self):
return self._contract.functions.bestRound()
def cmds(self, arg):
return self._contract.functions.cmds(arg)
def deadline(self):
return self._contract.functions.deadline()
def disputeLength(self):
return self._contract.functions.disputeLength()
def getDispute(self, i):
return self._contract.functions.getDispute(i)
def hstate(self):
return self._contract.functions.hstate()
def input(self, _cmd, _input):
return self._contract.functions.input(_cmd, _input)
def inputs(self, arg):
return self._contract.functions.inputs(arg)
def latestClaim(self):
return self._contract.functions.latestClaim()
def players(self, arg):
return self._contract.functions.players(arg)
def resolve(self, _creditsA, _creditsB, _r):
return self._contract.functions.resolve(_creditsA, _creditsB, _r)
def setstate(self, sigs, _i, _hstate):
return self._contract.functions.setstate(sigs, _i, _hstate)
def signers(self, arg):
return self._contract.functions.signers(arg)
def status(self):
return self._contract.functions.status()
def t_start(self):
return self._contract.functions.t_start()
def triggerdispute(self, sig):
return self._contract.functions.triggerdispute(sig)
def verifySignature(self, pub, h, v, r, s):
return self._contract.functions.verifySignature(pub, h, v, r, s)