-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.hpp
33 lines (26 loc) · 1.11 KB
/
constants.hpp
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
#pragma once
//Symbols
static constexpr symbol WAX_SYMBOL = symbol("WAX", 8);
//Numeric Limits
const int64_t MAX_ASSET_AMOUNT = 4611686018427387903;
const uint64_t MAX_ASSET_AMOUNT_64 = 4611686018427387903;
const uint64_t MAX_HOURS_BETWEEN_CLAIMS = 30 * 24;
//Contracts
const name WAX_CONTRACT = "eosio.token"_n;
const name ATOMICASSETS_CONTRACT = "atomicassets"_n;
const name ATOMICMARKET_CONTRACT = "atomicmarket"_n;
const name FARM_CONTRACT_V1 = "waxdaofarmer"_n;
const name FARM_CONTRACT_V2 = "farms.waxdao"_n;
const name DAO_CONTRACT = "dao.waxdao"_n;
//Memos
static const char* FARM_DEPOSIT_MEMO(const name& farm_name) {
return ("|farm_deposit|" + farm_name.to_string() + "|").c_str();
}
static const char* DAO_DEPOSIT_MEMO(const name& dao_name) {
return ("|treasury_deposit|" + dao_name.to_string() + "|").c_str();
}
//Error Messages
static const char* ERR_CONFIG_NOT_FOUND = "could not locate config";
static const char* ERR_DAO_DOESNT_EXIST = "dao does not exist";
static const char* ERR_FARM_DOESNT_EXIST = "farm does not exist";
static const char* ERR_RULE_DOESNT_EXIST = "rule does not exist for this token";