@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,58 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, type RawTransactionArgument } from '../utils/index.ts';
5
+ import { type Transaction } from '@mysten/sui/transactions';
6
+ export declare const Outcome: MoveEnum<{
7
+ No: null;
8
+ Yes: null;
9
+ Invalid: null;
10
+ }, "@waterx/prediction::outcome::Outcome">;
11
+ export interface NoOptions {
12
+ package?: string;
13
+ arguments?: [
14
+ ];
15
+ }
16
+ export declare function no(options?: NoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
17
+ export interface YesOptions {
18
+ package?: string;
19
+ arguments?: [
20
+ ];
21
+ }
22
+ export declare function yes(options?: YesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
23
+ export interface InvalidOptions {
24
+ package?: string;
25
+ arguments?: [
26
+ ];
27
+ }
28
+ export declare function invalid(options?: InvalidOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
29
+ export interface IsNoArguments {
30
+ outcome: RawTransactionArgument<string>;
31
+ }
32
+ export interface IsNoOptions {
33
+ package?: string;
34
+ arguments: IsNoArguments | [
35
+ outcome: RawTransactionArgument<string>
36
+ ];
37
+ }
38
+ export declare function isNo(options: IsNoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
39
+ export interface IsYesArguments {
40
+ outcome: RawTransactionArgument<string>;
41
+ }
42
+ export interface IsYesOptions {
43
+ package?: string;
44
+ arguments: IsYesArguments | [
45
+ outcome: RawTransactionArgument<string>
46
+ ];
47
+ }
48
+ export declare function isYes(options: IsYesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
49
+ export interface IsInvalidArguments {
50
+ outcome: RawTransactionArgument<string>;
51
+ }
52
+ export interface IsInvalidOptions {
53
+ package?: string;
54
+ arguments: IsInvalidArguments | [
55
+ outcome: RawTransactionArgument<string>
56
+ ];
57
+ }
58
+ export declare function isInvalid(options: IsInvalidOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
@@ -0,0 +1,73 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, normalizeMoveArguments } from "../utils/index.js";
5
+ const $moduleName = '@waterx/prediction::outcome';
6
+ export const Outcome = new MoveEnum({ name: `${$moduleName}::Outcome`, fields: {
7
+ No: null,
8
+ Yes: null,
9
+ Invalid: null
10
+ } });
11
+ export function no(options = {}) {
12
+ const packageAddress = options.package ?? '@waterx/prediction';
13
+ return (tx) => tx.moveCall({
14
+ package: packageAddress,
15
+ module: 'outcome',
16
+ function: 'no',
17
+ });
18
+ }
19
+ export function yes(options = {}) {
20
+ const packageAddress = options.package ?? '@waterx/prediction';
21
+ return (tx) => tx.moveCall({
22
+ package: packageAddress,
23
+ module: 'outcome',
24
+ function: 'yes',
25
+ });
26
+ }
27
+ export function invalid(options = {}) {
28
+ const packageAddress = options.package ?? '@waterx/prediction';
29
+ return (tx) => tx.moveCall({
30
+ package: packageAddress,
31
+ module: 'outcome',
32
+ function: 'invalid',
33
+ });
34
+ }
35
+ export function isNo(options) {
36
+ const packageAddress = options.package ?? '@waterx/prediction';
37
+ const argumentsTypes = [
38
+ null
39
+ ];
40
+ const parameterNames = ["outcome"];
41
+ return (tx) => tx.moveCall({
42
+ package: packageAddress,
43
+ module: 'outcome',
44
+ function: 'is_no',
45
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
46
+ });
47
+ }
48
+ export function isYes(options) {
49
+ const packageAddress = options.package ?? '@waterx/prediction';
50
+ const argumentsTypes = [
51
+ null
52
+ ];
53
+ const parameterNames = ["outcome"];
54
+ return (tx) => tx.moveCall({
55
+ package: packageAddress,
56
+ module: 'outcome',
57
+ function: 'is_yes',
58
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
59
+ });
60
+ }
61
+ export function isInvalid(options) {
62
+ const packageAddress = options.package ?? '@waterx/prediction';
63
+ const argumentsTypes = [
64
+ null
65
+ ];
66
+ const parameterNames = ["outcome"];
67
+ return (tx) => tx.moveCall({
68
+ package: packageAddress,
69
+ module: 'outcome',
70
+ function: 'is_invalid',
71
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
72
+ });
73
+ }
@@ -0,0 +1,150 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, MoveStruct, type RawTransactionArgument } from '../utils/index.ts';
5
+ import { type Transaction } from '@mysten/sui/transactions';
6
+ /**
7
+ * Which outcome the user predicted. The broker module routes fills externally; it
8
+ * does not expose a native CLOB direction.
9
+ */
10
+ export declare const Selection: MoveEnum<{
11
+ No: null;
12
+ Yes: null;
13
+ }, "@waterx/prediction::position::Selection">;
14
+ export declare const Position: MoveStruct<any, any>;
15
+ export declare const Status: MoveEnum<{
16
+ Open: null;
17
+ PendingClose: null;
18
+ }, "@waterx/prediction::position::Status">;
19
+ export interface AccountIdArguments {
20
+ position: RawTransactionArgument<string>;
21
+ }
22
+ export interface AccountIdOptions {
23
+ package?: string;
24
+ arguments: AccountIdArguments | [
25
+ position: RawTransactionArgument<string>
26
+ ];
27
+ }
28
+ export declare function accountId(options: AccountIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
29
+ export interface MarketIdArguments {
30
+ position: RawTransactionArgument<string>;
31
+ }
32
+ export interface MarketIdOptions {
33
+ package?: string;
34
+ arguments: MarketIdArguments | [
35
+ position: RawTransactionArgument<string>
36
+ ];
37
+ }
38
+ export declare function marketId(options: MarketIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
39
+ export interface SelectionArguments {
40
+ position: RawTransactionArgument<string>;
41
+ }
42
+ export interface SelectionOptions {
43
+ package?: string;
44
+ arguments: SelectionArguments | [
45
+ position: RawTransactionArgument<string>
46
+ ];
47
+ }
48
+ export declare function selection(options: SelectionOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
49
+ export interface FilledSharesArguments {
50
+ position: RawTransactionArgument<string>;
51
+ }
52
+ export interface FilledSharesOptions {
53
+ package?: string;
54
+ arguments: FilledSharesArguments | [
55
+ position: RawTransactionArgument<string>
56
+ ];
57
+ }
58
+ export declare function filledShares(options: FilledSharesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
59
+ export interface FilledCostArguments {
60
+ position: RawTransactionArgument<string>;
61
+ }
62
+ export interface FilledCostOptions {
63
+ package?: string;
64
+ arguments: FilledCostArguments | [
65
+ position: RawTransactionArgument<string>
66
+ ];
67
+ }
68
+ export declare function filledCost(options: FilledCostOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
69
+ export interface CloseOrderIdArguments {
70
+ position: RawTransactionArgument<string>;
71
+ }
72
+ export interface CloseOrderIdOptions {
73
+ package?: string;
74
+ arguments: CloseOrderIdArguments | [
75
+ position: RawTransactionArgument<string>
76
+ ];
77
+ }
78
+ export declare function closeOrderId(options: CloseOrderIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
79
+ export interface HasPendingCloseArguments {
80
+ position: RawTransactionArgument<string>;
81
+ }
82
+ export interface HasPendingCloseOptions {
83
+ package?: string;
84
+ arguments: HasPendingCloseArguments | [
85
+ position: RawTransactionArgument<string>
86
+ ];
87
+ }
88
+ export declare function hasPendingClose(options: HasPendingCloseOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
89
+ export interface StatusArguments {
90
+ position: RawTransactionArgument<string>;
91
+ }
92
+ export interface StatusOptions {
93
+ package?: string;
94
+ arguments: StatusArguments | [
95
+ position: RawTransactionArgument<string>
96
+ ];
97
+ }
98
+ export declare function status(options: StatusOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
99
+ export interface SelectionNoOptions {
100
+ package?: string;
101
+ arguments?: [
102
+ ];
103
+ }
104
+ export declare function selectionNo(options?: SelectionNoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
105
+ export interface SelectionYesOptions {
106
+ package?: string;
107
+ arguments?: [
108
+ ];
109
+ }
110
+ export declare function selectionYes(options?: SelectionYesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
111
+ export interface StatusIsOpenArguments {
112
+ s: RawTransactionArgument<string>;
113
+ }
114
+ export interface StatusIsOpenOptions {
115
+ package?: string;
116
+ arguments: StatusIsOpenArguments | [
117
+ s: RawTransactionArgument<string>
118
+ ];
119
+ }
120
+ export declare function statusIsOpen(options: StatusIsOpenOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
121
+ export interface StatusIsPendingCloseArguments {
122
+ s: RawTransactionArgument<string>;
123
+ }
124
+ export interface StatusIsPendingCloseOptions {
125
+ package?: string;
126
+ arguments: StatusIsPendingCloseArguments | [
127
+ s: RawTransactionArgument<string>
128
+ ];
129
+ }
130
+ export declare function statusIsPendingClose(options: StatusIsPendingCloseOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
131
+ export interface SelectionIsNoArguments {
132
+ s: RawTransactionArgument<string>;
133
+ }
134
+ export interface SelectionIsNoOptions {
135
+ package?: string;
136
+ arguments: SelectionIsNoArguments | [
137
+ s: RawTransactionArgument<string>
138
+ ];
139
+ }
140
+ export declare function selectionIsNo(options: SelectionIsNoOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
141
+ export interface SelectionIsYesArguments {
142
+ s: RawTransactionArgument<string>;
143
+ }
144
+ export interface SelectionIsYesOptions {
145
+ package?: string;
146
+ arguments: SelectionIsYesArguments | [
147
+ s: RawTransactionArgument<string>
148
+ ];
149
+ }
150
+ export declare function selectionIsYes(options: SelectionIsYesOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
@@ -0,0 +1,200 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveEnum, MoveStruct, normalizeMoveArguments } from "../utils/index.js";
5
+ import { bcs } from '@mysten/sui/bcs';
6
+ const $moduleName = '@waterx/prediction::position';
7
+ /**
8
+ * Which outcome the user predicted. The broker module routes fills externally; it
9
+ * does not expose a native CLOB direction.
10
+ */
11
+ export const Selection = new MoveEnum({ name: `${$moduleName}::Selection`, fields: {
12
+ No: null,
13
+ Yes: null
14
+ } });
15
+ export const Position = new MoveStruct({ name: `${$moduleName}::Position`, fields: {
16
+ /** Canonical waterx_account that owns this broker position. */
17
+ account_id: bcs.Address,
18
+ market_id: bcs.vector(bcs.u8()),
19
+ selection: Selection,
20
+ filled_shares: bcs.u64(),
21
+ filled_cost: bcs.u64(),
22
+ /** Set only while a close order is waiting for keeper execution. */
23
+ close_order_id: bcs.option(bcs.u64())
24
+ } });
25
+ export const Status = new MoveEnum({ name: `${$moduleName}::Status`, fields: {
26
+ Open: null,
27
+ PendingClose: null
28
+ } });
29
+ export function accountId(options) {
30
+ const packageAddress = options.package ?? '@waterx/prediction';
31
+ const argumentsTypes = [
32
+ null
33
+ ];
34
+ const parameterNames = ["position"];
35
+ return (tx) => tx.moveCall({
36
+ package: packageAddress,
37
+ module: 'position',
38
+ function: 'account_id',
39
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
40
+ });
41
+ }
42
+ export function marketId(options) {
43
+ const packageAddress = options.package ?? '@waterx/prediction';
44
+ const argumentsTypes = [
45
+ null
46
+ ];
47
+ const parameterNames = ["position"];
48
+ return (tx) => tx.moveCall({
49
+ package: packageAddress,
50
+ module: 'position',
51
+ function: 'market_id',
52
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
53
+ });
54
+ }
55
+ export function selection(options) {
56
+ const packageAddress = options.package ?? '@waterx/prediction';
57
+ const argumentsTypes = [
58
+ null
59
+ ];
60
+ const parameterNames = ["position"];
61
+ return (tx) => tx.moveCall({
62
+ package: packageAddress,
63
+ module: 'position',
64
+ function: 'selection',
65
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
66
+ });
67
+ }
68
+ export function filledShares(options) {
69
+ const packageAddress = options.package ?? '@waterx/prediction';
70
+ const argumentsTypes = [
71
+ null
72
+ ];
73
+ const parameterNames = ["position"];
74
+ return (tx) => tx.moveCall({
75
+ package: packageAddress,
76
+ module: 'position',
77
+ function: 'filled_shares',
78
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
79
+ });
80
+ }
81
+ export function filledCost(options) {
82
+ const packageAddress = options.package ?? '@waterx/prediction';
83
+ const argumentsTypes = [
84
+ null
85
+ ];
86
+ const parameterNames = ["position"];
87
+ return (tx) => tx.moveCall({
88
+ package: packageAddress,
89
+ module: 'position',
90
+ function: 'filled_cost',
91
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
92
+ });
93
+ }
94
+ export function closeOrderId(options) {
95
+ const packageAddress = options.package ?? '@waterx/prediction';
96
+ const argumentsTypes = [
97
+ null
98
+ ];
99
+ const parameterNames = ["position"];
100
+ return (tx) => tx.moveCall({
101
+ package: packageAddress,
102
+ module: 'position',
103
+ function: 'close_order_id',
104
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
105
+ });
106
+ }
107
+ export function hasPendingClose(options) {
108
+ const packageAddress = options.package ?? '@waterx/prediction';
109
+ const argumentsTypes = [
110
+ null
111
+ ];
112
+ const parameterNames = ["position"];
113
+ return (tx) => tx.moveCall({
114
+ package: packageAddress,
115
+ module: 'position',
116
+ function: 'has_pending_close',
117
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
118
+ });
119
+ }
120
+ export function status(options) {
121
+ const packageAddress = options.package ?? '@waterx/prediction';
122
+ const argumentsTypes = [
123
+ null
124
+ ];
125
+ const parameterNames = ["position"];
126
+ return (tx) => tx.moveCall({
127
+ package: packageAddress,
128
+ module: 'position',
129
+ function: 'status',
130
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
131
+ });
132
+ }
133
+ export function selectionNo(options = {}) {
134
+ const packageAddress = options.package ?? '@waterx/prediction';
135
+ return (tx) => tx.moveCall({
136
+ package: packageAddress,
137
+ module: 'position',
138
+ function: 'selection_no',
139
+ });
140
+ }
141
+ export function selectionYes(options = {}) {
142
+ const packageAddress = options.package ?? '@waterx/prediction';
143
+ return (tx) => tx.moveCall({
144
+ package: packageAddress,
145
+ module: 'position',
146
+ function: 'selection_yes',
147
+ });
148
+ }
149
+ export function statusIsOpen(options) {
150
+ const packageAddress = options.package ?? '@waterx/prediction';
151
+ const argumentsTypes = [
152
+ null
153
+ ];
154
+ const parameterNames = ["s"];
155
+ return (tx) => tx.moveCall({
156
+ package: packageAddress,
157
+ module: 'position',
158
+ function: 'status_is_open',
159
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
160
+ });
161
+ }
162
+ export function statusIsPendingClose(options) {
163
+ const packageAddress = options.package ?? '@waterx/prediction';
164
+ const argumentsTypes = [
165
+ null
166
+ ];
167
+ const parameterNames = ["s"];
168
+ return (tx) => tx.moveCall({
169
+ package: packageAddress,
170
+ module: 'position',
171
+ function: 'status_is_pending_close',
172
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
173
+ });
174
+ }
175
+ export function selectionIsNo(options) {
176
+ const packageAddress = options.package ?? '@waterx/prediction';
177
+ const argumentsTypes = [
178
+ null
179
+ ];
180
+ const parameterNames = ["s"];
181
+ return (tx) => tx.moveCall({
182
+ package: packageAddress,
183
+ module: 'position',
184
+ function: 'selection_is_no',
185
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
186
+ });
187
+ }
188
+ export function selectionIsYes(options) {
189
+ const packageAddress = options.package ?? '@waterx/prediction';
190
+ const argumentsTypes = [
191
+ null
192
+ ];
193
+ const parameterNames = ["s"];
194
+ return (tx) => tx.moveCall({
195
+ package: packageAddress,
196
+ module: 'position',
197
+ function: 'selection_is_yes',
198
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
199
+ });
200
+ }