|
|
@ -1,13 +1,13 @@ |
|
|
|
;; =============== storage ============================= |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; storage binary format is defined as TL-B in companion .tlb file |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma version >=0.2.0; |
|
|
|
#pragma version >=0.2.0; |
|
|
|
|
|
|
|
|
|
|
|
#include "imports/stdlib.fc"; |
|
|
|
#include "imports/stdlib.fc"; |
|
|
|
#include "imports/constants.fc"; |
|
|
|
#include "imports/constants.fc"; |
|
|
|
#include "imports/utils.fc"; |
|
|
|
#include "imports/utils.fc"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; =============== storage ============================= |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; storage binary format is defined as TL-B in companion .tlb file |
|
|
|
|
|
|
|
|
|
|
|
(slice, int) load_data() inline { |
|
|
|
(slice, int) load_data() inline { |
|
|
|
var ds = get_data().begin_parse(); |
|
|
|
var ds = get_data().begin_parse(); |
|
|
|
return ( |
|
|
|
return ( |
|
|
@ -101,4 +101,4 @@ int counter() method_id { |
|
|
|
int balance() method_id { |
|
|
|
int balance() method_id { |
|
|
|
var [balance, _] = get_balance(); |
|
|
|
var [balance, _] = get_balance(); |
|
|
|
return balance; |
|
|
|
return balance; |
|
|
|
} |
|
|
|
} |
|
|
|