@waterx/sdk 2.4.1 → 3.0.0

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 (222) hide show
  1. package/README.md +25 -21
  2. package/dist/src/{utils → account}/account-request.d.ts +2 -2
  3. package/dist/src/{user → account}/account.d.ts +23 -21
  4. package/dist/src/{user → account}/account.js +5 -5
  5. package/dist/src/account/client.d.ts +42 -0
  6. package/dist/src/account/client.js +17 -0
  7. package/dist/src/account/config.d.ts +151 -0
  8. package/dist/src/account/config.js +8 -0
  9. package/dist/src/account/constants.d.ts +5 -0
  10. package/dist/src/account/constants.js +5 -0
  11. package/dist/src/account/fetch/referral.d.ts +15 -0
  12. package/dist/src/account/fetch/referral.js +51 -0
  13. package/dist/src/account/fetch/simulate.d.ts +34 -0
  14. package/dist/src/account/fetch/simulate.js +43 -0
  15. package/dist/src/{utils/consolidate-balance.d.ts → account/funding/balance.d.ts} +3 -8
  16. package/dist/src/{utils/consolidate-balance.js → account/funding/balance.js} +6 -1
  17. package/dist/src/account/funding/consolidate.d.ts +46 -0
  18. package/dist/src/account/funding/consolidate.js +137 -0
  19. package/dist/src/{user → account/funding}/credit.d.ts +10 -10
  20. package/dist/src/{user → account/funding}/credit.js +6 -6
  21. package/dist/src/{user → account/funding}/custody.d.ts +4 -4
  22. package/dist/src/{user → account/funding}/custody.js +2 -2
  23. package/dist/src/{utils → account/funding}/wormhole.d.ts +4 -4
  24. package/dist/src/{utils → account/funding}/wormhole.js +1 -1
  25. package/dist/src/account/index.d.ts +29 -0
  26. package/dist/src/account/index.js +29 -0
  27. package/dist/src/{user → account}/referral.d.ts +3 -3
  28. package/dist/src/{user → account}/referral.js +1 -1
  29. package/dist/src/base-client.d.ts +74 -0
  30. package/dist/src/base-client.js +97 -0
  31. package/dist/src/constants.d.ts +4 -46
  32. package/dist/src/constants.js +8 -52
  33. package/dist/src/generated/bucket_v2_framework/liability.d.ts +0 -26
  34. package/dist/src/generated/bucket_v2_framework/liability.js +0 -28
  35. package/dist/src/generated/waterx_account/account.d.ts +50 -15
  36. package/dist/src/generated/waterx_account/account.js +51 -15
  37. package/dist/src/generated/waterx_oracle/oracle.d.ts +7 -1
  38. package/dist/src/generated/waterx_oracle/oracle.js +7 -2
  39. package/dist/src/{prediction/generated → generated}/waterx_prediction/account_data.d.ts +19 -2
  40. package/dist/src/{prediction/generated → generated}/waterx_prediction/admin.d.ts +3 -1
  41. package/dist/src/{prediction/generated → generated}/waterx_prediction/deps/sui/balance.d.ts +3 -1
  42. package/dist/src/{prediction/generated/waterx_account → generated/waterx_prediction}/deps/sui/table.d.ts +6 -1
  43. package/dist/src/generated/waterx_prediction/events.d.ts +288 -0
  44. package/dist/src/{prediction/generated → generated}/waterx_prediction/events.js +39 -0
  45. package/dist/src/{prediction/generated → generated}/waterx_prediction/global_config.d.ts +6 -1
  46. package/dist/src/{prediction/generated → generated}/waterx_prediction/order.d.ts +34 -1
  47. package/dist/src/{prediction/generated → generated}/waterx_prediction/position.d.ts +16 -1
  48. package/dist/src/{prediction/generated → generated}/waterx_prediction/view.d.ts +69 -4
  49. package/dist/src/{prediction/generated → generated}/waterx_prediction/waterx_prediction.d.ts +162 -2
  50. package/dist/src/{prediction/generated → generated}/waterx_prediction/waterx_prediction.js +99 -0
  51. package/dist/src/generated/waterx_pyth_rule/pyth_rule.d.ts +102 -0
  52. package/dist/src/generated/waterx_pyth_rule/pyth_rule.js +99 -0
  53. package/dist/src/generated/waterx_supra_rule/supra_rule.d.ts +5 -5
  54. package/dist/src/generated/waterx_supra_rule/supra_rule.js +1 -2
  55. package/dist/src/generated/withdrawal_queue/withdrawal_queue.d.ts +23 -23
  56. package/dist/src/generated/withdrawal_queue/withdrawal_queue.js +3 -6
  57. package/dist/src/oracle/aggregate.d.ts +74 -0
  58. package/dist/src/oracle/aggregate.js +112 -0
  59. package/dist/src/oracle/config.d.ts +99 -0
  60. package/dist/src/oracle/config.js +23 -0
  61. package/dist/src/oracle/host.d.ts +32 -0
  62. package/dist/src/oracle/host.js +10 -0
  63. package/dist/src/oracle/index.d.ts +16 -0
  64. package/dist/src/oracle/index.js +18 -0
  65. package/dist/src/oracle/pyth.d.ts +52 -0
  66. package/dist/src/oracle/pyth.js +220 -0
  67. package/dist/src/oracle/rules/constant-rule.d.ts +9 -0
  68. package/dist/src/oracle/rules/constant-rule.js +14 -0
  69. package/dist/src/oracle/rules/pyth-rule.d.ts +11 -0
  70. package/dist/src/oracle/rules/pyth-rule.js +20 -0
  71. package/dist/src/oracle/rules/sponsor.d.ts +28 -0
  72. package/dist/src/oracle/rules/sponsor.js +48 -0
  73. package/dist/src/oracle/rules/supra-rule.d.ts +11 -0
  74. package/dist/src/oracle/rules/supra-rule.js +22 -0
  75. package/dist/src/perp/client.d.ts +78 -0
  76. package/dist/src/perp/client.js +108 -0
  77. package/dist/src/{client.d.ts → perp/config-view.d.ts} +15 -60
  78. package/dist/src/{client.js → perp/config-view.js} +23 -95
  79. package/dist/src/perp/config.d.ts +126 -0
  80. package/dist/src/{config.js → perp/config.js} +11 -12
  81. package/dist/src/perp/constants.d.ts +49 -0
  82. package/dist/src/perp/constants.js +61 -0
  83. package/dist/src/perp/fetch/account.d.ts +43 -0
  84. package/dist/src/perp/fetch/account.js +64 -0
  85. package/dist/src/perp/fetch/bridge.d.ts +90 -0
  86. package/dist/src/perp/fetch/bridge.js +127 -0
  87. package/dist/src/perp/fetch/custody.d.ts +32 -0
  88. package/dist/src/perp/fetch/custody.js +62 -0
  89. package/dist/src/perp/fetch/market.d.ts +30 -0
  90. package/dist/src/perp/fetch/market.js +68 -0
  91. package/dist/src/perp/fetch/positions.d.ts +70 -0
  92. package/dist/src/perp/fetch/positions.js +185 -0
  93. package/dist/src/perp/fetch/simulate.d.ts +12 -0
  94. package/dist/src/perp/fetch/simulate.js +13 -0
  95. package/dist/src/perp/fetch.d.ts +23 -0
  96. package/dist/src/perp/fetch.js +23 -0
  97. package/dist/src/{index.d.ts → perp/index.d.ts} +21 -21
  98. package/dist/src/{index.js → perp/index.js} +21 -21
  99. package/dist/src/perp/tx-builders/common.d.ts +83 -0
  100. package/dist/src/perp/tx-builders/common.js +70 -0
  101. package/dist/src/perp/tx-builders/credit.d.ts +65 -0
  102. package/dist/src/perp/tx-builders/credit.js +62 -0
  103. package/dist/src/perp/tx-builders/rewards.d.ts +30 -0
  104. package/dist/src/perp/tx-builders/rewards.js +34 -0
  105. package/dist/src/perp/tx-builders/trading.d.ts +51 -0
  106. package/dist/src/perp/tx-builders/trading.js +59 -0
  107. package/dist/src/perp/tx-builders/wlp.d.ts +90 -0
  108. package/dist/src/perp/tx-builders/wlp.js +120 -0
  109. package/dist/src/perp/tx-builders.d.ts +23 -0
  110. package/dist/src/perp/tx-builders.js +23 -0
  111. package/dist/src/perp/user/index.d.ts +8 -0
  112. package/dist/src/perp/user/index.js +8 -0
  113. package/dist/src/{user → perp/user}/order.d.ts +7 -7
  114. package/dist/src/{user → perp/user}/order.js +3 -3
  115. package/dist/src/{user → perp/user}/staking.d.ts +4 -4
  116. package/dist/src/{user → perp/user}/staking.js +2 -2
  117. package/dist/src/{user → perp/user}/trading.d.ts +13 -13
  118. package/dist/src/{user → perp/user}/trading.js +2 -2
  119. package/dist/src/{user → perp/user}/wlp.d.ts +7 -7
  120. package/dist/src/{user → perp/user}/wlp.js +3 -3
  121. package/dist/src/prediction/account.js +40 -76
  122. package/dist/src/prediction/client.d.ts +8 -38
  123. package/dist/src/prediction/client.js +11 -67
  124. package/dist/src/prediction/config.d.ts +16 -2
  125. package/dist/src/prediction/config.js +10 -4
  126. package/dist/src/prediction/index.d.ts +11 -11
  127. package/dist/src/prediction/index.js +10 -10
  128. package/dist/src/prediction/prediction.d.ts +45 -0
  129. package/dist/src/prediction/prediction.js +71 -0
  130. package/dist/src/prediction/tx-builders.d.ts +4 -4
  131. package/dist/src/prediction/tx-builders.js +2 -2
  132. package/dist/src/prediction/user/index.d.ts +2 -2
  133. package/dist/src/prediction/user/index.js +1 -1
  134. package/dist/src/prediction/user/position.d.ts +2 -2
  135. package/dist/src/prediction/user/position.js +1 -1
  136. package/dist/src/prediction/utils/bcs.d.ts +5 -0
  137. package/dist/src/prediction/utils/bcs.js +5 -0
  138. package/dist/src/prediction/utils/index.d.ts +7 -0
  139. package/dist/src/prediction/utils/index.js +7 -0
  140. package/dist/src/sdk.d.ts +10 -6
  141. package/dist/src/sdk.js +9 -5
  142. package/dist/src/unified-client.d.ts +140 -145
  143. package/dist/src/unified-client.js +98 -40
  144. package/dist/src/utils/config.d.ts +1 -1
  145. package/package.json +22 -5
  146. package/dist/src/config.d.ts +0 -292
  147. package/dist/src/fetch.d.ts +0 -254
  148. package/dist/src/fetch.js +0 -564
  149. package/dist/src/prediction/generated/bucket_v2_framework/account.d.ts +0 -100
  150. package/dist/src/prediction/generated/bucket_v2_framework/account.js +0 -129
  151. package/dist/src/prediction/generated/bucket_v2_framework/deps/std/type_name.d.ts +0 -6
  152. package/dist/src/prediction/generated/bucket_v2_framework/deps/std/type_name.js +0 -19
  153. package/dist/src/prediction/generated/bucket_v2_framework/deps/sui/balance.d.ts +0 -10
  154. package/dist/src/prediction/generated/bucket_v2_framework/deps/sui/vec_map.d.ts +0 -36
  155. package/dist/src/prediction/generated/bucket_v2_framework/deps/sui/vec_map.js +0 -27
  156. package/dist/src/prediction/generated/bucket_v2_framework/double.d.ts +0 -382
  157. package/dist/src/prediction/generated/bucket_v2_framework/double.js +0 -466
  158. package/dist/src/prediction/generated/bucket_v2_framework/float.d.ts +0 -362
  159. package/dist/src/prediction/generated/bucket_v2_framework/float.js +0 -440
  160. package/dist/src/prediction/generated/bucket_v2_framework/liability.d.ts +0 -193
  161. package/dist/src/prediction/generated/bucket_v2_framework/liability.js +0 -205
  162. package/dist/src/prediction/generated/bucket_v2_framework/linked_table.d.ts +0 -384
  163. package/dist/src/prediction/generated/bucket_v2_framework/linked_table.js +0 -382
  164. package/dist/src/prediction/generated/bucket_v2_framework/sheet.d.ts +0 -344
  165. package/dist/src/prediction/generated/bucket_v2_framework/sheet.js +0 -338
  166. package/dist/src/prediction/generated/utils/index.d.ts +0 -30
  167. package/dist/src/prediction/generated/utils/index.js +0 -160
  168. package/dist/src/prediction/generated/waterx_account/account.d.ts +0 -1589
  169. package/dist/src/prediction/generated/waterx_account/account.js +0 -1758
  170. package/dist/src/prediction/generated/waterx_account/deps/bucket_v2_framework/liability.d.ts +0 -7
  171. package/dist/src/prediction/generated/waterx_account/deps/bucket_v2_framework/liability.js +0 -13
  172. package/dist/src/prediction/generated/waterx_account/deps/bucket_v2_framework/sheet.d.ts +0 -7
  173. package/dist/src/prediction/generated/waterx_account/deps/bucket_v2_framework/sheet.js +0 -16
  174. package/dist/src/prediction/generated/waterx_account/deps/std/type_name.d.ts +0 -6
  175. package/dist/src/prediction/generated/waterx_account/deps/std/type_name.js +0 -19
  176. package/dist/src/prediction/generated/waterx_account/deps/sui/balance.d.ts +0 -10
  177. package/dist/src/prediction/generated/waterx_account/deps/sui/balance.js +0 -14
  178. package/dist/src/prediction/generated/waterx_account/deps/sui/object_table.d.ts +0 -12
  179. package/dist/src/prediction/generated/waterx_account/deps/sui/object_table.js +0 -19
  180. package/dist/src/prediction/generated/waterx_account/deps/sui/vec_map.d.ts +0 -36
  181. package/dist/src/prediction/generated/waterx_account/deps/sui/vec_map.js +0 -27
  182. package/dist/src/prediction/generated/waterx_account/deps/sui/vec_set.d.ts +0 -16
  183. package/dist/src/prediction/generated/waterx_account/deps/sui/vec_set.js +0 -19
  184. package/dist/src/prediction/generated/waterx_account/direct_rule.d.ts +0 -75
  185. package/dist/src/prediction/generated/waterx_account/direct_rule.js +0 -78
  186. package/dist/src/prediction/generated/waterx_account/events.d.ts +0 -33
  187. package/dist/src/prediction/generated/waterx_account/events.js +0 -137
  188. package/dist/src/prediction/generated/waterx_account/version.js +0 -8
  189. package/dist/src/prediction/generated/waterx_prediction/bet_sharing.d.ts +0 -60
  190. package/dist/src/prediction/generated/waterx_prediction/bet_sharing.js +0 -83
  191. package/dist/src/prediction/generated/waterx_prediction/deps/sui/balance.js +0 -14
  192. package/dist/src/prediction/generated/waterx_prediction/deps/sui/table.d.ts +0 -24
  193. package/dist/src/prediction/generated/waterx_prediction/deps/sui/table.js +0 -31
  194. package/dist/src/prediction/generated/waterx_prediction/deps/sui/vec_set.d.ts +0 -16
  195. package/dist/src/prediction/generated/waterx_prediction/deps/sui/vec_set.js +0 -19
  196. package/dist/src/prediction/generated/waterx_prediction/events.d.ts +0 -22
  197. package/dist/src/prediction/generated/waterx_prediction/version.d.ts +0 -10
  198. package/dist/src/tx-builders.d.ts +0 -296
  199. package/dist/src/tx-builders.js +0 -461
  200. package/dist/src/user/index.d.ts +0 -8
  201. package/dist/src/user/index.js +0 -8
  202. package/dist/src/utils/pyth.d.ts +0 -124
  203. package/dist/src/utils/pyth.js +0 -392
  204. /package/dist/src/{utils → account}/account-request.js +0 -0
  205. /package/dist/src/{core → account}/waterx-account.d.ts +0 -0
  206. /package/dist/src/{core → account}/waterx-account.js +0 -0
  207. /package/dist/src/{prediction/generated → generated}/waterx_prediction/account_data.js +0 -0
  208. /package/dist/src/{prediction/generated → generated}/waterx_prediction/admin.js +0 -0
  209. /package/dist/src/{prediction/generated → generated}/waterx_prediction/deps/bucket_v2_framework/linked_table.d.ts +0 -0
  210. /package/dist/src/{prediction/generated → generated}/waterx_prediction/deps/bucket_v2_framework/linked_table.js +0 -0
  211. /package/dist/src/{prediction/generated/bucket_v2_framework → generated/waterx_prediction}/deps/sui/balance.js +0 -0
  212. /package/dist/src/{prediction/generated/waterx_account → generated/waterx_prediction}/deps/sui/table.js +0 -0
  213. /package/dist/src/{prediction/generated/bucket_v2_framework → generated/waterx_prediction}/deps/sui/vec_set.d.ts +0 -0
  214. /package/dist/src/{prediction/generated/bucket_v2_framework → generated/waterx_prediction}/deps/sui/vec_set.js +0 -0
  215. /package/dist/src/{prediction/generated → generated}/waterx_prediction/global_config.js +0 -0
  216. /package/dist/src/{prediction/generated → generated}/waterx_prediction/order.js +0 -0
  217. /package/dist/src/{prediction/generated → generated}/waterx_prediction/outcome.d.ts +0 -0
  218. /package/dist/src/{prediction/generated → generated}/waterx_prediction/outcome.js +0 -0
  219. /package/dist/src/{prediction/generated → generated}/waterx_prediction/position.js +0 -0
  220. /package/dist/src/{prediction/generated/waterx_account → generated/waterx_prediction}/version.d.ts +0 -0
  221. /package/dist/src/{prediction/generated → generated}/waterx_prediction/version.js +0 -0
  222. /package/dist/src/{prediction/generated → generated}/waterx_prediction/view.js +0 -0
