|
|
@ -206,6 +206,12 @@ cell __gen_writecell_BlacklistWallet((slice) v) inline_ref { |
|
|
|
return (sc_0, (v'staking_pool)); |
|
|
|
return (sc_0, (v'staking_pool)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(slice, ((slice))) __gen_read_RequestLinker(slice sc_0) inline { |
|
|
|
|
|
|
|
throw_unless(129, sc_0~load_uint(32) == 1512653598); |
|
|
|
|
|
|
|
var v'client = sc_0~__tact_load_address(); |
|
|
|
|
|
|
|
return (sc_0, (v'client)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
builder __gen_write_WithdrawalRequests(builder build_0, (cell, cell, int) v) inline { |
|
|
|
builder __gen_write_WithdrawalRequests(builder build_0, (cell, cell, int) v) inline { |
|
|
|
var (v'addresses, v'amounts, v'n_requests) = v; |
|
|
|
var (v'addresses, v'amounts, v'n_requests) = v; |
|
|
|
build_0 = build_0.store_dict(v'addresses); |
|
|
|
build_0 = build_0.store_dict(v'addresses); |
|
|
@ -599,6 +605,23 @@ _ $__gen_get_owner() method_id(83229) { |
|
|
|
return (($self'totalSupply, $self'owner, $self'content, $self'mintable, $self'first_linker, $self'last_linker, $self'n_linkers, $self'staking_pool, $self'in_the_pool, ($self'withdrawal_requests'addresses, $self'withdrawal_requests'amounts, $self'withdrawal_requests'n_requests)), ()); |
|
|
|
return (($self'totalSupply, $self'owner, $self'content, $self'mintable, $self'first_linker, $self'last_linker, $self'n_linkers, $self'staking_pool, $self'in_the_pool, ($self'withdrawal_requests'addresses, $self'withdrawal_requests'amounts, $self'withdrawal_requests'n_requests)), ()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(((int, slice, cell, int, slice, slice, int, slice, int, (cell, cell, int))), ()) $__gen_TONB_receive_RequestLinker((int, slice, cell, int, slice, slice, int, slice, int, (cell, cell, int)) $self, (slice) $msg) impure inline { |
|
|
|
|
|
|
|
var ($self'totalSupply, $self'owner, $self'content, $self'mintable, $self'first_linker, $self'last_linker, $self'n_linkers, $self'staking_pool, $self'in_the_pool, ($self'withdrawal_requests'addresses, $self'withdrawal_requests'amounts, $self'withdrawal_requests'n_requests)) = $self; |
|
|
|
|
|
|
|
var ($msg'client) = $msg; |
|
|
|
|
|
|
|
var ($ctx'bounced, $ctx'sender, $ctx'value, $ctx'raw) = __tact_context_get(); |
|
|
|
|
|
|
|
var ($winit'code, $winit'data) = ($self'totalSupply, $self'owner, $self'content, $self'mintable, $self'first_linker, $self'last_linker, $self'n_linkers, $self'staking_pool, $self'in_the_pool, ($self'withdrawal_requests'addresses, $self'withdrawal_requests'amounts, $self'withdrawal_requests'n_requests))~$__gen_TONB_getJettonWalletInit($msg'client); |
|
|
|
|
|
|
|
slice $walletAddress = $contractAddress(($winit'code, $winit'data)); |
|
|
|
|
|
|
|
throw_unless(41207, __tact_address_eq($walletAddress, $ctx'sender)); |
|
|
|
|
|
|
|
var ($linker_init'code, $linker_init'data) = $__gen_Linker_init_child(__tact_context_sys, $self'n_linkers, $walletAddress, my_address()); |
|
|
|
|
|
|
|
slice $linker_address = $contractAddress(($linker_init'code, $linker_init'data)); |
|
|
|
|
|
|
|
$send((false, $linker_address, 20000000, 0, __gen_writecell_SetLinkerNeighbor(($self'last_linker)), $linker_init'code, $linker_init'data)); |
|
|
|
|
|
|
|
$self'last_linker = $linker_address; |
|
|
|
|
|
|
|
$self'n_linkers = ($self'n_linkers + 1); |
|
|
|
|
|
|
|
cell $wallet_msg_body = __gen_writecell_TokenTransferInternal((0, 0, my_address(), my_address(), 0, $emptySlice(), ($self'n_linkers - 1), $linker_address)); |
|
|
|
|
|
|
|
$send((false, $walletAddress, 65000000, 0, $wallet_msg_body, $winit'code, $winit'data)); |
|
|
|
|
|
|
|
return (($self'totalSupply, $self'owner, $self'content, $self'mintable, $self'first_linker, $self'last_linker, $self'n_linkers, $self'staking_pool, $self'in_the_pool, ($self'withdrawal_requests'addresses, $self'withdrawal_requests'amounts, $self'withdrawal_requests'n_requests)), ()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
((int, slice, cell, int, slice, slice, int, slice, int, (cell, cell, int)), ()) $__gen_TONB_receive_comment_f7b1ab6077945b37370a1550574675180cf87df4cb047c869746812a83667d4c((int, slice, cell, int, slice, slice, int, slice, int, (cell, cell, int)) $self) impure inline { |
|
|
|
((int, slice, cell, int, slice, slice, int, slice, int, (cell, cell, int)), ()) $__gen_TONB_receive_comment_f7b1ab6077945b37370a1550574675180cf87df4cb047c869746812a83667d4c((int, slice, cell, int, slice, slice, int, slice, int, (cell, cell, int)) $self) impure inline { |
|
|
|
var ($self'totalSupply, $self'owner, $self'content, $self'mintable, $self'first_linker, $self'last_linker, $self'n_linkers, $self'staking_pool, $self'in_the_pool, ($self'withdrawal_requests'addresses, $self'withdrawal_requests'amounts, $self'withdrawal_requests'n_requests)) = $self; |
|
|
|
var ($self'totalSupply, $self'owner, $self'content, $self'mintable, $self'first_linker, $self'last_linker, $self'n_linkers, $self'staking_pool, $self'in_the_pool, ($self'withdrawal_requests'addresses, $self'withdrawal_requests'amounts, $self'withdrawal_requests'n_requests)) = $self; |
|
|
|
int $i = 0; |
|
|
|
int $i = 0; |
|
|
@ -691,6 +714,15 @@ _ $__gen_get_owner() method_id(83229) { |
|
|
|
return (); |
|
|
|
return (); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Receive RequestLinker message |
|
|
|
|
|
|
|
if (op == 1512653598) { |
|
|
|
|
|
|
|
var self = __gen_load_TONB(); |
|
|
|
|
|
|
|
var msg = in_msg~__gen_read_RequestLinker(); |
|
|
|
|
|
|
|
self~$__gen_TONB_receive_RequestLinker(msg); |
|
|
|
|
|
|
|
__gen_store_TONB(self); |
|
|
|
|
|
|
|
return (); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
;; Text Receivers |
|
|
|
;; Text Receivers |
|
|
|
if (op == 0) { |
|
|
|
if (op == 0) { |
|
|
|
var text_op = slice_hash(in_msg); |
|
|
|
var text_op = slice_hash(in_msg); |
|
|
@ -717,5 +749,5 @@ _ supported_interfaces() method_id { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
_ get_abi_ipfs() { |
|
|
|
_ get_abi_ipfs() { |
|
|
|
return "ipfs://QmT3asZBJxdjojRfpy7LPafCD4rqJn3fQzFqeWGuf8rLCC"; |
|
|
|
return "ipfs://QmbvAFjnCM5XTJgrgt7t9fPJakhgnHe6UgD1XQ2bUmTLTR"; |
|
|
|
} |
|
|
|
} |