@waterx/predict-sdk 0.1.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 (105) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +67 -0
  3. package/dist/src/account.d.ts +64 -0
  4. package/dist/src/account.js +134 -0
  5. package/dist/src/admin.d.ts +47 -0
  6. package/dist/src/admin.js +104 -0
  7. package/dist/src/bcs.d.ts +20 -0
  8. package/dist/src/bcs.js +209 -0
  9. package/dist/src/client.d.ts +60 -0
  10. package/dist/src/client.js +59 -0
  11. package/dist/src/constants.d.ts +61 -0
  12. package/dist/src/constants.js +62 -0
  13. package/dist/src/fetch.d.ts +53 -0
  14. package/dist/src/fetch.js +187 -0
  15. package/dist/src/generated/bucket_v2_framework/account.d.ts +100 -0
  16. package/dist/src/generated/bucket_v2_framework/account.js +129 -0
  17. package/dist/src/generated/bucket_v2_framework/deps/std/type_name.d.ts +6 -0
  18. package/dist/src/generated/bucket_v2_framework/deps/std/type_name.js +19 -0
  19. package/dist/src/generated/bucket_v2_framework/deps/sui/balance.d.ts +10 -0
  20. package/dist/src/generated/bucket_v2_framework/deps/sui/balance.js +14 -0
  21. package/dist/src/generated/bucket_v2_framework/deps/sui/vec_map.d.ts +36 -0
  22. package/dist/src/generated/bucket_v2_framework/deps/sui/vec_map.js +27 -0
  23. package/dist/src/generated/bucket_v2_framework/deps/sui/vec_set.d.ts +16 -0
  24. package/dist/src/generated/bucket_v2_framework/deps/sui/vec_set.js +19 -0
  25. package/dist/src/generated/bucket_v2_framework/double.d.ts +382 -0
  26. package/dist/src/generated/bucket_v2_framework/double.js +466 -0
  27. package/dist/src/generated/bucket_v2_framework/float.d.ts +362 -0
  28. package/dist/src/generated/bucket_v2_framework/float.js +440 -0
  29. package/dist/src/generated/bucket_v2_framework/liability.d.ts +193 -0
  30. package/dist/src/generated/bucket_v2_framework/liability.js +205 -0
  31. package/dist/src/generated/bucket_v2_framework/linked_table.d.ts +384 -0
  32. package/dist/src/generated/bucket_v2_framework/linked_table.js +382 -0
  33. package/dist/src/generated/bucket_v2_framework/sheet.d.ts +344 -0
  34. package/dist/src/generated/bucket_v2_framework/sheet.js +344 -0
  35. package/dist/src/generated/utils/index.d.ts +30 -0
  36. package/dist/src/generated/utils/index.js +157 -0
  37. package/dist/src/generated/waterx_account/account.d.ts +1326 -0
  38. package/dist/src/generated/waterx_account/account.js +1487 -0
  39. package/dist/src/generated/waterx_account/deps/std/type_name.d.ts +6 -0
  40. package/dist/src/generated/waterx_account/deps/std/type_name.js +19 -0
  41. package/dist/src/generated/waterx_account/deps/sui/balance.d.ts +10 -0
  42. package/dist/src/generated/waterx_account/deps/sui/balance.js +14 -0
  43. package/dist/src/generated/waterx_account/deps/sui/table.d.ts +24 -0
  44. package/dist/src/generated/waterx_account/deps/sui/table.js +31 -0
  45. package/dist/src/generated/waterx_account/deps/sui/vec_map.d.ts +36 -0
  46. package/dist/src/generated/waterx_account/deps/sui/vec_map.js +27 -0
  47. package/dist/src/generated/waterx_account/deps/sui/vec_set.d.ts +16 -0
  48. package/dist/src/generated/waterx_account/deps/sui/vec_set.js +19 -0
  49. package/dist/src/generated/waterx_account/direct_rule.d.ts +72 -0
  50. package/dist/src/generated/waterx_account/direct_rule.js +75 -0
  51. package/dist/src/generated/waterx_account/events.d.ts +30 -0
  52. package/dist/src/generated/waterx_account/events.js +145 -0
  53. package/dist/src/generated/waterx_account/version.d.ts +10 -0
  54. package/dist/src/generated/waterx_account/version.js +8 -0
  55. package/dist/src/generated/waterx_prediction/account_data.d.ts +321 -0
  56. package/dist/src/generated/waterx_prediction/account_data.js +399 -0
  57. package/dist/src/generated/waterx_prediction/admin.d.ts +5 -0
  58. package/dist/src/generated/waterx_prediction/admin.js +9 -0
  59. package/dist/src/generated/waterx_prediction/deps/bucket_v2_framework/linked_table.d.ts +8 -0
  60. package/dist/src/generated/waterx_prediction/deps/bucket_v2_framework/linked_table.js +18 -0
  61. package/dist/src/generated/waterx_prediction/deps/sui/balance.d.ts +10 -0
  62. package/dist/src/generated/waterx_prediction/deps/sui/balance.js +14 -0
  63. package/dist/src/generated/waterx_prediction/deps/sui/table.d.ts +24 -0
  64. package/dist/src/generated/waterx_prediction/deps/sui/table.js +31 -0
  65. package/dist/src/generated/waterx_prediction/deps/sui/vec_set.d.ts +16 -0
  66. package/dist/src/generated/waterx_prediction/deps/sui/vec_set.js +19 -0
  67. package/dist/src/generated/waterx_prediction/events.d.ts +19 -0
  68. package/dist/src/generated/waterx_prediction/events.js +99 -0
  69. package/dist/src/generated/waterx_prediction/global_config.d.ts +68 -0
  70. package/dist/src/generated/waterx_prediction/global_config.js +83 -0
  71. package/dist/src/generated/waterx_prediction/order.d.ts +170 -0
  72. package/dist/src/generated/waterx_prediction/order.js +237 -0
  73. package/dist/src/generated/waterx_prediction/outcome.d.ts +58 -0
  74. package/dist/src/generated/waterx_prediction/outcome.js +73 -0
  75. package/dist/src/generated/waterx_prediction/position.d.ts +150 -0
  76. package/dist/src/generated/waterx_prediction/position.js +200 -0
  77. package/dist/src/generated/waterx_prediction/view.d.ts +353 -0
  78. package/dist/src/generated/waterx_prediction/view.js +426 -0
  79. package/dist/src/generated/waterx_prediction/waterx_prediction.d.ts +1520 -0
  80. package/dist/src/generated/waterx_prediction/waterx_prediction.js +1550 -0
  81. package/dist/src/index.d.ts +22 -0
  82. package/dist/src/index.js +17 -0
  83. package/dist/src/prediction.d.ts +81 -0
  84. package/dist/src/prediction.js +220 -0
  85. package/dist/src/types.d.ts +81 -0
  86. package/dist/src/types.js +1 -0
  87. package/dist/src/user/account.d.ts +2 -0
  88. package/dist/src/user/account.js +1 -0
  89. package/dist/src/user/admin.d.ts +4 -0
  90. package/dist/src/user/admin.js +2 -0
  91. package/dist/src/user/index.d.ts +4 -0
  92. package/dist/src/user/index.js +2 -0
  93. package/dist/src/user/keeper.d.ts +2 -0
  94. package/dist/src/user/keeper.js +1 -0
  95. package/dist/src/user/order.d.ts +2 -0
  96. package/dist/src/user/order.js +1 -0
  97. package/dist/src/user/position.d.ts +2 -0
  98. package/dist/src/user/position.js +1 -0
  99. package/dist/src/utils/bcs.d.ts +1 -0
  100. package/dist/src/utils/bcs.js +1 -0
  101. package/dist/src/utils/index.d.ts +1 -0
  102. package/dist/src/utils/index.js +1 -0
  103. package/dist/src/utils.d.ts +29 -0
  104. package/dist/src/utils.js +170 -0
  105. package/package.json +62 -0
