forked from everx-labs/debots
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAmountInput.sol
More file actions
25 lines (15 loc) · 732 Bytes
/
Copy pathAmountInput.sol
File metadata and controls
25 lines (15 loc) · 732 Bytes
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
pragma ton-solidity >=0.35.0;
interface IAmountInput {
function get(uint32 answerId, string prompt, uint8 decimals, uint128 min, uint128 max) external returns (uint128 value);
}
library AmountInput {
uint256 constant ID = 0xa1d347099e29c1624c8890619daf207bde18e92df5220a54bcc6d858309ece84;
int8 constant DEBOT_WC = -31;
function get(uint32 answerId, string prompt, uint8 decimals, uint128 min, uint128 max) public pure {
address addr = address.makeAddrStd(DEBOT_WC, ID);
IAmountInput(addr).get(answerId, prompt, decimals, min, max);
}
}
contract AmountInputABI is IAmountInput {
function get(uint32 answerId, string prompt, uint8 decimals, uint128 min, uint128 max) external override returns (uint128 value) {}
}