-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bridge.sol
48 lines (34 loc) · 1.02 KB
/
Bridge.sol
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
pragma ton-solidity >=0.43.0;
pragma AbiHeader expire;
pragma AbiHeader time;
import './interfaces/IBridge.sol';
contract Bridge is IBridge {
address public _owner;
address[] public _configurations;
uint[] public _keys;
constructor(address owner) public {
tvm.accept();
_owner = owner;
}
function setConfigurations(address[] configurations) public {
require(msg.sender == _owner);
_configurations = configurations;
msg.sender.transfer({value:0, flag:64});
}
function setKeys(uint[] keys) public {
require(msg.sender == _owner);
_keys = keys;
msg.sender.transfer({value:0, flag:64});
}
//todo return value
function getRelayKeys() public override responsible view returns(uint[] keys) {
return {value: 0, flag: 64} _keys;
}
function getInfo() public view returns (
address owner,
address[] configurations,
uint[] keys
){
return (_owner, _configurations, _keys);
}
}