@mysten/deepbook-v3 1.3.0 → 1.3.2

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.
Files changed (84) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/contracts/deepbook/account.d.mts +1 -1
  3. package/dist/contracts/deepbook/account.mjs.map +1 -1
  4. package/dist/contracts/deepbook/deep_price.d.mts +1 -1
  5. package/dist/contracts/deepbook/deep_price.mjs.map +1 -1
  6. package/dist/contracts/deepbook/order.d.mts +1 -1
  7. package/dist/contracts/deepbook/order.mjs.map +1 -1
  8. package/dist/contracts/pyth/data_source.mjs.map +1 -1
  9. package/dist/contracts/pyth/i64.mjs.map +1 -1
  10. package/dist/contracts/pyth/price.mjs.map +1 -1
  11. package/dist/contracts/pyth/price_feed.mjs.map +1 -1
  12. package/dist/contracts/pyth/price_identifier.mjs.map +1 -1
  13. package/dist/contracts/pyth/price_info.mjs.map +1 -1
  14. package/dist/contracts/pyth/state.mjs.map +1 -1
  15. package/dist/contracts/utils/index.d.mts +4 -4
  16. package/dist/contracts/utils/index.d.mts.map +1 -1
  17. package/dist/contracts/utils/index.mjs.map +1 -1
  18. package/dist/queries/accountQueries.mjs +3 -0
  19. package/dist/queries/accountQueries.mjs.map +1 -1
  20. package/dist/queries/balanceManagerQueries.mjs +5 -0
  21. package/dist/queries/balanceManagerQueries.mjs.map +1 -1
  22. package/dist/queries/marginManagerQueries.mjs +15 -0
  23. package/dist/queries/marginManagerQueries.mjs.map +1 -1
  24. package/dist/queries/marginPoolQueries.mjs +14 -0
  25. package/dist/queries/marginPoolQueries.mjs.map +1 -1
  26. package/dist/queries/orderQueries.mjs +7 -0
  27. package/dist/queries/orderQueries.mjs.map +1 -1
  28. package/dist/queries/poolQueries.mjs +15 -0
  29. package/dist/queries/poolQueries.mjs.map +1 -1
  30. package/dist/queries/quantityQueries.mjs +9 -0
  31. package/dist/queries/quantityQueries.mjs.map +1 -1
  32. package/dist/queries/referralQueries.mjs +5 -0
  33. package/dist/queries/referralQueries.mjs.map +1 -1
  34. package/dist/queries/registryQueries.mjs +12 -0
  35. package/dist/queries/registryQueries.mjs.map +1 -1
  36. package/dist/queries/tpslQueries.mjs +3 -0
  37. package/dist/queries/tpslQueries.mjs.map +1 -1
  38. package/dist/transactions/marginAdmin.d.mts +7 -7
  39. package/dist/transactions/marginLiquidations.d.mts +3 -3
  40. package/dist/transactions/marginLiquidations.d.mts.map +1 -1
  41. package/dist/transactions/marginMaintainer.d.mts +5 -5
  42. package/dist/transactions/marginManager.d.mts +23 -23
  43. package/dist/transactions/marginRegistry.d.mts +15 -15
  44. package/package.json +4 -4
  45. package/src/contracts/deepbook/account.ts +20 -20
  46. package/src/contracts/deepbook/balance_manager.ts +3 -3
  47. package/src/contracts/deepbook/deep_price.ts +6 -6
  48. package/src/contracts/deepbook/fill.ts +34 -34
  49. package/src/contracts/deepbook/math.ts +2 -2
  50. package/src/contracts/deepbook/order.ts +24 -24
  51. package/src/contracts/deepbook/order_info.ts +46 -46
  52. package/src/contracts/deepbook/order_query.ts +5 -5
  53. package/src/contracts/deepbook/pool.ts +119 -33
  54. package/src/contracts/deepbook/registry.ts +3 -3
  55. package/src/contracts/pyth/batch_price_attestation.ts +5 -5
  56. package/src/contracts/pyth/contract_upgrade.ts +3 -3
  57. package/src/contracts/pyth/data_source.ts +4 -4
  58. package/src/contracts/pyth/deserialize.ts +8 -8
  59. package/src/contracts/pyth/governance.ts +7 -7
  60. package/src/contracts/pyth/governance_action.ts +2 -2
  61. package/src/contracts/pyth/governance_instruction.ts +6 -6
  62. package/src/contracts/pyth/hot_potato_vector.ts +5 -5
  63. package/src/contracts/pyth/i64.ts +4 -4
  64. package/src/contracts/pyth/merkle_tree.ts +3 -7
  65. package/src/contracts/pyth/migrate.ts +2 -2
  66. package/src/contracts/pyth/price.ts +7 -7
  67. package/src/contracts/pyth/price_feed.ts +7 -11
  68. package/src/contracts/pyth/price_identifier.ts +3 -3
  69. package/src/contracts/pyth/price_info.ts +9 -9
  70. package/src/contracts/pyth/price_status.ts +2 -2
  71. package/src/contracts/pyth/pyth.ts +12 -12
  72. package/src/contracts/pyth/set.ts +4 -4
  73. package/src/contracts/pyth/state.ts +5 -5
  74. package/src/contracts/utils/index.ts +7 -11
  75. package/src/queries/accountQueries.ts +3 -0
  76. package/src/queries/balanceManagerQueries.ts +5 -0
  77. package/src/queries/marginManagerQueries.ts +15 -0
  78. package/src/queries/marginPoolQueries.ts +14 -0
  79. package/src/queries/orderQueries.ts +7 -0
  80. package/src/queries/poolQueries.ts +15 -0
  81. package/src/queries/quantityQueries.ts +9 -0
  82. package/src/queries/referralQueries.ts +5 -0
  83. package/src/queries/registryQueries.ts +12 -0
  84. package/src/queries/tpslQueries.ts +3 -0
