@@ -97,6 +97,7 @@ var KnownGetMethodsDecoder = map[string][]func(tlb.VmStack) (string, any, error)
97
97
"get_wallet_params" : {DecodeGetWalletParamsResult },
98
98
"is_active" : {DecodeIsActiveResult },
99
99
"is_plugin_installed" : {DecodeIsPluginInstalledResult },
100
+ "is_stable" : {DecodeIsStable_DedustResult },
100
101
"jetton_wallet_lock_data" : {DecodeJettonWalletLockDataResult },
101
102
"list_nominators" : {DecodeListNominatorsResult },
102
103
"list_votes" : {DecodeListVotesResult },
@@ -154,6 +155,7 @@ var KnownSimpleGetMethods = map[int][]func(ctx context.Context, executor Executo
154
155
102351 : {GetNftData },
155
156
102491 : {GetCollectionData },
156
157
103232 : {GetValidatorControllerData },
158
+ 103723 : {IsStable },
157
159
104122 : {GetLpMiningData },
158
160
104346 : {GetStorageParams },
159
161
105070 : {GetTimeout },
@@ -277,6 +279,7 @@ var resultTypes = []interface{}{
277
279
& GetWalletParamsResult {},
278
280
& IsActiveResult {},
279
281
& IsPluginInstalledResult {},
282
+ & IsStable_DedustResult {},
280
283
& JettonWalletLockDataResult {},
281
284
& ListNominatorsResult {},
282
285
& ListVotesResult {},
@@ -3620,6 +3623,39 @@ func DecodeIsPluginInstalledResult(stack tlb.VmStack) (resultType string, result
3620
3623
return "IsPluginInstalledResult" , result , err
3621
3624
}
3622
3625
3626
+ type IsStable_DedustResult struct {
3627
+ IsStable bool
3628
+ }
3629
+
3630
+ func IsStable (ctx context.Context , executor Executor , reqAccountID ton.AccountID ) (string , any , error ) {
3631
+ stack := tlb.VmStack {}
3632
+
3633
+ // MethodID = 103723 for "is_stable" method
3634
+ errCode , stack , err := executor .RunSmcMethodByID (ctx , reqAccountID , 103723 , stack )
3635
+ if err != nil {
3636
+ return "" , nil , err
3637
+ }
3638
+ if errCode != 0 && errCode != 1 {
3639
+ return "" , nil , fmt .Errorf ("method execution failed with code: %v" , errCode )
3640
+ }
3641
+ for _ , f := range []func (tlb.VmStack ) (string , any , error ){DecodeIsStable_DedustResult } {
3642
+ s , r , err := f (stack )
3643
+ if err == nil {
3644
+ return s , r , nil
3645
+ }
3646
+ }
3647
+ return "" , nil , fmt .Errorf ("can not decode outputs" )
3648
+ }
3649
+
3650
+ func DecodeIsStable_DedustResult (stack tlb.VmStack ) (resultType string , resultAny any , err error ) {
3651
+ if len (stack ) != 1 || (stack [0 ].SumType != "VmStkTinyInt" && stack [0 ].SumType != "VmStkInt" ) {
3652
+ return "" , nil , fmt .Errorf ("invalid stack format" )
3653
+ }
3654
+ var result IsStable_DedustResult
3655
+ err = stack .Unmarshal (& result )
3656
+ return "IsStable_DedustResult" , result , err
3657
+ }
3658
+
3623
3659
type JettonWalletLockDataResult struct {
3624
3660
FullBalance tlb.Int257
3625
3661
IndividualUnlockTime uint32
0 commit comments