@@ -0,0 +1,129 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Module for Account Abstraction */
5
+ import { MoveStruct, normalizeMoveArguments } from "../utils/index.js";
6
+ import { bcs } from '@mysten/sui/bcs';
7
+ const $moduleName = '@bucket/framework::account';
8
+ export const ACCOUNT = new MoveStruct({ name: `${$moduleName}::ACCOUNT`, fields: {
9
+ dummy_field: bcs.bool()
10
+ } });
11
+ export const Account = new MoveStruct({ name: `${$moduleName}::Account`, fields: {
12
+ id: bcs.Address,
13
+ alias: bcs.option(bcs.string())
14
+ } });
15
+ export const AccountRequest = new MoveStruct({ name: `${$moduleName}::AccountRequest`, fields: {
16
+ account: bcs.Address
17
+ } });
18
+ /** Public Funs */
19
+ export function _new(options) {
20
+ const packageAddress = options.package ?? '@bucket/framework';
21
+ const argumentsTypes = [
22
+ '0x1::option::Option<0x1::string::String>'
23
+ ];
24
+ const parameterNames = ["alias"];
25
+ return (tx) => tx.moveCall({
26
+ package: packageAddress,
27
+ module: 'account',
28
+ function: 'new',
29
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
30
+ });
31
+ }
32
+ export function request(options = {}) {
33
+ const packageAddress = options.package ?? '@bucket/framework';
34
+ return (tx) => tx.moveCall({
35
+ package: packageAddress,
36
+ module: 'account',
37
+ function: 'request',
38
+ });
39
+ }
40
+ export function requestWithAccount(options) {
41
+ const packageAddress = options.package ?? '@bucket/framework';
42
+ const argumentsTypes = [
43
+ null
44
+ ];
45
+ const parameterNames = ["account"];
46
+ return (tx) => tx.moveCall({
47
+ package: packageAddress,
48
+ module: 'account',
49
+ function: 'request_with_account',
50
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
51
+ });
52
+ }
53
+ export function receive(options) {
54
+ const packageAddress = options.package ?? '@bucket/framework';
55
+ const argumentsTypes = [
56
+ null,
57
+ null
58
+ ];
59
+ const parameterNames = ["account", "receiving"];
60
+ return (tx) => tx.moveCall({
61
+ package: packageAddress,
62
+ module: 'account',
63
+ function: 'receive',
64
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
65
+ typeArguments: options.typeArguments
66
+ });
67
+ }
68
+ export function updateAlias(options) {
69
+ const packageAddress = options.package ?? '@bucket/framework';
70
+ const argumentsTypes = [
71
+ null,
72
+ '0x1::string::String'
73
+ ];
74
+ const parameterNames = ["account", "alias"];
75
+ return (tx) => tx.moveCall({
76
+ package: packageAddress,
77
+ module: 'account',
78
+ function: 'update_alias',
79
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
80
+ });
81
+ }
82
+ /** Entry Funs */
83
+ export function create(options) {
84
+ const packageAddress = options.package ?? '@bucket/framework';
85
+ const argumentsTypes = [
86
+ '0x1::option::Option<0x1::string::String>'
87
+ ];
88
+ const parameterNames = ["alias"];
89
+ return (tx) => tx.moveCall({
90
+ package: packageAddress,
91
+ module: 'account',
92
+ function: 'create',
93
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
94
+ });
95
+ }
96
+ export function accountAddress(options) {
97
+ const packageAddress = options.package ?? '@bucket/framework';
98
+ const argumentsTypes = [
99
+ null
100
+ ];
101
+ const parameterNames = ["account"];
102
+ return (tx) => tx.moveCall({
103
+ package: packageAddress,
104
+ module: 'account',
105
+ function: 'account_address',
106
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
107
+ });
108
+ }
109
+ export function requestAddress(options) {
110
+ const packageAddress = options.package ?? '@bucket/framework';
111
+ const argumentsTypes = [
112
+ null
113
+ ];
114
+ const parameterNames = ["req"];
115
+ return (tx) => tx.moveCall({
116
+ package: packageAddress,
117
+ module: 'account',
118
+ function: 'request_address',
119
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
120
+ });
121
+ }
122
+ export function aliasLengthLimit(options = {}) {
123
+ const packageAddress = options.package ?? '@bucket/framework';
124
+ return (tx) => tx.moveCall({
125
+ package: packageAddress,
126
+ module: 'account',
127
+ function: 'alias_length_limit',
128
+ });
129
+ }
@@ -0,0 +1,6 @@
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>;
@@ -0,0 +1,19 @@
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
+ } });
@@ -0,0 +1,10 @@
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>;
@@ -0,0 +1,14 @@
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
+ } });
@@ -0,0 +1,36 @@
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"]}>`>;
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,16 @@
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>;
@@ -0,0 +1,19 @@
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
+ }
@@ -0,0 +1,382 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Module for double precision floating points */
5
+ import { MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
6
+ import { type Transaction } from '@mysten/sui/transactions';
7
+ export declare const Double: MoveStruct<any, any>;
8
+ export interface ZeroOptions {
9
+ package?: string;
10
+ arguments?: [
11
+ ];
12
+ }
13
+ /** Public Funs */
14
+ export declare function zero(options?: ZeroOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
15
+ export interface OneOptions {
16
+ package?: string;
17
+ arguments?: [
18
+ ];
19
+ }
20
+ export declare function one(options?: OneOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
21
+ export interface TenOptions {
22
+ package?: string;
23
+ arguments?: [
24
+ ];
25
+ }
26
+ export declare function ten(options?: TenOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
27
+ export interface FromArguments {
28
+ v: RawTransactionArgument<number | bigint>;
29
+ }
30
+ export interface FromOptions {
31
+ package?: string;
32
+ arguments: FromArguments | [
33
+ v: RawTransactionArgument<number | bigint>
34
+ ];
35
+ }
36
+ export declare function _from(options: FromOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
37
+ export interface FromPercentArguments {
38
+ v: RawTransactionArgument<number>;
39
+ }
40
+ export interface FromPercentOptions {
41
+ package?: string;
42
+ arguments: FromPercentArguments | [
43
+ v: RawTransactionArgument<number>
44
+ ];
45
+ }
46
+ export declare function fromPercent(options: FromPercentOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
47
+ export interface FromPercentU64Arguments {
48
+ v: RawTransactionArgument<number | bigint>;
49
+ }
50
+ export interface FromPercentU64Options {
51
+ package?: string;
52
+ arguments: FromPercentU64Arguments | [
53
+ v: RawTransactionArgument<number | bigint>
54
+ ];
55
+ }
56
+ export declare function fromPercentU64(options: FromPercentU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
57
+ export interface FromBpsArguments {
58
+ v: RawTransactionArgument<number | bigint>;
59
+ }
60
+ export interface FromBpsOptions {
61
+ package?: string;
62
+ arguments: FromBpsArguments | [
63
+ v: RawTransactionArgument<number | bigint>
64
+ ];
65
+ }
66
+ export declare function fromBps(options: FromBpsOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
67
+ export interface FromFractionArguments {
68
+ n: RawTransactionArgument<number | bigint>;
69
+ m: RawTransactionArgument<number | bigint>;
70
+ }
71
+ export interface FromFractionOptions {
72
+ package?: string;
73
+ arguments: FromFractionArguments | [
74
+ n: RawTransactionArgument<number | bigint>,
75
+ m: RawTransactionArgument<number | bigint>
76
+ ];
77
+ }
78
+ export declare function fromFraction(options: FromFractionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
79
+ export interface FromScaledValArguments {
80
+ v: RawTransactionArgument<number | bigint>;
81
+ }
82
+ export interface FromScaledValOptions {
83
+ package?: string;
84
+ arguments: FromScaledValArguments | [
85
+ v: RawTransactionArgument<number | bigint>
86
+ ];
87
+ }
88
+ export declare function fromScaledVal(options: FromScaledValOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
89
+ export interface FromFloatArguments {
90
+ f: RawTransactionArgument<string>;
91
+ }
92
+ export interface FromFloatOptions {
93
+ package?: string;
94
+ arguments: FromFloatArguments | [
95
+ f: RawTransactionArgument<string>
96
+ ];
97
+ }
98
+ export declare function fromFloat(options: FromFloatOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
99
+ export interface ToScaledValArguments {
100
+ v: RawTransactionArgument<string>;
101
+ }
102
+ export interface ToScaledValOptions {
103
+ package?: string;
104
+ arguments: ToScaledValArguments | [
105
+ v: RawTransactionArgument<string>
106
+ ];
107
+ }
108
+ export declare function toScaledVal(options: ToScaledValOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
109
+ export interface TryIntoFloatArguments {
110
+ v: RawTransactionArgument<string>;
111
+ }
112
+ export interface TryIntoFloatOptions {
113
+ package?: string;
114
+ arguments: TryIntoFloatArguments | [
115
+ v: RawTransactionArgument<string>
116
+ ];
117
+ }
118
+ export declare function tryIntoFloat(options: TryIntoFloatOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
119
+ export interface AddArguments {
120
+ a: RawTransactionArgument<string>;
121
+ b: RawTransactionArgument<string>;
122
+ }
123
+ export interface AddOptions {
124
+ package?: string;
125
+ arguments: AddArguments | [
126
+ a: RawTransactionArgument<string>,
127
+ b: RawTransactionArgument<string>
128
+ ];
129
+ }
130
+ export declare function add(options: AddOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
131
+ export interface SubArguments {
132
+ a: RawTransactionArgument<string>;
133
+ b: RawTransactionArgument<string>;
134
+ }
135
+ export interface SubOptions {
136
+ package?: string;
137
+ arguments: SubArguments | [
138
+ a: RawTransactionArgument<string>,
139
+ b: RawTransactionArgument<string>
140
+ ];
141
+ }
142
+ export declare function sub(options: SubOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
143
+ export interface SaturatingSubArguments {
144
+ a: RawTransactionArgument<string>;
145
+ b: RawTransactionArgument<string>;
146
+ }
147
+ export interface SaturatingSubOptions {
148
+ package?: string;
149
+ arguments: SaturatingSubArguments | [
150
+ a: RawTransactionArgument<string>,
151
+ b: RawTransactionArgument<string>
152
+ ];
153
+ }
154
+ export declare function saturatingSub(options: SaturatingSubOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
155
+ export interface MulArguments {
156
+ a: RawTransactionArgument<string>;
157
+ b: RawTransactionArgument<string>;
158
+ }
159
+ export interface MulOptions {
160
+ package?: string;
161
+ arguments: MulArguments | [
162
+ a: RawTransactionArgument<string>,
163
+ b: RawTransactionArgument<string>
164
+ ];
165
+ }
166
+ export declare function mul(options: MulOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
167
+ export interface DivArguments {
168
+ a: RawTransactionArgument<string>;
169
+ b: RawTransactionArgument<string>;
170
+ }
171
+ export interface DivOptions {
172
+ package?: string;
173
+ arguments: DivArguments | [
174
+ a: RawTransactionArgument<string>,
175
+ b: RawTransactionArgument<string>
176
+ ];
177
+ }
178
+ export declare function div(options: DivOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
179
+ export interface AddU64Arguments {
180
+ a: RawTransactionArgument<string>;
181
+ b: RawTransactionArgument<number | bigint>;
182
+ }
183
+ export interface AddU64Options {
184
+ package?: string;
185
+ arguments: AddU64Arguments | [
186
+ a: RawTransactionArgument<string>,
187
+ b: RawTransactionArgument<number | bigint>
188
+ ];
189
+ }
190
+ export declare function addU64(options: AddU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
191
+ export interface SubU64Arguments {
192
+ a: RawTransactionArgument<string>;
193
+ b: RawTransactionArgument<number | bigint>;
194
+ }
195
+ export interface SubU64Options {
196
+ package?: string;
197
+ arguments: SubU64Arguments | [
198
+ a: RawTransactionArgument<string>,
199
+ b: RawTransactionArgument<number | bigint>
200
+ ];
201
+ }
202
+ export declare function subU64(options: SubU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
203
+ export interface SaturatingSubU64Arguments {
204
+ a: RawTransactionArgument<string>;
205
+ b: RawTransactionArgument<number | bigint>;
206
+ }
207
+ export interface SaturatingSubU64Options {
208
+ package?: string;
209
+ arguments: SaturatingSubU64Arguments | [
210
+ a: RawTransactionArgument<string>,
211
+ b: RawTransactionArgument<number | bigint>
212
+ ];
213
+ }
214
+ export declare function saturatingSubU64(options: SaturatingSubU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
215
+ export interface MulU64Arguments {
216
+ a: RawTransactionArgument<string>;
217
+ b: RawTransactionArgument<number | bigint>;
218
+ }
219
+ export interface MulU64Options {
220
+ package?: string;
221
+ arguments: MulU64Arguments | [
222
+ a: RawTransactionArgument<string>,
223
+ b: RawTransactionArgument<number | bigint>
224
+ ];
225
+ }
226
+ export declare function mulU64(options: MulU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
227
+ export interface DivU64Arguments {
228
+ a: RawTransactionArgument<string>;
229
+ b: RawTransactionArgument<number | bigint>;
230
+ }
231
+ export interface DivU64Options {
232
+ package?: string;
233
+ arguments: DivU64Arguments | [
234
+ a: RawTransactionArgument<string>,
235
+ b: RawTransactionArgument<number | bigint>
236
+ ];
237
+ }
238
+ export declare function divU64(options: DivU64Options): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
239
+ export interface PowArguments {
240
+ b: RawTransactionArgument<string>;
241
+ e: RawTransactionArgument<number | bigint>;
242
+ }
243
+ export interface PowOptions {
244
+ package?: string;
245
+ arguments: PowArguments | [
246
+ b: RawTransactionArgument<string>,
247
+ e: RawTransactionArgument<number | bigint>
248
+ ];
249
+ }
250
+ export declare function pow(options: PowOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
251
+ export interface FloorArguments {
252
+ v: RawTransactionArgument<string>;
253
+ }
254
+ export interface FloorOptions {
255
+ package?: string;
256
+ arguments: FloorArguments | [
257
+ v: RawTransactionArgument<string>
258
+ ];
259
+ }
260
+ export declare function floor(options: FloorOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
261
+ export interface CeilArguments {
262
+ v: RawTransactionArgument<string>;
263
+ }
264
+ export interface CeilOptions {
265
+ package?: string;
266
+ arguments: CeilArguments | [
267
+ v: RawTransactionArgument<string>
268
+ ];
269
+ }
270
+ export declare function ceil(options: CeilOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
271
+ export interface RoundArguments {
272
+ v: RawTransactionArgument<string>;
273
+ }
274
+ export interface RoundOptions {
275
+ package?: string;
276
+ arguments: RoundArguments | [
277
+ v: RawTransactionArgument<string>
278
+ ];
279
+ }
280
+ export declare function round(options: RoundOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
281
+ export interface EqArguments {
282
+ a: RawTransactionArgument<string>;
283
+ b: RawTransactionArgument<string>;
284
+ }
285
+ export interface EqOptions {
286
+ package?: string;
287
+ arguments: EqArguments | [
288
+ a: RawTransactionArgument<string>,
289
+ b: RawTransactionArgument<string>
290
+ ];
291
+ }
292
+ export declare function eq(options: EqOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
293
+ export interface GtArguments {
294
+ a: RawTransactionArgument<string>;
295
+ b: RawTransactionArgument<string>;
296
+ }
297
+ export interface GtOptions {
298
+ package?: string;
299
+ arguments: GtArguments | [
300
+ a: RawTransactionArgument<string>,
301
+ b: RawTransactionArgument<string>
302
+ ];
303
+ }
304
+ export declare function gt(options: GtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
305
+ export interface GteArguments {
306
+ a: RawTransactionArgument<string>;
307
+ b: RawTransactionArgument<string>;
308
+ }
309
+ export interface GteOptions {
310
+ package?: string;
311
+ arguments: GteArguments | [
312
+ a: RawTransactionArgument<string>,
313
+ b: RawTransactionArgument<string>
314
+ ];
315
+ }
316
+ export declare function gte(options: GteOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
317
+ export interface LtArguments {
318
+ a: RawTransactionArgument<string>;
319
+ b: RawTransactionArgument<string>;
320
+ }
321
+ export interface LtOptions {
322
+ package?: string;
323
+ arguments: LtArguments | [
324
+ a: RawTransactionArgument<string>,
325
+ b: RawTransactionArgument<string>
326
+ ];
327
+ }
328
+ export declare function lt(options: LtOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
329
+ export interface LteArguments {
330
+ a: RawTransactionArgument<string>;
331
+ b: RawTransactionArgument<string>;
332
+ }
333
+ export interface LteOptions {
334
+ package?: string;
335
+ arguments: LteArguments | [
336
+ a: RawTransactionArgument<string>,
337
+ b: RawTransactionArgument<string>
338
+ ];
339
+ }
340
+ export declare function lte(options: LteOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
341
+ export interface MinArguments {
342
+ a: RawTransactionArgument<string>;
343
+ b: RawTransactionArgument<string>;
344
+ }
345
+ export interface MinOptions {
346
+ package?: string;
347
+ arguments: MinArguments | [
348
+ a: RawTransactionArgument<string>,
349
+ b: RawTransactionArgument<string>
350
+ ];
351
+ }
352
+ export declare function min(options: MinOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
353
+ export interface MaxArguments {
354
+ a: RawTransactionArgument<string>;
355
+ b: RawTransactionArgument<string>;
356
+ }
357
+ export interface MaxOptions {
358
+ package?: string;
359
+ arguments: MaxArguments | [
360
+ a: RawTransactionArgument<string>,
361
+ b: RawTransactionArgument<string>
362
+ ];
363
+ }
364
+ export declare function max(options: MaxOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
365
+ export interface DiffArguments {
366
+ a: RawTransactionArgument<string>;
367
+ b: RawTransactionArgument<string>;
368
+ }
369
+ export interface DiffOptions {
370
+ package?: string;
371
+ arguments: DiffArguments | [
372
+ a: RawTransactionArgument<string>,
373
+ b: RawTransactionArgument<string>
374
+ ];
375
+ }
376
+ export declare function diff(options: DiffOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
377
+ export interface PrecisionOptions {
378
+ package?: string;
379
+ arguments?: [
380
+ ];
381
+ }
382
+ export declare function precision(options?: PrecisionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;