@typemove/aptos 1.5.6-rc.1 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -44,7 +44,7 @@ export class AptosCodegen extends AbstractCodegen<MoveModuleBytecode, Event | Mo
44
44
  generateImports(): string {
45
45
  return `
46
46
  ${super.generateImports()}
47
- import { Aptos, Account as AptosAccount, MoveAddressType, PendingTransactionResponse, InputGenerateTransactionOptions, MoveStructId, InputViewRequestData } from '@aptos-labs/ts-sdk'
47
+ import { Aptos, Account as AptosAccount, MoveAddressType, PendingTransactionResponse, InputGenerateTransactionOptions, MoveStructId, InputViewFunctionData } from '@aptos-labs/ts-sdk'
48
48
  `
49
49
  }
50
50
  protected generateExtra(module: InternalMoveModule) {
@@ -94,7 +94,7 @@ export class AptosCodegen extends AbstractCodegen<MoveModuleBytecode, Event | Mo
94
94
  ${requestArg}
95
95
  version?: bigint): Promise<[${returns.join(',')}]> {
96
96
  const coder = defaultMoveCoder(client.config.fullnode)
97
- const data: InputViewRequestData = {
97
+ const data: InputViewFunctionData = {
98
98
  function: "${module.address}::${module.name}::${func.name}",
99
99
  functionArguments: ${func.params.length > 0 ? 'coder.encodeArray(request.functionArguments)' : '[]'},
100
100
  typeArguments: ${func.typeParams.length > 0 ? 'request.typeArguments' : '[]'},
@@ -16,7 +16,7 @@ import {
16
16
  PendingTransactionResponse,
17
17
  InputGenerateTransactionOptions,
18
18
  MoveStructId,
19
- InputViewRequestData,
19
+ InputViewFunctionData,
20
20
  } from "@aptos-labs/ts-sdk";
21
21
 
22
22
  import { _0x1 } from "@typemove/aptos/builtin";
@@ -33,7 +33,7 @@ export namespace fees {
33
33
  version?: bigint,
34
34
  ): Promise<[bigint]> {
35
35
  const coder = defaultMoveCoder(client.config.fullnode);
36
- const data: InputViewRequestData = {
36
+ const data: InputViewFunctionData = {
37
37
  function:
38
38
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::fees::balance",
39
39
  functionArguments: [],
@@ -221,7 +221,7 @@ export namespace base_pool {
221
221
  version?: bigint,
222
222
  ): Promise<[number]> {
223
223
  const coder = defaultMoveCoder(client.config.fullnode);
224
- const data: InputViewRequestData = {
224
+ const data: InputViewFunctionData = {
225
225
  function:
226
226
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::max_supported_decimals",
227
227
  functionArguments: [],
@@ -244,7 +244,7 @@ export namespace base_pool {
244
244
  version?: bigint,
245
245
  ): Promise<[bigint]> {
246
246
  const coder = defaultMoveCoder(client.config.fullnode);
247
- const data: InputViewRequestData = {
247
+ const data: InputViewFunctionData = {
248
248
  function:
249
249
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::pool_token_supply",
250
250
  functionArguments: [],
@@ -270,7 +270,7 @@ export namespace base_pool {
270
270
  ]
271
271
  > {
272
272
  const coder = defaultMoveCoder(client.config.fullnode);
273
- const data: InputViewRequestData = {
273
+ const data: InputViewFunctionData = {
274
274
  function:
275
275
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::base_pool::swap_fee_protocol_allocation_ratio",
276
276
  functionArguments: [],
@@ -816,7 +816,7 @@ export namespace stable_pool {
816
816
  version?: bigint,
817
817
  ): Promise<[bigint]> {
818
818
  const coder = defaultMoveCoder(client.config.fullnode);
819
- const data: InputViewRequestData = {
819
+ const data: InputViewFunctionData = {
820
820
  function:
821
821
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::flashloan_fee_bps",
822
822
  functionArguments: [],
@@ -844,7 +844,7 @@ export namespace stable_pool {
844
844
  version?: bigint,
845
845
  ): Promise<[bigint[]]> {
846
846
  const coder = defaultMoveCoder(client.config.fullnode);
847
- const data: InputViewRequestData = {
847
+ const data: InputViewFunctionData = {
848
848
  function:
849
849
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::get_precision_multipliers",
850
850
  functionArguments: [],
@@ -868,7 +868,7 @@ export namespace stable_pool {
868
868
  version?: bigint,
869
869
  ): Promise<[string]> {
870
870
  const coder = defaultMoveCoder(client.config.fullnode);
871
- const data: InputViewRequestData = {
871
+ const data: InputViewFunctionData = {
872
872
  function:
873
873
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::lp_name_by_id",
874
874
  functionArguments: coder.encodeArray(request.functionArguments),
@@ -889,7 +889,7 @@ export namespace stable_pool {
889
889
  version?: bigint,
890
890
  ): Promise<[bigint]> {
891
891
  const coder = defaultMoveCoder(client.config.fullnode);
892
- const data: InputViewRequestData = {
892
+ const data: InputViewFunctionData = {
893
893
  function:
894
894
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::next_pool_id",
895
895
  functionArguments: [],
@@ -913,7 +913,7 @@ export namespace stable_pool {
913
913
  version?: bigint,
914
914
  ): Promise<[bigint]> {
915
915
  const coder = defaultMoveCoder(client.config.fullnode);
916
- const data: InputViewRequestData = {
916
+ const data: InputViewFunctionData = {
917
917
  function:
918
918
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::pool_amp_factor",
919
919
  functionArguments: [],
@@ -936,7 +936,7 @@ export namespace stable_pool {
936
936
  version?: bigint,
937
937
  ): Promise<[bigint[]]> {
938
938
  const coder = defaultMoveCoder(client.config.fullnode);
939
- const data: InputViewRequestData = {
939
+ const data: InputViewFunctionData = {
940
940
  function:
941
941
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::pool_balances",
942
942
  functionArguments: [],
@@ -959,7 +959,7 @@ export namespace stable_pool {
959
959
  version?: bigint,
960
960
  ): Promise<[bigint[], bigint, bigint]> {
961
961
  const coder = defaultMoveCoder(client.config.fullnode);
962
- const data: InputViewRequestData = {
962
+ const data: InputViewFunctionData = {
963
963
  function:
964
964
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::pool_info",
965
965
  functionArguments: coder.encodeArray(request.functionArguments),
@@ -988,7 +988,7 @@ export namespace stable_pool {
988
988
  version?: bigint,
989
989
  ): Promise<[Boolean]> {
990
990
  const coder = defaultMoveCoder(client.config.fullnode);
991
- const data: InputViewRequestData = {
991
+ const data: InputViewFunctionData = {
992
992
  function:
993
993
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::stable_pool_exists",
994
994
  functionArguments: [],
@@ -1016,7 +1016,7 @@ export namespace stable_pool {
1016
1016
  ]
1017
1017
  > {
1018
1018
  const coder = defaultMoveCoder(client.config.fullnode);
1019
- const data: InputViewRequestData = {
1019
+ const data: InputViewFunctionData = {
1020
1020
  function:
1021
1021
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::stable_pool::swap_fee_ratio",
1022
1022
  functionArguments: [],
@@ -1997,7 +1997,7 @@ export namespace weighted_pool {
1997
1997
  version?: bigint,
1998
1998
  ): Promise<[bigint]> {
1999
1999
  const coder = defaultMoveCoder(client.config.fullnode);
2000
- const data: InputViewRequestData = {
2000
+ const data: InputViewFunctionData = {
2001
2001
  function:
2002
2002
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::flashloan_fee_bps",
2003
2003
  functionArguments: [],
@@ -2020,7 +2020,7 @@ export namespace weighted_pool {
2020
2020
  version?: bigint,
2021
2021
  ): Promise<[bigint]> {
2022
2022
  const coder = defaultMoveCoder(client.config.fullnode);
2023
- const data: InputViewRequestData = {
2023
+ const data: InputViewFunctionData = {
2024
2024
  function:
2025
2025
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::get_weight",
2026
2026
  functionArguments: [],
@@ -2044,7 +2044,7 @@ export namespace weighted_pool {
2044
2044
  version?: bigint,
2045
2045
  ): Promise<[string]> {
2046
2046
  const coder = defaultMoveCoder(client.config.fullnode);
2047
- const data: InputViewRequestData = {
2047
+ const data: InputViewFunctionData = {
2048
2048
  function:
2049
2049
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::lp_name_by_id",
2050
2050
  functionArguments: coder.encodeArray(request.functionArguments),
@@ -2065,7 +2065,7 @@ export namespace weighted_pool {
2065
2065
  version?: bigint,
2066
2066
  ): Promise<[bigint]> {
2067
2067
  const coder = defaultMoveCoder(client.config.fullnode);
2068
- const data: InputViewRequestData = {
2068
+ const data: InputViewFunctionData = {
2069
2069
  function:
2070
2070
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::next_pool_id",
2071
2071
  functionArguments: [],
@@ -2107,7 +2107,7 @@ export namespace weighted_pool {
2107
2107
  version?: bigint,
2108
2108
  ): Promise<[bigint[], bigint[]]> {
2109
2109
  const coder = defaultMoveCoder(client.config.fullnode);
2110
- const data: InputViewRequestData = {
2110
+ const data: InputViewFunctionData = {
2111
2111
  function:
2112
2112
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::pool_balances_and_weights",
2113
2113
  functionArguments: [],
@@ -2130,7 +2130,7 @@ export namespace weighted_pool {
2130
2130
  version?: bigint,
2131
2131
  ): Promise<[bigint[], bigint[], bigint]> {
2132
2132
  const coder = defaultMoveCoder(client.config.fullnode);
2133
- const data: InputViewRequestData = {
2133
+ const data: InputViewFunctionData = {
2134
2134
  function:
2135
2135
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::pool_info",
2136
2136
  functionArguments: coder.encodeArray(request.functionArguments),
@@ -2176,7 +2176,7 @@ export namespace weighted_pool {
2176
2176
  ]
2177
2177
  > {
2178
2178
  const coder = defaultMoveCoder(client.config.fullnode);
2179
- const data: InputViewRequestData = {
2179
+ const data: InputViewFunctionData = {
2180
2180
  function:
2181
2181
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::swap_fee_ratio",
2182
2182
  functionArguments: [],
@@ -2217,7 +2217,7 @@ export namespace weighted_pool {
2217
2217
  version?: bigint,
2218
2218
  ): Promise<[Boolean]> {
2219
2219
  const coder = defaultMoveCoder(client.config.fullnode);
2220
- const data: InputViewRequestData = {
2220
+ const data: InputViewFunctionData = {
2221
2221
  function:
2222
2222
  "0x48271d39d0b05bd6efca2278f22277d6fcc375504f9839fd73f74ace240861af::weighted_pool::weighted_pool_exists",
2223
2223
  functionArguments: [],
@@ -16,7 +16,7 @@ import {
16
16
  PendingTransactionResponse,
17
17
  InputGenerateTransactionOptions,
18
18
  MoveStructId,
19
- InputViewRequestData,
19
+ InputViewFunctionData,
20
20
  } from "@aptos-labs/ts-sdk";
21
21
 
22
22
  export namespace adapter {
@@ -16,7 +16,7 @@ import {
16
16
  PendingTransactionResponse,
17
17
  InputGenerateTransactionOptions,
18
18
  MoveStructId,
19
- InputViewRequestData,
19
+ InputViewFunctionData,
20
20
  } from "@aptos-labs/ts-sdk";
21
21
 
22
22
  import { _0x1 } from "@typemove/aptos/builtin";