@@ -3,7 +3,7 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
5
  import { bcs } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  import * as governance_action from './governance_action.js';
8
8
  const $moduleName =
9
9
  '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::governance_instruction';
@@ -18,7 +18,7 @@ export const GovernanceInstruction = new MoveStruct({
18
18
  });
19
19
  export interface FromByteVecOptions {
20
20
  package?: string;
21
- arguments: [RawTransactionArgument<number[]>];
21
+ arguments: [RawTransactionArgument<Array<number>>];
22
22
  }
23
23
  export function fromByteVec(options: FromByteVecOptions) {
24
24
  const packageAddress =
@@ -34,7 +34,7 @@ export function fromByteVec(options: FromByteVecOptions) {
34
34
  }
35
35
  export interface GetModuleOptions {
36
36
  package?: string;
37
- arguments: [RawTransactionArgument<string>];
37
+ arguments: [TransactionArgument];
38
38
  }
39
39
  export function getModule(options: GetModuleOptions) {
40
40
  const packageAddress =
@@ -50,7 +50,7 @@ export function getModule(options: GetModuleOptions) {
50
50
  }
51
51
  export interface GetActionOptions {
52
52
  package?: string;
53
- arguments: [RawTransactionArgument<string>];
53
+ arguments: [TransactionArgument];
54
54
  }
55
55
  export function getAction(options: GetActionOptions) {
56
56
  const packageAddress =
@@ -66,7 +66,7 @@ export function getAction(options: GetActionOptions) {
66
66
  }
67
67
  export interface GetTargetChainIdOptions {
68
68
  package?: string;
69
- arguments: [RawTransactionArgument<string>];
69
+ arguments: [TransactionArgument];
70
70
  }
71
71
  export function getTargetChainId(options: GetTargetChainIdOptions) {
72
72
  const packageAddress =
@@ -82,7 +82,7 @@ export function getTargetChainId(options: GetTargetChainIdOptions) {
82
82
  }
83
83
  export interface DestroyOptions {
84
84
  package?: string;
85
- arguments: [RawTransactionArgument<string>];
85
+ arguments: [TransactionArgument];
86
86
  }
87
87
  export function destroy(options: DestroyOptions) {
88
88
  const packageAddress =
@@ -2,8 +2,8 @@
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
4
  import { type BcsType, bcs } from '@mysten/sui/bcs';
5
- import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
6
- import { type Transaction } from '@mysten/sui/transactions';
5
+ import { MoveStruct, normalizeMoveArguments } from '../utils/index.js';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  const $moduleName =
8
8
  '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::hot_potato_vector';
9
9
  export function HotPotatoVector<T0 extends BcsType<any>>(...typeParameters: [T0]) {
@@ -16,7 +16,7 @@ export function HotPotatoVector<T0 extends BcsType<any>>(...typeParameters: [T0]
16
16
  }
17
17
  export interface DestroyOptions {
18
18
  package?: string;
19
- arguments: [RawTransactionArgument<string>];
19
+ arguments: [TransactionArgument];
20
20
  typeArguments: [string];
21
21
  }
22
22
  export function destroy(options: DestroyOptions) {
@@ -34,7 +34,7 @@ export function destroy(options: DestroyOptions) {
34
34
  }
35
35
  export interface LengthOptions {
36
36
  package?: string;
37
- arguments: [RawTransactionArgument<string>];
37
+ arguments: [TransactionArgument];
38
38
  typeArguments: [string];
39
39
  }
40
40
  export function length(options: LengthOptions) {
@@ -52,7 +52,7 @@ export function length(options: LengthOptions) {
52
52
  }
53
53
  export interface IsEmptyOptions {
54
54
  package?: string;
55
- arguments: [RawTransactionArgument<string>];
55
+ arguments: [TransactionArgument];
56
56
  typeArguments: [string];
57
57
  }
58
58
  export function isEmpty(options: IsEmptyOptions) {
@@ -3,7 +3,7 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
5
  import { bcs } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  const $moduleName = '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::i64';
8
8
  export const I64 = new MoveStruct({
9
9
  name: `${$moduleName}::I64`,
@@ -30,7 +30,7 @@ export function _new(options: NewOptions) {
30
30
  }
31
31
  export interface GetIsNegativeOptions {
32
32
  package?: string;
33
- arguments: [RawTransactionArgument<string>];
33
+ arguments: [TransactionArgument];
34
34
  }
35
35
  export function getIsNegative(options: GetIsNegativeOptions) {
36
36
  const packageAddress =
@@ -46,7 +46,7 @@ export function getIsNegative(options: GetIsNegativeOptions) {
46
46
  }
47
47
  export interface GetMagnitudeIfPositiveOptions {
48
48
  package?: string;
49
- arguments: [RawTransactionArgument<string>];
49
+ arguments: [TransactionArgument];
50
50
  }
51
51
  export function getMagnitudeIfPositive(options: GetMagnitudeIfPositiveOptions) {
52
52
  const packageAddress =
@@ -62,7 +62,7 @@ export function getMagnitudeIfPositive(options: GetMagnitudeIfPositiveOptions) {
62
62
  }
63
63
  export interface GetMagnitudeIfNegativeOptions {
64
64
  package?: string;
65
- arguments: [RawTransactionArgument<string>];
65
+ arguments: [TransactionArgument];
66
66
  }
67
67
  export function getMagnitudeIfNegative(options: GetMagnitudeIfNegativeOptions) {
68
68
  const packageAddress =
@@ -1,15 +1,11 @@
1
1
  /**************************************************************
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
- import { type Transaction } from '@mysten/sui/transactions';
4
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
5
5
  import { normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
6
6
  export interface IsProofValidOptions {
7
7
  package?: string;
8
- arguments: [
9
- RawTransactionArgument<string>,
10
- RawTransactionArgument<string>,
11
- RawTransactionArgument<number[]>,
12
- ];
8
+ arguments: [TransactionArgument, TransactionArgument, RawTransactionArgument<Array<number>>];
13
9
  }
14
10
  export function isProofValid(options: IsProofValidOptions) {
15
11
  const packageAddress =
@@ -25,7 +21,7 @@ export function isProofValid(options: IsProofValidOptions) {
25
21
  }
26
22
  export interface ConstructProofsOptions {
27
23
  package?: string;
28
- arguments: [RawTransactionArgument<number[][]>, RawTransactionArgument<number>];
24
+ arguments: [RawTransactionArgument<Array<Array<number>>>, RawTransactionArgument<number>];
29
25
  }
30
26
  export function constructProofs(options: ConstructProofsOptions) {
31
27
  const packageAddress =
@@ -3,7 +3,7 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
5
  import { bcs } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  const $moduleName = '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::migrate';
8
8
  export const MigrateComplete = new MoveStruct({
9
9
  name: `${$moduleName}::MigrateComplete`,
@@ -13,7 +13,7 @@ export const MigrateComplete = new MoveStruct({
13
13
  });
14
14
  export interface MigrateOptions {
15
15
  package?: string;
16
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
16
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
17
17
  }
18
18
  export function migrate(options: MigrateOptions) {
19
19
  const packageAddress =
@@ -3,7 +3,7 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
5
  import { bcs } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  import * as i64 from './i64.js';
8
8
  const $moduleName = '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price';
9
9
  export const Price = new MoveStruct({
@@ -18,9 +18,9 @@ export const Price = new MoveStruct({
18
18
  export interface NewOptions {
19
19
  package?: string;
20
20
  arguments: [
21
- RawTransactionArgument<string>,
21
+ TransactionArgument,
22
22
  RawTransactionArgument<number | bigint>,
23
- RawTransactionArgument<string>,
23
+ TransactionArgument,
24
24
  RawTransactionArgument<number | bigint>,
25
25
  ];
26
26
  }
@@ -38,7 +38,7 @@ export function _new(options: NewOptions) {
38
38
  }
39
39
  export interface GetPriceOptions {
40
40
  package?: string;
41
- arguments: [RawTransactionArgument<string>];
41
+ arguments: [TransactionArgument];
42
42
  }
43
43
  export function getPrice(options: GetPriceOptions) {
44
44
  const packageAddress =
@@ -54,7 +54,7 @@ export function getPrice(options: GetPriceOptions) {
54
54
  }
55
55
  export interface GetConfOptions {
56
56
  package?: string;
57
- arguments: [RawTransactionArgument<string>];
57
+ arguments: [TransactionArgument];
58
58
  }
59
59
  export function getConf(options: GetConfOptions) {
60
60
  const packageAddress =
@@ -70,7 +70,7 @@ export function getConf(options: GetConfOptions) {
70
70
  }
71
71
  export interface GetTimestampOptions {
72
72
  package?: string;
73
- arguments: [RawTransactionArgument<string>];
73
+ arguments: [TransactionArgument];
74
74
  }
75
75
  export function getTimestamp(options: GetTimestampOptions) {
76
76
  const packageAddress =
@@ -86,7 +86,7 @@ export function getTimestamp(options: GetTimestampOptions) {
86
86
  }
87
87
  export interface GetExpoOptions {
88
88
  package?: string;
89
- arguments: [RawTransactionArgument<string>];
89
+ arguments: [TransactionArgument];
90
90
  }
91
91
  export function getExpo(options: GetExpoOptions) {
92
92
  const packageAddress =
@@ -1,8 +1,8 @@
1
1
  /**************************************************************
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
- import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
- import { type Transaction } from '@mysten/sui/transactions';
4
+ import { MoveStruct, normalizeMoveArguments } from '../utils/index.js';
5
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
6
6
  import * as price_identifier from './price_identifier.js';
7
7
  import * as price from './price.js';
8
8
  const $moduleName =
@@ -17,11 +17,7 @@ export const PriceFeed = new MoveStruct({
17
17
  });
18
18
  export interface NewOptions {
19
19
  package?: string;
20
- arguments: [
21
- RawTransactionArgument<string>,
22
- RawTransactionArgument<string>,
23
- RawTransactionArgument<string>,
24
- ];
20
+ arguments: [TransactionArgument, TransactionArgument, TransactionArgument];
25
21
  }
26
22
  export function _new(options: NewOptions) {
27
23
  const packageAddress =
@@ -37,7 +33,7 @@ export function _new(options: NewOptions) {
37
33
  }
38
34
  export interface FromOptions {
39
35
  package?: string;
40
- arguments: [RawTransactionArgument<string>];
36
+ arguments: [TransactionArgument];
41
37
  }
42
38
  export function _from(options: FromOptions) {
43
39
  const packageAddress =
@@ -53,7 +49,7 @@ export function _from(options: FromOptions) {
53
49
  }
54
50
  export interface GetPriceIdentifierOptions {
55
51
  package?: string;
56
- arguments: [RawTransactionArgument<string>];
52
+ arguments: [TransactionArgument];
57
53
  }
58
54
  export function getPriceIdentifier(options: GetPriceIdentifierOptions) {
59
55
  const packageAddress =
@@ -69,7 +65,7 @@ export function getPriceIdentifier(options: GetPriceIdentifierOptions) {
69
65
  }
70
66
  export interface GetPriceOptions {
71
67
  package?: string;
72
- arguments: [RawTransactionArgument<string>];
68
+ arguments: [TransactionArgument];
73
69
  }
74
70
  export function getPrice(options: GetPriceOptions) {
75
71
  const packageAddress =
@@ -85,7 +81,7 @@ export function getPrice(options: GetPriceOptions) {
85
81
  }
86
82
  export interface GetEmaPriceOptions {
87
83
  package?: string;
88
- arguments: [RawTransactionArgument<string>];
84
+ arguments: [TransactionArgument];
89
85
  }
90
86
  export function getEmaPrice(options: GetEmaPriceOptions) {
91
87
  const packageAddress =
@@ -3,7 +3,7 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
5
  import { bcs } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  const $moduleName =
8
8
  '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price_identifier';
9
9
  export const PriceIdentifier = new MoveStruct({
@@ -14,7 +14,7 @@ export const PriceIdentifier = new MoveStruct({
14
14
  });
15
15
  export interface FromByteVecOptions {
16
16
  package?: string;
17
- arguments: [RawTransactionArgument<number[]>];
17
+ arguments: [RawTransactionArgument<Array<number>>];
18
18
  }
19
19
  export function fromByteVec(options: FromByteVecOptions) {
20
20
  const packageAddress =
@@ -30,7 +30,7 @@ export function fromByteVec(options: FromByteVecOptions) {
30
30
  }
31
31
  export interface GetBytesOptions {
32
32
  package?: string;
33
- arguments: [RawTransactionArgument<string>];
33
+ arguments: [TransactionArgument];
34
34
  }
35
35
  export function getBytes(options: GetBytesOptions) {
36
36
  const packageAddress =
@@ -3,7 +3,7 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
5
  import { bcs } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  import * as price_feed from './price_feed.js';
8
8
  const $moduleName =
9
9
  '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price_info';
@@ -24,7 +24,7 @@ export const PriceInfoObject = new MoveStruct({
24
24
  });
25
25
  export interface GetIdBytesOptions {
26
26
  package?: string;
27
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
27
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
28
28
  }
29
29
  export function getIdBytes(options: GetIdBytesOptions) {
30
30
  const packageAddress =
@@ -40,7 +40,7 @@ export function getIdBytes(options: GetIdBytesOptions) {
40
40
  }
41
41
  export interface GetIdOptions {
42
42
  package?: string;
43
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
43
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
44
44
  }
45
45
  export function getId(options: GetIdOptions) {
46
46
  const packageAddress =
@@ -56,7 +56,7 @@ export function getId(options: GetIdOptions) {
56
56
  }
57
57
  export interface ContainsOptions {
58
58
  package?: string;
59
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
59
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
60
60
  }
61
61
  export function contains(options: ContainsOptions) {
62
62
  const packageAddress =
@@ -107,7 +107,7 @@ export interface NewPriceInfoOptions {
107
107
  arguments: [
108
108
  RawTransactionArgument<number | bigint>,
109
109
  RawTransactionArgument<number | bigint>,
110
- RawTransactionArgument<string>,
110
+ TransactionArgument,
111
111
  ];
112
112
  }
113
113
  export function newPriceInfo(options: NewPriceInfoOptions) {
@@ -156,7 +156,7 @@ export function getPriceInfoFromPriceInfoObject(options: GetPriceInfoFromPriceIn
156
156
  }
157
157
  export interface GetPriceIdentifierOptions {
158
158
  package?: string;
159
- arguments: [RawTransactionArgument<string>];
159
+ arguments: [TransactionArgument];
160
160
  }
161
161
  export function getPriceIdentifier(options: GetPriceIdentifierOptions) {
162
162
  const packageAddress =
@@ -172,7 +172,7 @@ export function getPriceIdentifier(options: GetPriceIdentifierOptions) {
172
172
  }
173
173
  export interface GetPriceFeedOptions {
174
174
  package?: string;
175
- arguments: [RawTransactionArgument<string>];
175
+ arguments: [TransactionArgument];
176
176
  }
177
177
  export function getPriceFeed(options: GetPriceFeedOptions) {
178
178
  const packageAddress =
@@ -188,7 +188,7 @@ export function getPriceFeed(options: GetPriceFeedOptions) {
188
188
  }
189
189
  export interface GetAttestationTimeOptions {
190
190
  package?: string;
191
- arguments: [RawTransactionArgument<string>];
191
+ arguments: [TransactionArgument];
192
192
  }
193
193
  export function getAttestationTime(options: GetAttestationTimeOptions) {
194
194
  const packageAddress =
@@ -204,7 +204,7 @@ export function getAttestationTime(options: GetAttestationTimeOptions) {
204
204
  }
205
205
  export interface GetArrivalTimeOptions {
206
206
  package?: string;
207
- arguments: [RawTransactionArgument<string>];
207
+ arguments: [TransactionArgument];
208
208
  }
209
209
  export function getArrivalTime(options: GetArrivalTimeOptions) {
210
210
  const packageAddress =
@@ -3,7 +3,7 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
5
  import { bcs } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  const $moduleName =
8
8
  '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::price_status';
9
9
  export const PriceStatus = new MoveStruct({
@@ -30,7 +30,7 @@ export function fromU64(options: FromU64Options) {
30
30
  }
31
31
  export interface GetStatusOptions {
32
32
  package?: string;
33
- arguments: [RawTransactionArgument<string>];
33
+ arguments: [TransactionArgument];
34
34
  }
35
35
  export function getStatus(options: GetStatusOptions) {
36
36
  const packageAddress =
@@ -1,7 +1,7 @@
1
1
  /**************************************************************
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
- import { type Transaction } from '@mysten/sui/transactions';
4
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
5
5
  import { normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
6
6
  export interface InitPythOptions {
7
7
  package?: string;
@@ -10,9 +10,9 @@ export interface InitPythOptions {
10
10
  RawTransactionArgument<string>,
11
11
  RawTransactionArgument<number | bigint>,
12
12
  RawTransactionArgument<number | bigint>,
13
- RawTransactionArgument<number[]>,
14
- RawTransactionArgument<number | bigint[]>,
15
- RawTransactionArgument<number[][]>,
13
+ RawTransactionArgument<Array<number>>,
14
+ RawTransactionArgument<Array<number | bigint>>,
15
+ RawTransactionArgument<Array<Array<number>>>,
16
16
  RawTransactionArgument<number | bigint>,
17
17
  ];
18
18
  }
@@ -41,8 +41,8 @@ export interface CreatePriceFeedsUsingAccumulatorOptions {
41
41
  package?: string;
42
42
  arguments: [
43
43
  RawTransactionArgument<string>,
44
- RawTransactionArgument<number[]>,
45
- RawTransactionArgument<string>,
44
+ RawTransactionArgument<Array<number>>,
45
+ TransactionArgument,
46
46
  ];
47
47
  }
48
48
  export function createPriceFeedsUsingAccumulator(options: CreatePriceFeedsUsingAccumulatorOptions) {
@@ -62,7 +62,7 @@ export function createPriceFeedsUsingAccumulator(options: CreatePriceFeedsUsingA
62
62
  }
63
63
  export interface CreatePriceFeedsOptions {
64
64
  package?: string;
65
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string[]>];
65
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
66
66
  }
67
67
  export function createPriceFeeds(options: CreatePriceFeedsOptions) {
68
68
  const packageAddress =
@@ -80,8 +80,8 @@ export interface CreateAuthenticatedPriceInfosUsingAccumulatorOptions {
80
80
  package?: string;
81
81
  arguments: [
82
82
  RawTransactionArgument<string>,
83
- RawTransactionArgument<number[]>,
84
- RawTransactionArgument<string>,
83
+ RawTransactionArgument<Array<number>>,
84
+ TransactionArgument,
85
85
  ];
86
86
  }
87
87
  export function createAuthenticatedPriceInfosUsingAccumulator(
@@ -103,7 +103,7 @@ export function createAuthenticatedPriceInfosUsingAccumulator(
103
103
  }
104
104
  export interface CreatePriceInfosHotPotatoOptions {
105
105
  package?: string;
106
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string[]>];
106
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
107
107
  }
108
108
  export function createPriceInfosHotPotato(options: CreatePriceInfosHotPotatoOptions) {
109
109
  const packageAddress =
@@ -121,7 +121,7 @@ export interface UpdateSinglePriceFeedOptions {
121
121
  package?: string;
122
122
  arguments: [
123
123
  RawTransactionArgument<string>,
124
- RawTransactionArgument<string>,
124
+ TransactionArgument,
125
125
  RawTransactionArgument<string>,
126
126
  RawTransactionArgument<string>,
127
127
  ];
@@ -140,7 +140,7 @@ export function updateSinglePriceFeed(options: UpdateSinglePriceFeedOptions) {
140
140
  }
141
141
  export interface PriceFeedExistsOptions {
142
142
  package?: string;
143
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
143
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
144
144
  }
145
145
  export function priceFeedExists(options: PriceFeedExistsOptions) {
146
146
  const packageAddress =
@@ -3,7 +3,7 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
5
  import { bcs, type BcsType } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  import * as table from './deps/0x0000000000000000000000000000000000000000000000000000000000000002/table.js';
8
8
  const $moduleName = '0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837::set';
9
9
  export const Unit = new MoveStruct({
@@ -39,7 +39,7 @@ export function _new(options: NewOptions) {
39
39
  }
40
40
  export interface AddOptions<T0 extends BcsType<any>> {
41
41
  package?: string;
42
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<T0>];
42
+ arguments: [TransactionArgument, RawTransactionArgument<T0>];
43
43
  typeArguments: [string];
44
44
  }
45
45
  export function add<T0 extends BcsType<any>>(options: AddOptions<T0>) {
@@ -57,7 +57,7 @@ export function add<T0 extends BcsType<any>>(options: AddOptions<T0>) {
57
57
  }
58
58
  export interface ContainsOptions<T0 extends BcsType<any>> {
59
59
  package?: string;
60
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<T0>];
60
+ arguments: [TransactionArgument, RawTransactionArgument<T0>];
61
61
  typeArguments: [string];
62
62
  }
63
63
  export function contains<T0 extends BcsType<any>>(options: ContainsOptions<T0>) {
@@ -75,7 +75,7 @@ export function contains<T0 extends BcsType<any>>(options: ContainsOptions<T0>)
75
75
  }
76
76
  export interface EmptyOptions {
77
77
  package?: string;
78
- arguments: [RawTransactionArgument<string>];
78
+ arguments: [TransactionArgument];
79
79
  typeArguments: [string];
80
80
  }
81
81
  export function empty(options: EmptyOptions) {
@@ -3,7 +3,7 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
5
  import { bcs } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
6
+ import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
7
7
  import * as data_source from './data_source.js';
8
8
  import * as consumed_vaas from './deps/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed_vaas.js';
9
9
  import * as _package from './deps/0x0000000000000000000000000000000000000000000000000000000000000002/package.js';
@@ -83,7 +83,7 @@ export function getFeeRecipient(options: GetFeeRecipientOptions) {
83
83
  }
84
84
  export interface IsValidDataSourceOptions {
85
85
  package?: string;
86
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
86
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
87
87
  }
88
88
  export function isValidDataSource(options: IsValidDataSourceOptions) {
89
89
  const packageAddress =
@@ -99,7 +99,7 @@ export function isValidDataSource(options: IsValidDataSourceOptions) {
99
99
  }
100
100
  export interface IsValidGovernanceDataSourceOptions {
101
101
  package?: string;
102
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
102
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
103
103
  }
104
104
  export function isValidGovernanceDataSource(options: IsValidGovernanceDataSourceOptions) {
105
105
  const packageAddress =
@@ -115,7 +115,7 @@ export function isValidGovernanceDataSource(options: IsValidGovernanceDataSource
115
115
  }
116
116
  export interface PriceFeedObjectExistsOptions {
117
117
  package?: string;
118
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
118
+ arguments: [RawTransactionArgument<string>, TransactionArgument];
119
119
  }
120
120
  export function priceFeedObjectExists(options: PriceFeedObjectExistsOptions) {
121
121
  const packageAddress =
@@ -211,7 +211,7 @@ export function governanceContract(options: GovernanceContractOptions) {
211
211
  }
212
212
  export interface GetPriceInfoObjectIdOptions {
213
213
  package?: string;
214
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<number[]>];
214
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<Array<number>>];
215
215
  }
216
216
  export function getPriceInfoObjectId(options: GetPriceInfoObjectIdOptions) {
217
217
  const packageAddress =
@@ -16,17 +16,11 @@ const SUI_FRAMEWORK_ADDRESS = normalizeSuiAddress('0x2');
16
16
 
17
17
  export type RawTransactionArgument<T> = T | TransactionArgument;
18
18
 
19
- export interface GetOptions<
20
- Include extends Omit<SuiClientTypes.ObjectInclude, 'content'> = {},
21
- > extends SuiClientTypes.GetObjectOptions<Include> {
22
- client: ClientWithCoreApi;
23
- }
19
+ export type GetOptions<Include extends Omit<SuiClientTypes.ObjectInclude, 'content'> = {}> =
20
+ SuiClientTypes.GetObjectOptions<Include> & { client: ClientWithCoreApi };
24
21
 
25
- export interface GetManyOptions<
26
- Include extends Omit<SuiClientTypes.ObjectInclude, 'content'> = {},
27
- > extends SuiClientTypes.GetObjectsOptions<Include> {
28
- client: ClientWithCoreApi;
29
- }
22
+ export type GetManyOptions<Include extends Omit<SuiClientTypes.ObjectInclude, 'content'> = {}> =
23
+ SuiClientTypes.GetObjectsOptions<Include> & { client: ClientWithCoreApi };
30
24
 
31
25
  export function getPureBcsSchema(typeTag: string | TypeTag): BcsType<any> | null {
32
26
  const parsedTag = typeof typeTag === 'string' ? TypeTagSerializer.parseFromStr(typeTag) : typeTag;
@@ -150,7 +144,9 @@ export function normalizeMoveArguments(
150
144
  const bytes = bcsType.serialize(arg as never);
151
145
  normalizedArgs.push((tx) => tx.pure(bytes));
152
146
  continue;
153
- } else if (typeof arg === 'string') {
147
+ }
148
+
149
+ if (typeof arg === 'string') {
154
150
  normalizedArgs.push((tx) => tx.object(arg));
155
151
  continue;
156
152
  }
@@ -18,6 +18,7 @@ export class AccountQueries {
18
18
 
19
19
  async account(poolKey: string, managerKey: string): Promise<AccountInfo> {
20
20
  const tx = new Transaction();
21
+ tx.setSender(this.#ctx.address);
21
22
  const pool = this.#ctx.config.getPool(poolKey);
22
23
  const baseScalar = this.#ctx.config.getCoin(pool.baseCoin).scalar;
23
24
  const quoteScalar = this.#ctx.config.getCoin(pool.quoteCoin).scalar;
@@ -60,6 +61,7 @@ export class AccountQueries {
60
61
 
61
62
  async lockedBalance(poolKey: string, balanceManagerKey: string): Promise<LockedBalances> {
62
63
  const tx = new Transaction();
64
+ tx.setSender(this.#ctx.address);
63
65
  const pool = this.#ctx.config.getPool(poolKey);
64
66
  const baseScalar = this.#ctx.config.getCoin(pool.baseCoin).scalar;
65
67
  const quoteScalar = this.#ctx.config.getCoin(pool.quoteCoin).scalar;
@@ -83,6 +85,7 @@ export class AccountQueries {
83
85
 
84
86
  async getPoolDeepPrice(poolKey: string): Promise<PoolDeepPrice> {
85
87
  const tx = new Transaction();
88
+ tx.setSender(this.#ctx.address);
86
89
  const pool = this.#ctx.config.getPool(poolKey);
87
90
  tx.add(this.#ctx.deepBook.getPoolDeepPrice(poolKey));
88
91
 
@@ -17,6 +17,7 @@ export class BalanceManagerQueries {
17
17
 
18
18
  async checkManagerBalance(managerKey: string, coinKey: string): Promise<ManagerBalance> {
19
19
  const tx = new Transaction();
20
+ tx.setSender(this.#ctx.address);
20
21
  const coin = this.#ctx.config.getCoin(coinKey);
21
22
 
22
23
  tx.add(this.#ctx.balanceManager.checkManagerBalance(managerKey, coinKey));
@@ -41,6 +42,7 @@ export class BalanceManagerQueries {
41
42
  coinKey: string,
42
43
  ): Promise<ManagerBalance> {
43
44
  const tx = new Transaction();
45
+ tx.setSender(this.#ctx.address);
44
46
  const coin = this.#ctx.config.getCoin(coinKey);
45
47
 
46
48
  tx.moveCall({
@@ -74,6 +76,7 @@ export class BalanceManagerQueries {
74
76
  }
75
77
 
76
78
  const tx = new Transaction();
79
+ tx.setSender(this.#ctx.address);
77
80
  const coins = coinKeys.map((coinKey) => this.#ctx.config.getCoin(coinKey));
78
81
 
79
82
  for (const managerAddress of managerAddresses) {
@@ -128,6 +131,7 @@ export class BalanceManagerQueries {
128
131
 
129
132
  async getBalanceManagerIds(owner: string): Promise<string[]> {
130
133
  const tx = new Transaction();
134
+ tx.setSender(this.#ctx.address);
131
135
  tx.add(this.#ctx.deepBook.getBalanceManagerIds(owner));
132
136
 
133
137
  const res = await this.#ctx.client.core.simulateTransaction({
@@ -143,6 +147,7 @@ export class BalanceManagerQueries {
143
147
 
144
148
  async accountExists(poolKey: string, managerKey: string): Promise<boolean> {
145
149
  const tx = new Transaction();
150
+ tx.setSender(this.#ctx.address);
146
151
  tx.add(this.#ctx.deepBook.accountExists(poolKey, managerKey));
147
152
 
148
153
  const res = await this.#ctx.client.core.simulateTransaction({