Contract audit

Created On NaN secs ago - Invalid Date UTC+0

Contract Code

1 owner = Variable(contract='audit', name='owner')
2 active_contract = Variable(contract='audit', name='active_contract')
3
4
5 def ():
6 owner.set(ctx.signer)
7
8
9 @export('audit')
10 def call(func: str, kwargs: dict):
11 module = importlib.import_module(contract.get())
12 module.route(func, kwargs)
13
14
15 @export('audit')
16 def set_contract(contract: str):
17 assert ctx.caller == owner.get()
18 active_contract.set(contract)
19
20
21 @export('audit')
22 def change_owner(new_owner: str):
23 assert ctx.caller == owner.get()
24 owner.set(new_owner)
25