mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
New extra currency behavior (#1539)
This commit is contained in:
parent
1b70e48327
commit
b3b2bd1c3c
17 changed files with 228 additions and 65 deletions
|
@ -391,6 +391,8 @@ struct CurrencyCollection {
|
|||
CurrencyCollection operator-(CurrencyCollection&& other) const;
|
||||
CurrencyCollection operator-(td::RefInt256 other_grams) const;
|
||||
bool clamp(const CurrencyCollection& other);
|
||||
bool check_extra_currency_limit(td::uint32 max_currencies) const;
|
||||
static bool remove_zero_extra_currencies(Ref<vm::Cell>& root, td::uint32 max_currencies);
|
||||
bool store(vm::CellBuilder& cb) const;
|
||||
bool store_or_zero(vm::CellBuilder& cb) const;
|
||||
bool fetch(vm::CellSlice& cs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue