|
|
@ -41,7 +41,10 @@ int calcprice(slice domain, cell pricing) inline_ref { |
|
|
|
throw_unless(201, len <= 126 * 8); ;; maxmimum 126 characters |
|
|
|
throw_unless(201, len <= 126 * 8); ;; maxmimum 126 characters |
|
|
|
throw_unless(202, mod(len, 8) == 0); |
|
|
|
throw_unless(202, mod(len, 8) == 0); |
|
|
|
throw_unless(203, check_domain_string(domain)); |
|
|
|
throw_unless(203, check_domain_string(domain)); |
|
|
|
return 100000; ;; todo |
|
|
|
slice pr = pricing.begin_parse(); |
|
|
|
|
|
|
|
int multiplier = pr~load_uint(8); |
|
|
|
|
|
|
|
int steepness = pr~load_uint(4); |
|
|
|
|
|
|
|
return price_function(len / 8, multiplier, steepness); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
cell calculate_nft_item_state_init(int item_index, cell nft_item_code) { |
|
|
|
cell calculate_nft_item_state_init(int item_index, cell nft_item_code) { |
|
|
@ -138,6 +141,11 @@ cell get_nft_content(int index, cell individual_nft_content) method_id { |
|
|
|
return individual_nft_content; |
|
|
|
return individual_nft_content; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int get_price(slice domain) method_id { |
|
|
|
|
|
|
|
var (content, nft_item_code, pricing, key, addr) = load_data(); |
|
|
|
|
|
|
|
return calcprice(domain, pricing); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
(int, cell) dnsresolve(slice subdomain, int category) method_id { |
|
|
|
(int, cell) dnsresolve(slice subdomain, int category) method_id { |
|
|
|
throw_unless(70, mod(slice_bits(subdomain), 8) == 0); |
|
|
|
throw_unless(70, mod(slice_bits(subdomain), 8) == 0); |
|
|
|
|
|
|
|
|
|
|
|