@@ -37,6 +37,7 @@ var KnownGetMethodsDecoder = map[string][]func(tlb.VmStack) (string, any, error)
3737 "get_balances" : {DecodeGetBalances_DedustResult , DecodeGetBalancesResult },
3838 "get_bill_address" : {DecodeGetBillAddressResult },
3939 "get_bill_amount" : {DecodeGetBillAmountResult },
40+ "get_bin_assets" : {DecodeGetBinAssets_BidaskResult },
4041 "get_bins_number" : {DecodeGetBinsNumber_BidaskResult },
4142 "get_channel_data" : {DecodeGetChannelDataResult },
4243 "get_code" : {DecodeGetCode_CoffeeResult },
@@ -47,6 +48,7 @@ var KnownGetMethodsDecoder = map[string][]func(tlb.VmStack) (string, any, error)
4748 "get_delegation_state" : {DecodeGetDelegationStateResult },
4849 "get_distribution_info" : {DecodeGetDistributionInfoResult },
4950 "get_domain" : {DecodeGetDomainResult },
51+ "get_dynamic_fees_info" : {DecodeGetDynamicFeesInfo_BidaskResult },
5052 "get_editor" : {DecodeGetEditorResult },
5153 "get_estimated_attached_value" : {DecodeGetEstimatedAttachedValueResult },
5254 "get_exchange_settings" : {DecodeGetExchangeSettings_StormResult },
@@ -55,6 +57,7 @@ var KnownGetMethodsDecoder = map[string][]func(tlb.VmStack) (string, any, error)
5557 "get_executor_vaults_whitelist" : {DecodeGetExecutorVaultsWhitelist_StormResult },
5658 "get_expected_outputs" : {DecodeGetExpectedOutputs_StonfiResult },
5759 "get_extensions" : {DecodeGetExtensionsResult },
60+ "get_farming_info" : {DecodeGetFarmingInfo_BidaskResult },
5861 "get_fill_out" : {DecodeGetFillOut_MoonResult },
5962 "get_fix_price_data_v4" : {DecodeGetFixPriceDataV4Result },
6063 "get_full_domain" : {DecodeGetFullDomainResult },
@@ -141,6 +144,7 @@ var KnownGetMethodsDecoder = map[string][]func(tlb.VmStack) (string, any, error)
141144 "get_torrent_hash" : {DecodeGetTorrentHashResult },
142145 "get_trade_fee" : {DecodeGetTradeFee_DedustResult },
143146 "get_unlocks_info" : {DecodeGetUnlocksInfoResult },
147+ "get_user_bin_assets" : {DecodeGetUserBinAssets_BidaskResult },
144148 "get_validator_controller_data" : {DecodeGetValidatorControllerDataResult },
145149 "get_vamm_type" : {DecodeGetVammType_StormResult },
146150 "get_vault_address" : {DecodeGetVaultAddress_DedustResult },
@@ -163,6 +167,7 @@ var KnownGetMethodsDecoder = map[string][]func(tlb.VmStack) (string, any, error)
163167 "list_votes" : {DecodeListVotesResult },
164168 "royalty_params" : {DecodeRoyaltyParamsResult },
165169 "seqno" : {DecodeSeqnoResult },
170+ "whoami" : {DecodeWhoami_BidaskResult },
166171}
167172
168173var KnownSimpleGetMethods = map [int ][]func (ctx context.Context , executor Executor , reqAccountID ton.AccountID ) (string , any , error ){
@@ -185,6 +190,7 @@ var KnownSimpleGetMethods = map[int][]func(ctx context.Context, executor Executo
185190 78683 : {GetNextAdminAddress },
186191 78748 : {GetPublicKey },
187192 79661 : {GetRouterVersion },
193+ 79794 : {Whoami },
188194 80035 : {GetLpData },
189195 80697 : {GetAuctionInfo },
190196 80822 : {GetLastCleanTime },
@@ -220,6 +226,7 @@ var KnownSimpleGetMethods = map[int][]func(ctx context.Context, executor Executo
220226 91481 : {GetLastFillUpTime },
221227 92229 : {GetPoolFullData },
222228 92260 : {GetSubscriptionData },
229+ 92998 : {GetDynamicFeesInfo },
223230 94150 : {GetContractData },
224231 94255 : {GetAdminAddress },
225232 96219 : {GetMiningData },
@@ -251,6 +258,7 @@ var KnownSimpleGetMethods = map[int][]func(ctx context.Context, executor Executo
251258 107618 : {GetVestingData },
252259 107653 : {GetPluginList },
253260 108868 : {GetTerminalAmmPrice },
261+ 109946 : {GetFarmingInfo },
254262 110193 : {GetPoolInfo },
255263 110403 : {GetPaymentInfo },
256264 111161 : {ListNominators },
@@ -323,6 +331,7 @@ var resultTypes = []interface{}{
323331 & GetBalances_DedustResult {},
324332 & GetBillAddressResult {},
325333 & GetBillAmountResult {},
334+ & GetBinAssets_BidaskResult {},
326335 & GetBinsNumber_BidaskResult {},
327336 & GetChannelDataResult {},
328337 & GetCode_CoffeeResult {},
@@ -333,6 +342,7 @@ var resultTypes = []interface{}{
333342 & GetDelegationStateResult {},
334343 & GetDistributionInfoResult {},
335344 & GetDomainResult {},
345+ & GetDynamicFeesInfo_BidaskResult {},
336346 & GetEditorResult {},
337347 & GetEstimatedAttachedValueResult {},
338348 & GetExchangeSettings_StormResult {},
@@ -341,6 +351,7 @@ var resultTypes = []interface{}{
341351 & GetExecutorVaultsWhitelist_StormResult {},
342352 & GetExpectedOutputs_StonfiResult {},
343353 & GetExtensionsResult {},
354+ & GetFarmingInfo_BidaskResult {},
344355 & GetFillOut_MoonResult {},
345356 & GetFixPriceDataV4Result {},
346357 & GetFullDomainResult {},
@@ -440,6 +451,7 @@ var resultTypes = []interface{}{
440451 & GetTorrentHashResult {},
441452 & GetTradeFee_DedustResult {},
442453 & GetUnlocksInfoResult {},
454+ & GetUserBinAssets_BidaskResult {},
443455 & GetValidatorControllerDataResult {},
444456 & GetVammType_StormResult {},
445457 & GetVaultAddress_DedustResult {},
@@ -465,6 +477,7 @@ var resultTypes = []interface{}{
465477 & ListVotesResult {},
466478 & RoyaltyParamsResult {},
467479 & SeqnoResult {},
480+ & Whoami_BidaskResult {},
468481}
469482
470483type Executor interface {
@@ -1526,6 +1539,46 @@ func DecodeGetBillAmountResult(stack tlb.VmStack) (resultType string, resultAny
15261539 return "GetBillAmountResult" , result , err
15271540}
15281541
1542+ type GetBinAssets_BidaskResult struct {
1543+ AmountX tlb.Int257
1544+ AmountY tlb.Int257
1545+ }
1546+
1547+ func GetBinAssets (ctx context.Context , executor Executor , reqAccountID ton.AccountID , binNumber tlb.Int257 ) (string , any , error ) {
1548+ stack := tlb.VmStack {}
1549+ var (
1550+ val tlb.VmStackValue
1551+ err error
1552+ )
1553+ val = tlb.VmStackValue {SumType : "VmStkInt" , VmStkInt : binNumber }
1554+ stack .Put (val )
1555+
1556+ // MethodID = 128187 for "get_bin_assets" method
1557+ errCode , stack , err := executor .RunSmcMethodByID (ctx , reqAccountID , 128187 , stack )
1558+ if err != nil {
1559+ return "" , nil , err
1560+ }
1561+ if errCode != 0 && errCode != 1 {
1562+ return "" , nil , fmt .Errorf ("method execution failed with code: %v" , errCode )
1563+ }
1564+ for _ , f := range []func (tlb.VmStack ) (string , any , error ){DecodeGetBinAssets_BidaskResult } {
1565+ s , r , err := f (stack )
1566+ if err == nil {
1567+ return s , r , nil
1568+ }
1569+ }
1570+ return "" , nil , fmt .Errorf ("can not decode outputs" )
1571+ }
1572+
1573+ func DecodeGetBinAssets_BidaskResult (stack tlb.VmStack ) (resultType string , resultAny any , err error ) {
1574+ if len (stack ) != 2 || (stack [0 ].SumType != "VmStkTinyInt" && stack [0 ].SumType != "VmStkInt" ) || (stack [1 ].SumType != "VmStkTinyInt" && stack [1 ].SumType != "VmStkInt" ) {
1575+ return "" , nil , fmt .Errorf ("invalid stack format" )
1576+ }
1577+ var result GetBinAssets_BidaskResult
1578+ err = stack .Unmarshal (& result )
1579+ return "GetBinAssets_BidaskResult" , result , err
1580+ }
1581+
15291582type GetBinsNumber_BidaskResult struct {
15301583 BinsNumber tlb.Int257
15311584}
@@ -1901,6 +1954,42 @@ func DecodeGetDomainResult(stack tlb.VmStack) (resultType string, resultAny any,
19011954 return "GetDomainResult" , result , err
19021955}
19031956
1957+ type GetDynamicFeesInfo_BidaskResult struct {
1958+ BaseFee tlb.Int257
1959+ DynamicFeeFactor tlb.Int257
1960+ TimeFilter tlb.Int257
1961+ TimeDecay tlb.Int257
1962+ }
1963+
1964+ func GetDynamicFeesInfo (ctx context.Context , executor Executor , reqAccountID ton.AccountID ) (string , any , error ) {
1965+ stack := tlb.VmStack {}
1966+
1967+ // MethodID = 92998 for "get_dynamic_fees_info" method
1968+ errCode , stack , err := executor .RunSmcMethodByID (ctx , reqAccountID , 92998 , stack )
1969+ if err != nil {
1970+ return "" , nil , err
1971+ }
1972+ if errCode != 0 && errCode != 1 {
1973+ return "" , nil , fmt .Errorf ("method execution failed with code: %v" , errCode )
1974+ }
1975+ for _ , f := range []func (tlb.VmStack ) (string , any , error ){DecodeGetDynamicFeesInfo_BidaskResult } {
1976+ s , r , err := f (stack )
1977+ if err == nil {
1978+ return s , r , nil
1979+ }
1980+ }
1981+ return "" , nil , fmt .Errorf ("can not decode outputs" )
1982+ }
1983+
1984+ func DecodeGetDynamicFeesInfo_BidaskResult (stack tlb.VmStack ) (resultType string , resultAny any , err error ) {
1985+ if len (stack ) != 4 || (stack [0 ].SumType != "VmStkTinyInt" && stack [0 ].SumType != "VmStkInt" ) || (stack [1 ].SumType != "VmStkTinyInt" && stack [1 ].SumType != "VmStkInt" ) || (stack [2 ].SumType != "VmStkTinyInt" && stack [2 ].SumType != "VmStkInt" ) || (stack [3 ].SumType != "VmStkTinyInt" && stack [3 ].SumType != "VmStkInt" ) {
1986+ return "" , nil , fmt .Errorf ("invalid stack format" )
1987+ }
1988+ var result GetDynamicFeesInfo_BidaskResult
1989+ err = stack .Unmarshal (& result )
1990+ return "GetDynamicFeesInfo_BidaskResult" , result , err
1991+ }
1992+
19041993type GetEditorResult struct {
19051994 Editor tlb.MsgAddress
19061995}
@@ -2216,6 +2305,44 @@ func DecodeGetExtensionsResult(stack tlb.VmStack) (resultType string, resultAny
22162305 return "GetExtensionsResult" , result , err
22172306}
22182307
2308+ type GetFarmingInfo_BidaskResult struct {
2309+ DistributedXAmount tlb.Int257
2310+ DistributedYAmount tlb.Int257
2311+ FarmingXPerSecond tlb.Int257
2312+ FarmingYPerSecond tlb.Int257
2313+ PreviousCall tlb.Int257
2314+ EndOfFarming tlb.Int257
2315+ }
2316+
2317+ func GetFarmingInfo (ctx context.Context , executor Executor , reqAccountID ton.AccountID ) (string , any , error ) {
2318+ stack := tlb.VmStack {}
2319+
2320+ // MethodID = 109946 for "get_farming_info" method
2321+ errCode , stack , err := executor .RunSmcMethodByID (ctx , reqAccountID , 109946 , stack )
2322+ if err != nil {
2323+ return "" , nil , err
2324+ }
2325+ if errCode != 0 && errCode != 1 {
2326+ return "" , nil , fmt .Errorf ("method execution failed with code: %v" , errCode )
2327+ }
2328+ for _ , f := range []func (tlb.VmStack ) (string , any , error ){DecodeGetFarmingInfo_BidaskResult } {
2329+ s , r , err := f (stack )
2330+ if err == nil {
2331+ return s , r , nil
2332+ }
2333+ }
2334+ return "" , nil , fmt .Errorf ("can not decode outputs" )
2335+ }
2336+
2337+ func DecodeGetFarmingInfo_BidaskResult (stack tlb.VmStack ) (resultType string , resultAny any , err error ) {
2338+ if len (stack ) != 6 || (stack [0 ].SumType != "VmStkTinyInt" && stack [0 ].SumType != "VmStkInt" ) || (stack [1 ].SumType != "VmStkTinyInt" && stack [1 ].SumType != "VmStkInt" ) || (stack [2 ].SumType != "VmStkTinyInt" && stack [2 ].SumType != "VmStkInt" ) || (stack [3 ].SumType != "VmStkTinyInt" && stack [3 ].SumType != "VmStkInt" ) || (stack [4 ].SumType != "VmStkTinyInt" && stack [4 ].SumType != "VmStkInt" ) || (stack [5 ].SumType != "VmStkTinyInt" && stack [5 ].SumType != "VmStkInt" ) {
2339+ return "" , nil , fmt .Errorf ("invalid stack format" )
2340+ }
2341+ var result GetFarmingInfo_BidaskResult
2342+ err = stack .Unmarshal (& result )
2343+ return "GetFarmingInfo_BidaskResult" , result , err
2344+ }
2345+
22192346type GetFillOut_MoonResult struct {
22202347 AmountOut tlb.Int257
22212348}
@@ -5828,6 +5955,48 @@ func DecodeGetUnlocksInfoResult(stack tlb.VmStack) (resultType string, resultAny
58285955 return "GetUnlocksInfoResult" , result , err
58295956}
58305957
5958+ type GetUserBinAssets_BidaskResult struct {
5959+ AmountX tlb.Int257
5960+ AmountY tlb.Int257
5961+ }
5962+
5963+ func GetUserBinAssets (ctx context.Context , executor Executor , reqAccountID ton.AccountID , binNumber tlb.Int257 , userLp tlb.Int257 ) (string , any , error ) {
5964+ stack := tlb.VmStack {}
5965+ var (
5966+ val tlb.VmStackValue
5967+ err error
5968+ )
5969+ val = tlb.VmStackValue {SumType : "VmStkInt" , VmStkInt : binNumber }
5970+ stack .Put (val )
5971+ val = tlb.VmStackValue {SumType : "VmStkInt" , VmStkInt : userLp }
5972+ stack .Put (val )
5973+
5974+ // MethodID = 86718 for "get_user_bin_assets" method
5975+ errCode , stack , err := executor .RunSmcMethodByID (ctx , reqAccountID , 86718 , stack )
5976+ if err != nil {
5977+ return "" , nil , err
5978+ }
5979+ if errCode != 0 && errCode != 1 {
5980+ return "" , nil , fmt .Errorf ("method execution failed with code: %v" , errCode )
5981+ }
5982+ for _ , f := range []func (tlb.VmStack ) (string , any , error ){DecodeGetUserBinAssets_BidaskResult } {
5983+ s , r , err := f (stack )
5984+ if err == nil {
5985+ return s , r , nil
5986+ }
5987+ }
5988+ return "" , nil , fmt .Errorf ("can not decode outputs" )
5989+ }
5990+
5991+ func DecodeGetUserBinAssets_BidaskResult (stack tlb.VmStack ) (resultType string , resultAny any , err error ) {
5992+ if len (stack ) != 2 || (stack [0 ].SumType != "VmStkTinyInt" && stack [0 ].SumType != "VmStkInt" ) || (stack [1 ].SumType != "VmStkTinyInt" && stack [1 ].SumType != "VmStkInt" ) {
5993+ return "" , nil , fmt .Errorf ("invalid stack format" )
5994+ }
5995+ var result GetUserBinAssets_BidaskResult
5996+ err = stack .Unmarshal (& result )
5997+ return "GetUserBinAssets_BidaskResult" , result , err
5998+ }
5999+
58316000type GetValidatorControllerDataResult struct {
58326001 State int32
58336002 Halted bool
@@ -6665,3 +6834,36 @@ func DecodeSeqnoResult(stack tlb.VmStack) (resultType string, resultAny any, err
66656834 err = stack .Unmarshal (& result )
66666835 return "SeqnoResult" , result , err
66676836}
6837+
6838+ type Whoami_BidaskResult struct {
6839+ PoolType string
6840+ }
6841+
6842+ func Whoami (ctx context.Context , executor Executor , reqAccountID ton.AccountID ) (string , any , error ) {
6843+ stack := tlb.VmStack {}
6844+
6845+ // MethodID = 79794 for "whoami" method
6846+ errCode , stack , err := executor .RunSmcMethodByID (ctx , reqAccountID , 79794 , stack )
6847+ if err != nil {
6848+ return "" , nil , err
6849+ }
6850+ if errCode != 0 && errCode != 1 {
6851+ return "" , nil , fmt .Errorf ("method execution failed with code: %v" , errCode )
6852+ }
6853+ for _ , f := range []func (tlb.VmStack ) (string , any , error ){DecodeWhoami_BidaskResult } {
6854+ s , r , err := f (stack )
6855+ if err == nil {
6856+ return s , r , nil
6857+ }
6858+ }
6859+ return "" , nil , fmt .Errorf ("can not decode outputs" )
6860+ }
6861+
6862+ func DecodeWhoami_BidaskResult (stack tlb.VmStack ) (resultType string , resultAny any , err error ) {
6863+ if len (stack ) != 1 || (stack [0 ].SumType != "VmStkSlice" ) {
6864+ return "" , nil , fmt .Errorf ("invalid stack format" )
6865+ }
6866+ var result Whoami_BidaskResult
6867+ err = stack .Unmarshal (& result )
6868+ return "Whoami_BidaskResult" , result , err
6869+ }
0 commit comments