@@ -1,7 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /** Module for managing Credit and Debt for DeFi protocol usage */
5
- import { MoveStruct } from '../../../utils/index.ts';
6
- export declare const Credit: MoveStruct<any, any>;
7
- export declare const Debt: MoveStruct<any, any>;
@@ -1,13 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /** Module for managing Credit and Debt for DeFi protocol usage */
5
- import { MoveStruct } from "../../../utils/index.js";
6
- import { bcs } from '@mysten/sui/bcs';
7
- const $moduleName = 'bucket_v2_framework::liability';
8
- export const Credit = new MoveStruct({ name: `${$moduleName}::Credit<phantom T>`, fields: {
9
- value: bcs.u64()
10
- } });
11
- export const Debt = new MoveStruct({ name: `${$moduleName}::Debt<phantom T>`, fields: {
12
- value: bcs.u64()
13
- } });
@@ -1,7 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /** Module for the record of Credit and Debt of certain entity */
5
- import { MoveTuple, MoveStruct } from '../../../utils/index.ts';
6
- export declare const Entity: MoveTuple<readonly [MoveStruct<any, any>], "bucket_v2_framework::sheet::Entity">;
7
- export declare const Sheet: MoveStruct<any, any>;
@@ -1,16 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /** Module for the record of Credit and Debt of certain entity */
5
- import { MoveTuple, MoveStruct } from "../../../utils/index.js";
6
- import * as type_name from "../std/type_name.js";
7
- import * as vec_map from "../sui/vec_map.js";
8
- import * as liability from "./liability.js";
9
- import * as vec_set from "../sui/vec_set.js";
10
- const $moduleName = 'bucket_v2_framework::sheet';
11
- export const Entity = new MoveTuple({ name: `${$moduleName}::Entity`, fields: [type_name.TypeName] });
12
- export const Sheet = new MoveStruct({ name: `${$moduleName}::Sheet<phantom CoinType, phantom SelfEntity>`, fields: {
13
- credits: vec_map.VecMap(Entity, liability.Credit),
14
- debts: vec_map.VecMap(Entity, liability.Debt),
15
- blacklist: vec_set.VecSet(Entity)
16
- } });
@@ -1,6 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /** Functionality for converting Move types into values. Use with care! */
5
- import { MoveStruct } from '../../../utils/index.ts';
6
- export declare const TypeName: MoveStruct<any, any>;
@@ -1,19 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /** Functionality for converting Move types into values. Use with care! */
5
- import { MoveStruct } from "../../../utils/index.js";
6
- import { bcs } from '@mysten/sui/bcs';
7
- const $moduleName = 'std::type_name';
8
- export const TypeName = new MoveStruct({ name: `${$moduleName}::TypeName`, fields: {
9
- /**
10
- * String representation of the type. All types are represented using their source
11
- * syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
12
- * Struct types are represented as fully qualified type names; e.g.
13
- * `00000000000000000000000000000001::string::String` or
14
- * `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
15
- * Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
16
- * 32 depending on the Move platform)
17
- */
18
- name: bcs.string()
19
- } });
@@ -1,10 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * A storable handler for Balances in general. Is used in the `Coin` module to
6
- * allow balance operations and can be used to implement custom coins with `Supply`
7
- * and `Balance`s.
8
- */
9
- import { MoveStruct } from '../../../utils/index.ts';
10
- export declare const Balance: MoveStruct<any, any>;
@@ -1,14 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * A storable handler for Balances in general. Is used in the `Coin` module to
6
- * allow balance operations and can be used to implement custom coins with `Supply`
7
- * and `Balance`s.
8
- */
9
- import { MoveStruct } from "../../../utils/index.js";
10
- import { bcs } from '@mysten/sui/bcs';
11
- const $moduleName = '0x2::balance';
12
- export const Balance = new MoveStruct({ name: `${$moduleName}::Balance<phantom T>`, fields: {
13
- value: bcs.u64()
14
- } });
@@ -1,12 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Similar to `sui::table`, an `ObjectTable<K, V>` is a map-like collection. But
6
- * unlike `sui::table`, the values bound to these dynamic fields _must_ be objects
7
- * themselves. This allows for the objects to still exist within in storage, which
8
- * may be important for external tools. The difference is otherwise not observable
9
- * from within Move.
10
- */
11
- import { MoveStruct } from '../../../utils/index.ts';
12
- export declare const ObjectTable: MoveStruct<any, any>;
@@ -1,19 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Similar to `sui::table`, an `ObjectTable<K, V>` is a map-like collection. But
6
- * unlike `sui::table`, the values bound to these dynamic fields _must_ be objects
7
- * themselves. This allows for the objects to still exist within in storage, which
8
- * may be important for external tools. The difference is otherwise not observable
9
- * from within Move.
10
- */
11
- import { MoveStruct } from "../../../utils/index.js";
12
- import { bcs } from '@mysten/sui/bcs';
13
- const $moduleName = '0x2::object_table';
14
- export const ObjectTable = new MoveStruct({ name: `${$moduleName}::ObjectTable<phantom K, phantom V>`, fields: {
15
- /** the ID of this table */
16
- id: bcs.Address,
17
- /** the number of key-value pairs in the table */
18
- size: bcs.u64()
19
- } });
@@ -1,36 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { type BcsType } from '@mysten/sui/bcs';
5
- import { MoveStruct } from '../../../utils/index.ts';
6
- /** An entry in the map */
7
- export declare function Entry<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
8
- K,
9
- V
10
- ]): MoveStruct<{
11
- key: K;
12
- value: V;
13
- }, `0x2::vec_map::Entry<${K["name"]}, ${V["name"]}>`>;
14
- /**
15
- * A map data structure backed by a vector. The map is guaranteed not to contain
16
- * duplicate keys, but entries are _not_ sorted by key--entries are included in
17
- * insertion order. All operations are O(N) in the size of the map--the intention
18
- * of this data structure is only to provide the convenience of programming against
19
- * a map API. Large maps should use handwritten parent/child relationships instead.
20
- * Maps that need sorted iteration rather than insertion order iteration should
21
- * also be handwritten.
22
- */
23
- export declare function VecMap<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
24
- K,
25
- V
26
- ]): MoveStruct<{
27
- contents: BcsType<{
28
- key: K extends BcsType<infer U, any, string> ? U : never;
29
- value: V extends BcsType<infer U, any, string> ? U : never;
30
- }[], Iterable<{
31
- key: K extends BcsType<any, infer U_1, string> ? U_1 : never;
32
- value: V extends BcsType<any, infer U_1, string> ? U_1 : never;
33
- }> & {
34
- length: number;
35
- }, string>;
36
- }, `0x2::vec_map::VecMap<${K["name"]}, ${V["name"]}>`>;
@@ -1,27 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { bcs } from '@mysten/sui/bcs';
5
- import { MoveStruct } from "../../../utils/index.js";
6
- const $moduleName = '0x2::vec_map';
7
- /** An entry in the map */
8
- export function Entry(...typeParameters) {
9
- return new MoveStruct({ name: `${$moduleName}::Entry<${typeParameters[0].name}, ${typeParameters[1].name}>`, fields: {
10
- key: typeParameters[0],
11
- value: typeParameters[1]
12
- } });
13
- }
14
- /**
15
- * A map data structure backed by a vector. The map is guaranteed not to contain
16
- * duplicate keys, but entries are _not_ sorted by key--entries are included in
17
- * insertion order. All operations are O(N) in the size of the map--the intention
18
- * of this data structure is only to provide the convenience of programming against
19
- * a map API. Large maps should use handwritten parent/child relationships instead.
20
- * Maps that need sorted iteration rather than insertion order iteration should
21
- * also be handwritten.
22
- */
23
- export function VecMap(...typeParameters) {
24
- return new MoveStruct({ name: `${$moduleName}::VecMap<${typeParameters[0].name}, ${typeParameters[1].name}>`, fields: {
25
- contents: bcs.vector(Entry(typeParameters[0], typeParameters[1]))
26
- } });
27
- }
@@ -1,16 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { type BcsType } from '@mysten/sui/bcs';
5
- import { MoveStruct } from '../../../utils/index.ts';
6
- /**
7
- * A set data structure backed by a vector. The set is guaranteed not to contain
8
- * duplicate keys. All operations are O(N) in the size of the set
9
- *
10
- * - the intention of this data structure is only to provide the convenience of
11
- * programming against a set API. Sets that need sorted iteration rather than
12
- * insertion order iteration should be handwritten.
13
- */
14
- export declare function VecSet<K extends BcsType<any>>(...typeParameters: [
15
- K
16
- ]): MoveStruct<any, any>;
@@ -1,19 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { bcs } from '@mysten/sui/bcs';
5
- import { MoveStruct } from "../../../utils/index.js";
6
- const $moduleName = '0x2::vec_set';
7
- /**
8
- * A set data structure backed by a vector. The set is guaranteed not to contain
9
- * duplicate keys. All operations are O(N) in the size of the set
10
- *
11
- * - the intention of this data structure is only to provide the convenience of
12
- * programming against a set API. Sets that need sorted iteration rather than
13
- * insertion order iteration should be handwritten.
14
- */
15
- export function VecSet(...typeParameters) {
16
- return new MoveStruct({ name: `${$moduleName}::VecSet<${typeParameters[0].name}>`, fields: {
17
- contents: bcs.vector(typeParameters[0])
18
- } });
19
- }
@@ -1,75 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Default identity (passthrough) deposit / withdraw policy.
6
- *
7
- * Folds `Coin<T>` directly into the account's stored `Balance<T>` on deposit, and
8
- * pays `Coin<T>` straight to the request's recipient on withdraw — no swap, no
9
- * conversion. This is the "no-op" policy that most CoinTypes will use; PSM-style
10
- * policies (T_IN → T_OUT) are still authored per-protocol.
11
- *
12
- * Deploy setup (one-time):
13
- *
14
- * ```move
15
- * // Once at deploy:
16
- * registry.whitelist_protocol<DirectRule>(&admin_cap);
17
- * // Per CoinType T that should flow direct:
18
- * registry.register_deposit_policy<T, DirectRule>(&admin_cap);
19
- * registry.register_withdraw_policy<T, DirectRule>(&admin_cap);
20
- * ```
21
- *
22
- * User flow inside a single PTB:
23
- *
24
- * ```move
25
- * let req = registry.request_deposit<T>(account_id, coin, extra_data);
26
- * direct_rule::consume_deposit_direct<T>(&mut registry, req);
27
- * // ...later:
28
- * let wreq = registry.request_withdraw<T>(&sender_req, account_id, amount, recipient, extra_data, &clock);
29
- * direct_rule::consume_withdraw_direct<T>(&mut registry, wreq);
30
- * ```
31
- */
32
- import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
33
- import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
34
- export declare const DirectRule: MoveStruct<any, any>;
35
- export interface ConsumeDepositDirectArguments {
36
- registry: RawTransactionArgument<string>;
37
- req: TransactionArgument;
38
- }
39
- export interface ConsumeDepositDirectOptions {
40
- package?: string;
41
- arguments: ConsumeDepositDirectArguments | [
42
- registry: RawTransactionArgument<string>,
43
- req: TransactionArgument
44
- ];
45
- typeArguments: [
46
- string
47
- ];
48
- }
49
- /**
50
- * Consume a `DepositRequest<T>` that was registered against `DirectRule` and
51
- * credit the entire `Balance<T>` to the account's stored balance.
52
- */
53
- export declare function consumeDepositDirect(options: ConsumeDepositDirectOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
54
- export interface ConsumeWithdrawDirectArguments {
55
- registry: RawTransactionArgument<string>;
56
- req: TransactionArgument;
57
- }
58
- export interface ConsumeWithdrawDirectOptions {
59
- package?: string;
60
- arguments: ConsumeWithdrawDirectArguments | [
61
- registry: RawTransactionArgument<string>,
62
- req: TransactionArgument
63
- ];
64
- typeArguments: [
65
- string
66
- ];
67
- }
68
- /**
69
- * Consume a `WithdrawRequest<T>` that was registered against `DirectRule` and pay
70
- * out the `Balance<T>` to the request's recipient via the address accumulator. If
71
- * the recipient is itself a wxa account, the payout composes with any other inflow
72
- * and can be folded back into stored balance via `request_deposit_from_funds<T>`
73
- * in a follow-up PTB leg.
74
- */
75
- export declare function consumeWithdrawDirect(options: ConsumeWithdrawDirectOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
@@ -1,78 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * Default identity (passthrough) deposit / withdraw policy.
6
- *
7
- * Folds `Coin<T>` directly into the account's stored `Balance<T>` on deposit, and
8
- * pays `Coin<T>` straight to the request's recipient on withdraw — no swap, no
9
- * conversion. This is the "no-op" policy that most CoinTypes will use; PSM-style
10
- * policies (T_IN → T_OUT) are still authored per-protocol.
11
- *
12
- * Deploy setup (one-time):
13
- *
14
- * ```move
15
- * // Once at deploy:
16
- * registry.whitelist_protocol<DirectRule>(&admin_cap);
17
- * // Per CoinType T that should flow direct:
18
- * registry.register_deposit_policy<T, DirectRule>(&admin_cap);
19
- * registry.register_withdraw_policy<T, DirectRule>(&admin_cap);
20
- * ```
21
- *
22
- * User flow inside a single PTB:
23
- *
24
- * ```move
25
- * let req = registry.request_deposit<T>(account_id, coin, extra_data);
26
- * direct_rule::consume_deposit_direct<T>(&mut registry, req);
27
- * // ...later:
28
- * let wreq = registry.request_withdraw<T>(&sender_req, account_id, amount, recipient, extra_data, &clock);
29
- * direct_rule::consume_withdraw_direct<T>(&mut registry, wreq);
30
- * ```
31
- */
32
- import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
33
- import { bcs } from '@mysten/sui/bcs';
34
- const $moduleName = '@waterx/account::direct_rule';
35
- export const DirectRule = new MoveStruct({ name: `${$moduleName}::DirectRule`, fields: {
36
- dummy_field: bcs.bool()
37
- } });
38
- /**
39
- * Consume a `DepositRequest<T>` that was registered against `DirectRule` and
40
- * credit the entire `Balance<T>` to the account's stored balance.
41
- */
42
- export function consumeDepositDirect(options) {
43
- const packageAddress = options.package ?? '@waterx/account';
44
- const argumentsTypes = [
45
- null,
46
- null
47
- ];
48
- const parameterNames = ["registry", "req"];
49
- return (tx) => tx.moveCall({
50
- package: packageAddress,
51
- module: 'direct_rule',
52
- function: 'consume_deposit_direct',
53
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
54
- typeArguments: options.typeArguments
55
- });
56
- }
57
- /**
58
- * Consume a `WithdrawRequest<T>` that was registered against `DirectRule` and pay
59
- * out the `Balance<T>` to the request's recipient via the address accumulator. If
60
- * the recipient is itself a wxa account, the payout composes with any other inflow
61
- * and can be folded back into stored balance via `request_deposit_from_funds<T>`
62
- * in a follow-up PTB leg.
63
- */
64
- export function consumeWithdrawDirect(options) {
65
- const packageAddress = options.package ?? '@waterx/account';
66
- const argumentsTypes = [
67
- null,
68
- null
69
- ];
70
- const parameterNames = ["registry", "req"];
71
- return (tx) => tx.moveCall({
72
- package: packageAddress,
73
- module: 'direct_rule',
74
- function: 'consume_withdraw_direct',
75
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
76
- typeArguments: options.typeArguments
77
- });
78
- }
@@ -1,33 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { MoveStruct } from '../utils/index.ts';
5
- export declare const AccountCreated: MoveStruct<any, any>;
6
- export declare const AccountAliasUpdated: MoveStruct<any, any>;
7
- export declare const DelegateAdded: MoveStruct<any, any>;
8
- export declare const DelegateRemoved: MoveStruct<any, any>;
9
- export declare const DelegateUpdated: MoveStruct<any, any>;
10
- export declare const DelegateProtocolPermissionSet: MoveStruct<any, any>;
11
- export declare const DelegateProtocolPermissionUnset: MoveStruct<any, any>;
12
- export declare const ProtocolWhitelisted: MoveStruct<any, any>;
13
- export declare const ProtocolDelisted: MoveStruct<any, any>;
14
- export declare const ProtocolPaused: MoveStruct<any, any>;
15
- export declare const ProtocolUnpaused: MoveStruct<any, any>;
16
- export declare const ProtocolAssetAllowed: MoveStruct<any, any>;
17
- export declare const ProtocolAssetDisallowed: MoveStruct<any, any>;
18
- export declare const DepositPolicyRegistered: MoveStruct<any, any>;
19
- export declare const DepositPolicyUnregistered: MoveStruct<any, any>;
20
- export declare const WithdrawPolicyRegistered: MoveStruct<any, any>;
21
- export declare const WithdrawPolicyUnregistered: MoveStruct<any, any>;
22
- export declare const DepositRequested: MoveStruct<any, any>;
23
- export declare const DepositConsumed: MoveStruct<any, any>;
24
- export declare const WithdrawRequested: MoveStruct<any, any>;
25
- export declare const WithdrawConsumed: MoveStruct<any, any>;
26
- export declare const TakenByProtocol: MoveStruct<any, any>;
27
- export declare const ReturnedByProtocol: MoveStruct<any, any>;
28
- export declare const ManagerAdded: MoveStruct<any, any>;
29
- export declare const ManagerRemoved: MoveStruct<any, any>;
30
- export declare const Paused: MoveStruct<any, any>;
31
- export declare const Unpaused: MoveStruct<any, any>;
32
- export declare const VersionAllowed: MoveStruct<any, any>;
33
- export declare const VersionDisallowed: MoveStruct<any, any>;
@@ -1,137 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { MoveStruct } from "../utils/index.js";
5
- import { bcs } from '@mysten/sui/bcs';
6
- import * as type_name from "./deps/std/type_name.js";
7
- const $moduleName = '@waterx/account::events';
8
- export const AccountCreated = new MoveStruct({ name: `${$moduleName}::AccountCreated`, fields: {
9
- owner: bcs.Address,
10
- account_object_address: bcs.Address,
11
- alias: bcs.string(),
12
- index: bcs.u64()
13
- } });
14
- export const AccountAliasUpdated = new MoveStruct({ name: `${$moduleName}::AccountAliasUpdated`, fields: {
15
- account_object_address: bcs.Address,
16
- alias: bcs.string()
17
- } });
18
- export const DelegateAdded = new MoveStruct({ name: `${$moduleName}::DelegateAdded`, fields: {
19
- account_object_address: bcs.Address,
20
- delegate: bcs.Address,
21
- alias: bcs.string(),
22
- permissions: bcs.u32(),
23
- expires_at_ms: bcs.option(bcs.u64())
24
- } });
25
- export const DelegateRemoved = new MoveStruct({ name: `${$moduleName}::DelegateRemoved`, fields: {
26
- account_object_address: bcs.Address,
27
- delegate: bcs.Address
28
- } });
29
- export const DelegateUpdated = new MoveStruct({ name: `${$moduleName}::DelegateUpdated`, fields: {
30
- account_object_address: bcs.Address,
31
- delegate: bcs.Address,
32
- alias: bcs.string(),
33
- permissions: bcs.u32(),
34
- expires_at_ms: bcs.option(bcs.u64())
35
- } });
36
- export const DelegateProtocolPermissionSet = new MoveStruct({ name: `${$moduleName}::DelegateProtocolPermissionSet`, fields: {
37
- account_object_address: bcs.Address,
38
- delegate: bcs.Address,
39
- protocol: type_name.TypeName,
40
- permissions: bcs.u32()
41
- } });
42
- export const DelegateProtocolPermissionUnset = new MoveStruct({ name: `${$moduleName}::DelegateProtocolPermissionUnset`, fields: {
43
- account_object_address: bcs.Address,
44
- delegate: bcs.Address,
45
- protocol: type_name.TypeName
46
- } });
47
- export const ProtocolWhitelisted = new MoveStruct({ name: `${$moduleName}::ProtocolWhitelisted`, fields: {
48
- protocol: type_name.TypeName
49
- } });
50
- export const ProtocolDelisted = new MoveStruct({ name: `${$moduleName}::ProtocolDelisted`, fields: {
51
- protocol: type_name.TypeName
52
- } });
53
- export const ProtocolPaused = new MoveStruct({ name: `${$moduleName}::ProtocolPaused`, fields: {
54
- protocol: type_name.TypeName
55
- } });
56
- export const ProtocolUnpaused = new MoveStruct({ name: `${$moduleName}::ProtocolUnpaused`, fields: {
57
- protocol: type_name.TypeName
58
- } });
59
- export const ProtocolAssetAllowed = new MoveStruct({ name: `${$moduleName}::ProtocolAssetAllowed`, fields: {
60
- protocol: type_name.TypeName,
61
- asset: type_name.TypeName
62
- } });
63
- export const ProtocolAssetDisallowed = new MoveStruct({ name: `${$moduleName}::ProtocolAssetDisallowed`, fields: {
64
- protocol: type_name.TypeName,
65
- asset: type_name.TypeName
66
- } });
67
- export const DepositPolicyRegistered = new MoveStruct({ name: `${$moduleName}::DepositPolicyRegistered`, fields: {
68
- token_type: type_name.TypeName,
69
- policy: type_name.TypeName
70
- } });
71
- export const DepositPolicyUnregistered = new MoveStruct({ name: `${$moduleName}::DepositPolicyUnregistered`, fields: {
72
- token_type: type_name.TypeName,
73
- policy: type_name.TypeName
74
- } });
75
- export const WithdrawPolicyRegistered = new MoveStruct({ name: `${$moduleName}::WithdrawPolicyRegistered`, fields: {
76
- token_type: type_name.TypeName,
77
- policy: type_name.TypeName
78
- } });
79
- export const WithdrawPolicyUnregistered = new MoveStruct({ name: `${$moduleName}::WithdrawPolicyUnregistered`, fields: {
80
- token_type: type_name.TypeName,
81
- policy: type_name.TypeName
82
- } });
83
- export const DepositRequested = new MoveStruct({ name: `${$moduleName}::DepositRequested`, fields: {
84
- account_object_address: bcs.Address,
85
- token_type: type_name.TypeName,
86
- amount: bcs.u64()
87
- } });
88
- export const DepositConsumed = new MoveStruct({ name: `${$moduleName}::DepositConsumed`, fields: {
89
- account_object_address: bcs.Address,
90
- token_type: type_name.TypeName,
91
- policy: type_name.TypeName,
92
- amount: bcs.u64()
93
- } });
94
- export const WithdrawRequested = new MoveStruct({ name: `${$moduleName}::WithdrawRequested`, fields: {
95
- account_object_address: bcs.Address,
96
- token_type: type_name.TypeName,
97
- amount: bcs.u64(),
98
- requested_by: bcs.Address,
99
- recipient: bcs.Address
100
- } });
101
- export const WithdrawConsumed = new MoveStruct({ name: `${$moduleName}::WithdrawConsumed`, fields: {
102
- account_object_address: bcs.Address,
103
- token_type: type_name.TypeName,
104
- policy: type_name.TypeName,
105
- amount: bcs.u64(),
106
- recipient: bcs.Address
107
- } });
108
- export const TakenByProtocol = new MoveStruct({ name: `${$moduleName}::TakenByProtocol`, fields: {
109
- account_object_address: bcs.Address,
110
- protocol: type_name.TypeName,
111
- token_type: type_name.TypeName,
112
- amount: bcs.u64()
113
- } });
114
- export const ReturnedByProtocol = new MoveStruct({ name: `${$moduleName}::ReturnedByProtocol`, fields: {
115
- account_object_address: bcs.Address,
116
- protocol: type_name.TypeName,
117
- token_type: type_name.TypeName,
118
- amount: bcs.u64()
119
- } });
120
- export const ManagerAdded = new MoveStruct({ name: `${$moduleName}::ManagerAdded`, fields: {
121
- manager: bcs.Address
122
- } });
123
- export const ManagerRemoved = new MoveStruct({ name: `${$moduleName}::ManagerRemoved`, fields: {
124
- manager: bcs.Address
125
- } });
126
- export const Paused = new MoveStruct({ name: `${$moduleName}::Paused`, fields: {
127
- paused_by: bcs.Address
128
- } });
129
- export const Unpaused = new MoveStruct({ name: `${$moduleName}::Unpaused`, fields: {
130
- dummy_field: bcs.bool()
131
- } });
132
- export const VersionAllowed = new MoveStruct({ name: `${$moduleName}::VersionAllowed`, fields: {
133
- version: bcs.u16()
134
- } });
135
- export const VersionDisallowed = new MoveStruct({ name: `${$moduleName}::VersionDisallowed`, fields: {
136
- version: bcs.u16()
137
- } });
@@ -1,8 +0,0 @@
1
- export function packageVersion(options = {}) {
2
- const packageAddress = options.package ?? '@waterx/account';
3
- return (tx) => tx.moveCall({
4
- package: packageAddress,
5
- module: 'version',
6
- function: 'package_version',
7
- });
8
- }
@@ -1,60 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- /**
5
- * On-chain audit trail for `place_order_for`: payer (host) fronts funds while the
6
- * beneficiary `waterx_account` owns order / position indexing and payouts.
7
- */
8
- import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
9
- import { type Transaction } from '@mysten/sui/transactions';
10
- export declare const BetSharing: MoveStruct<any, any>;
11
- export interface HostAccountIdArguments {
12
- bs: RawTransactionArgument<string>;
13
- }
14
- export interface HostAccountIdOptions {
15
- package?: string;
16
- arguments: HostAccountIdArguments | [
17
- bs: RawTransactionArgument<string>
18
- ];
19
- }
20
- export declare function hostAccountId(options: HostAccountIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
21
- export interface BeneficiaryAccountIdArguments {
22
- bs: RawTransactionArgument<string>;
23
- }
24
- export interface BeneficiaryAccountIdOptions {
25
- package?: string;
26
- arguments: BeneficiaryAccountIdArguments | [
27
- bs: RawTransactionArgument<string>
28
- ];
29
- }
30
- export declare function beneficiaryAccountId(options: BeneficiaryAccountIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
31
- export interface OrderIdArguments {
32
- bs: RawTransactionArgument<string>;
33
- }
34
- export interface OrderIdOptions {
35
- package?: string;
36
- arguments: OrderIdArguments | [
37
- bs: RawTransactionArgument<string>
38
- ];
39
- }
40
- export declare function orderId(options: OrderIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
41
- export interface MarketKeyArguments {
42
- bs: RawTransactionArgument<string>;
43
- }
44
- export interface MarketKeyOptions {
45
- package?: string;
46
- arguments: MarketKeyArguments | [
47
- bs: RawTransactionArgument<string>
48
- ];
49
- }
50
- export declare function marketKey(options: MarketKeyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
51
- export interface CreatedAtMsArguments {
52
- bs: RawTransactionArgument<string>;
53
- }
54
- export interface CreatedAtMsOptions {
55
- package?: string;
56
- arguments: CreatedAtMsArguments | [
57
- bs: RawTransactionArgument<string>
58
- ];
59
- }
60
- export declare function createdAtMs(options: CreatedAtMsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;