@@ -34,6 +34,7 @@ var KnownGetMethodsDecoder = map[string][]func(tlb.VmStack) (string, any, error)
34
34
"get_executor_collection_address" : {DecodeGetExecutorCollectionAddress_StormResult },
35
35
"get_executor_vaults_whitelist" : {DecodeGetExecutorVaultsWhitelist_StormResult },
36
36
"get_expected_outputs" : {DecodeGetExpectedOutputs_StonfiResult },
37
+ "get_extensions" : {DecodeGetExtensionsResult },
37
38
"get_fix_price_data_v4" : {DecodeGetFixPriceDataV4Result },
38
39
"get_full_domain" : {DecodeGetFullDomainResult },
39
40
"get_jetton_data" : {DecodeGetJettonDataResult },
@@ -187,6 +188,7 @@ var KnownSimpleGetMethods = map[int][]func(ctx context.Context, executor Executo
187
188
111161 : {ListNominators },
188
189
115150 : {GetParams },
189
190
116242 : {GetLpSwapData },
191
+ 117729 : {GetExtensions },
190
192
118188 : {GetAssets },
191
193
118274 : {GetLockerBillData },
192
194
119378 : {GetDomain },
@@ -236,6 +238,7 @@ var resultTypes = []interface{}{
236
238
& GetExecutorCollectionAddress_StormResult {},
237
239
& GetExecutorVaultsWhitelist_StormResult {},
238
240
& GetExpectedOutputs_StonfiResult {},
241
+ & GetExtensionsResult {},
239
242
& GetFixPriceDataV4Result {},
240
243
& GetFullDomainResult {},
241
244
& GetJettonDataResult {},
@@ -1225,6 +1228,39 @@ func DecodeGetExpectedOutputs_StonfiResult(stack tlb.VmStack) (resultType string
1225
1228
return "GetExpectedOutputs_StonfiResult" , result , err
1226
1229
}
1227
1230
1231
+ type GetExtensionsResult struct {
1232
+ Extensions * WalletV5ExtensionsList
1233
+ }
1234
+
1235
+ func GetExtensions (ctx context.Context , executor Executor , reqAccountID ton.AccountID ) (string , any , error ) {
1236
+ stack := tlb.VmStack {}
1237
+
1238
+ // MethodID = 117729 for "get_extensions" method
1239
+ errCode , stack , err := executor .RunSmcMethodByID (ctx , reqAccountID , 117729 , stack )
1240
+ if err != nil {
1241
+ return "" , nil , err
1242
+ }
1243
+ if errCode != 0 && errCode != 1 {
1244
+ return "" , nil , fmt .Errorf ("method execution failed with code: %v" , errCode )
1245
+ }
1246
+ for _ , f := range []func (tlb.VmStack ) (string , any , error ){DecodeGetExtensionsResult } {
1247
+ s , r , err := f (stack )
1248
+ if err == nil {
1249
+ return s , r , nil
1250
+ }
1251
+ }
1252
+ return "" , nil , fmt .Errorf ("can not decode outputs" )
1253
+ }
1254
+
1255
+ func DecodeGetExtensionsResult (stack tlb.VmStack ) (resultType string , resultAny any , err error ) {
1256
+ if len (stack ) != 1 || (stack [0 ].SumType != "VmStkCell" && stack [0 ].SumType != "VmStkNull" ) {
1257
+ return "" , nil , fmt .Errorf ("invalid stack format" )
1258
+ }
1259
+ var result GetExtensionsResult
1260
+ err = stack .Unmarshal (& result )
1261
+ return "GetExtensionsResult" , result , err
1262
+ }
1263
+
1228
1264
type GetFixPriceDataV4Result struct {
1229
1265
IsComplete bool
1230
1266
CreatedAt uint32
0 commit comments