Contract con_neb_vault_proxy_001


Contract Code

1 contracts = Variable()
2
3 OPERATOR = '9a12554c2098567d22aaa9b787d73b606d2f2044a602186c3b9af65f6c58cfaf'
4
5 @construct
6 def seed():
7 contracts.set([])
8
9 @export
10 def add_contract(contract_name: str):
11 assert_owner()
12
13 con_list = contracts.get()
14 con_list.append(contract_name)
15 contracts.set(set(con_list))
16
17 @export
18 def remove_contract(contract_name: str):
19 assert_owner()
20
21 con_list = contracts.get()
22 if contract_name in con_list: con_list.remove(contract_name)
23 contracts.set(con_list)
24
25 def assert_owner():
26 assert ctx.caller == OPERATOR, 'Only owner can add contracts'
27

Byte Code

e30000000000000000000000000400000040000000735000000065006400640164028d025a0164035a026404640584005a03650464008301650564069c0164076408840483015a06650464008301650564069c016409640a840483015a07640b640c84005a08640d5300290eda17636f6e5f6e65625f7661756c745f70726f78795f303031da09636f6e7472616374732902da08636f6e7472616374da046e616d65da4039613132353534633230393835363764323261616139623738376437336236303664326632303434613630323138366333623961663635663663353863666166630000000000000000000000000200000043000000730e00000074006a016700830101006400530029014e2902da0b5f5f636f6e747261637473da03736574a90072080000007208000000da00da045f5f5f5f0500000073020000000001720a0000002901da0d636f6e74726163745f6e616d65630100000000000000020000000300000043000000732a00000074008300010074016a0283007d017c016a037c008301010074016a0474047c018301830101006400530029014e2905da0e5f5f6173736572745f6f776e65727206000000da03676574da06617070656e6472070000002902720b000000da08636f6e5f6c697374720800000072080000007209000000da0c6164645f636f6e74726163740900000073080000000002060108010a017210000000630100000000000000020000000200000043000000732e00000074008300010074016a0283007d017c007c016b0672207c016a037c008301010074016a047c01830101006400530029014e2905720c0000007206000000720d000000da0672656d6f766572070000002902720b000000720f000000720800000072080000007209000000da0f72656d6f76655f636f6e747261637411000000730a00000000020601080108010a017212000000630000000000000000000000000200000043000000731600000074006a0174026b02731274036401830182016400530029024e7a1c4f6e6c79206f776e65722063616e2061646420636f6e7472616374732904da03637478da0663616c6c6572da084f50455241544f52da0e417373657274696f6e4572726f727208000000720800000072080000007209000000720c0000001a00000073020000000001720c0000004e2909da085661726961626c6572060000007215000000720a000000da085f5f6578706f7274da0373747272100000007212000000720c0000007208000000720800000072080000007209000000da083c6d6f64756c653e01000000730e0000000c01040308040601100706011008