@mysten/kiosk 1.1.0 → 1.1.1

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 (74) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/contracts/0x2/bag.mjs.map +1 -1
  3. package/dist/contracts/0x2/balance.mjs +1 -5
  4. package/dist/contracts/0x2/balance.mjs.map +1 -1
  5. package/dist/contracts/0x2/kiosk.mjs +4 -4
  6. package/dist/contracts/0x2/kiosk.mjs.map +1 -1
  7. package/dist/contracts/0x2/kiosk_extension.mjs +1 -1
  8. package/dist/contracts/0x2/kiosk_extension.mjs.map +1 -1
  9. package/dist/contracts/0x2/transfer_policy.mjs +6 -6
  10. package/dist/contracts/0x2/transfer_policy.mjs.map +1 -1
  11. package/dist/contracts/0x2/vec_set.mjs.map +1 -1
  12. package/package.json +8 -7
  13. package/src/contracts/0x2/bag.ts +2 -181
  14. package/src/contracts/0x2/balance.ts +3 -260
  15. package/src/contracts/0x2/kiosk.ts +4 -4
  16. package/src/contracts/0x2/kiosk_extension.ts +1 -1
  17. package/src/contracts/0x2/transfer_policy.ts +6 -6
  18. package/src/contracts/0x2/vec_set.ts +1 -198
  19. package/src/contracts/kiosk/witness_rule.ts +1 -1
  20. package/src/contracts/0x2/accumulator.ts +0 -24
  21. package/src/contracts/0x2/accumulator_metadata.ts +0 -38
  22. package/src/contracts/0x2/accumulator_settlement.ts +0 -14
  23. package/src/contracts/0x2/address.ts +0 -145
  24. package/src/contracts/0x2/address_alias.ts +0 -92
  25. package/src/contracts/0x2/authenticator_state.ts +0 -44
  26. package/src/contracts/0x2/bcs.ts +0 -495
  27. package/src/contracts/0x2/bls12381.ts +0 -717
  28. package/src/contracts/0x2/borrow.ts +0 -99
  29. package/src/contracts/0x2/clock.ts +0 -30
  30. package/src/contracts/0x2/coin.ts +0 -977
  31. package/src/contracts/0x2/coin_registry.ts +0 -874
  32. package/src/contracts/0x2/config.ts +0 -30
  33. package/src/contracts/0x2/deny_list.ts +0 -55
  34. package/src/contracts/0x2/derived_object.ts +0 -95
  35. package/src/contracts/0x2/display.ts +0 -258
  36. package/src/contracts/0x2/dynamic_field.ts +0 -171
  37. package/src/contracts/0x2/dynamic_object_field.ts +0 -167
  38. package/src/contracts/0x2/ecdsa_k1.ts +0 -65
  39. package/src/contracts/0x2/ecdsa_r1.ts +0 -49
  40. package/src/contracts/0x2/ecvrf.ts +0 -29
  41. package/src/contracts/0x2/ed25519.ts +0 -25
  42. package/src/contracts/0x2/event.ts +0 -42
  43. package/src/contracts/0x2/funds_accumulator.ts +0 -86
  44. package/src/contracts/0x2/groth16.ts +0 -171
  45. package/src/contracts/0x2/group_ops.ts +0 -49
  46. package/src/contracts/0x2/hash.ts +0 -37
  47. package/src/contracts/0x2/hex.ts +0 -37
  48. package/src/contracts/0x2/hmac.ts +0 -21
  49. package/src/contracts/0x2/linked_table.ts +0 -354
  50. package/src/contracts/0x2/math.ts +0 -117
  51. package/src/contracts/0x2/nitro_attestation.ts +0 -186
  52. package/src/contracts/0x2/object.ts +0 -249
  53. package/src/contracts/0x2/object_bag.ts +0 -210
  54. package/src/contracts/0x2/object_table.ts +0 -200
  55. package/src/contracts/0x2/package.ts +0 -414
  56. package/src/contracts/0x2/party.ts +0 -37
  57. package/src/contracts/0x2/pay.ts +0 -153
  58. package/src/contracts/0x2/poseidon.ts +0 -21
  59. package/src/contracts/0x2/priority_queue.ts +0 -139
  60. package/src/contracts/0x2/random.ts +0 -294
  61. package/src/contracts/0x2/sui.ts +0 -29
  62. package/src/contracts/0x2/table.ts +0 -200
  63. package/src/contracts/0x2/table_vec.ts +0 -232
  64. package/src/contracts/0x2/token.ts +0 -873
  65. package/src/contracts/0x2/transfer.ts +0 -216
  66. package/src/contracts/0x2/tx_context.ts +0 -129
  67. package/src/contracts/0x2/types.ts +0 -24
  68. package/src/contracts/0x2/url.ts +0 -77
  69. package/src/contracts/0x2/vdf.ts +0 -45
  70. package/src/contracts/0x2/vec_map.ts +0 -401
  71. package/src/contracts/0x2/versioned.ts +0 -153
  72. package/src/contracts/0x2/zklogin_verified_id.ts +0 -172
  73. package/src/contracts/0x2/zklogin_verified_issuer.ts +0 -99
  74. package/src/contracts/kiosk/deps/sui/object.ts +0 -15
@@ -1,200 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
- import { bcs, type BcsType } from '@mysten/sui/bcs';
6
- import { type Transaction } from '@mysten/sui/transactions';
7
- const $moduleName = '0x2::table';
8
- export const Table = new MoveStruct({
9
- name: `${$moduleName}::Table`,
10
- fields: {
11
- id: bcs.Address,
12
- size: bcs.u64(),
13
- },
14
- });
15
- export interface NewOptions {
16
- package?: string;
17
- arguments?: [];
18
- typeArguments: [string, string];
19
- }
20
- export function _new(options: NewOptions) {
21
- const packageAddress =
22
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
23
- return (tx: Transaction) =>
24
- tx.moveCall({
25
- package: packageAddress,
26
- module: 'table',
27
- function: 'new',
28
- typeArguments: options.typeArguments,
29
- });
30
- }
31
- export interface AddOptions<T0 extends BcsType<any>, T1 extends BcsType<any>> {
32
- package?: string;
33
- arguments: [
34
- RawTransactionArgument<string>,
35
- RawTransactionArgument<T0>,
36
- RawTransactionArgument<T1>,
37
- ];
38
- typeArguments: [string, string];
39
- }
40
- export function add<T0 extends BcsType<any>, T1 extends BcsType<any>>(options: AddOptions<T0, T1>) {
41
- const packageAddress =
42
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
43
- const argumentsTypes = [
44
- null,
45
- `${options.typeArguments[0]}`,
46
- `${options.typeArguments[1]}`,
47
- ] satisfies (string | null)[];
48
- return (tx: Transaction) =>
49
- tx.moveCall({
50
- package: packageAddress,
51
- module: 'table',
52
- function: 'add',
53
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
54
- typeArguments: options.typeArguments,
55
- });
56
- }
57
- export interface BorrowOptions<T0 extends BcsType<any>> {
58
- package?: string;
59
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<T0>];
60
- typeArguments: [string, string];
61
- }
62
- export function borrow<T0 extends BcsType<any>>(options: BorrowOptions<T0>) {
63
- const packageAddress =
64
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
65
- const argumentsTypes = [null, `${options.typeArguments[0]}`] satisfies (string | null)[];
66
- return (tx: Transaction) =>
67
- tx.moveCall({
68
- package: packageAddress,
69
- module: 'table',
70
- function: 'borrow',
71
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
72
- typeArguments: options.typeArguments,
73
- });
74
- }
75
- export interface BorrowMutOptions<T0 extends BcsType<any>> {
76
- package?: string;
77
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<T0>];
78
- typeArguments: [string, string];
79
- }
80
- export function borrowMut<T0 extends BcsType<any>>(options: BorrowMutOptions<T0>) {
81
- const packageAddress =
82
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
83
- const argumentsTypes = [null, `${options.typeArguments[0]}`] satisfies (string | null)[];
84
- return (tx: Transaction) =>
85
- tx.moveCall({
86
- package: packageAddress,
87
- module: 'table',
88
- function: 'borrow_mut',
89
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
90
- typeArguments: options.typeArguments,
91
- });
92
- }
93
- export interface RemoveOptions<T0 extends BcsType<any>> {
94
- package?: string;
95
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<T0>];
96
- typeArguments: [string, string];
97
- }
98
- export function remove<T0 extends BcsType<any>>(options: RemoveOptions<T0>) {
99
- const packageAddress =
100
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
101
- const argumentsTypes = [null, `${options.typeArguments[0]}`] satisfies (string | null)[];
102
- return (tx: Transaction) =>
103
- tx.moveCall({
104
- package: packageAddress,
105
- module: 'table',
106
- function: 'remove',
107
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
108
- typeArguments: options.typeArguments,
109
- });
110
- }
111
- export interface ContainsOptions<T0 extends BcsType<any>> {
112
- package?: string;
113
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<T0>];
114
- typeArguments: [string, string];
115
- }
116
- export function contains<T0 extends BcsType<any>>(options: ContainsOptions<T0>) {
117
- const packageAddress =
118
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
119
- const argumentsTypes = [null, `${options.typeArguments[0]}`] satisfies (string | null)[];
120
- return (tx: Transaction) =>
121
- tx.moveCall({
122
- package: packageAddress,
123
- module: 'table',
124
- function: 'contains',
125
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
126
- typeArguments: options.typeArguments,
127
- });
128
- }
129
- export interface LengthOptions {
130
- package?: string;
131
- arguments: [RawTransactionArgument<string>];
132
- typeArguments: [string, string];
133
- }
134
- export function length(options: LengthOptions) {
135
- const packageAddress =
136
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
137
- const argumentsTypes = [null] satisfies (string | null)[];
138
- return (tx: Transaction) =>
139
- tx.moveCall({
140
- package: packageAddress,
141
- module: 'table',
142
- function: 'length',
143
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
144
- typeArguments: options.typeArguments,
145
- });
146
- }
147
- export interface IsEmptyOptions {
148
- package?: string;
149
- arguments: [RawTransactionArgument<string>];
150
- typeArguments: [string, string];
151
- }
152
- export function isEmpty(options: IsEmptyOptions) {
153
- const packageAddress =
154
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
155
- const argumentsTypes = [null] satisfies (string | null)[];
156
- return (tx: Transaction) =>
157
- tx.moveCall({
158
- package: packageAddress,
159
- module: 'table',
160
- function: 'is_empty',
161
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
162
- typeArguments: options.typeArguments,
163
- });
164
- }
165
- export interface DestroyEmptyOptions {
166
- package?: string;
167
- arguments: [RawTransactionArgument<string>];
168
- typeArguments: [string, string];
169
- }
170
- export function destroyEmpty(options: DestroyEmptyOptions) {
171
- const packageAddress =
172
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
173
- const argumentsTypes = [null] satisfies (string | null)[];
174
- return (tx: Transaction) =>
175
- tx.moveCall({
176
- package: packageAddress,
177
- module: 'table',
178
- function: 'destroy_empty',
179
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
180
- typeArguments: options.typeArguments,
181
- });
182
- }
183
- export interface DropOptions {
184
- package?: string;
185
- arguments: [RawTransactionArgument<string>];
186
- typeArguments: [string, string];
187
- }
188
- export function drop(options: DropOptions) {
189
- const packageAddress =
190
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
191
- const argumentsTypes = [null] satisfies (string | null)[];
192
- return (tx: Transaction) =>
193
- tx.moveCall({
194
- package: packageAddress,
195
- module: 'table',
196
- function: 'drop',
197
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
198
- typeArguments: options.typeArguments,
199
- });
200
- }
@@ -1,232 +0,0 @@
1
- /**************************************************************
2
- * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
- **************************************************************/
4
- import { MoveStruct, normalizeMoveArguments, type RawTransactionArgument } from '../utils/index.js';
5
- import { type Transaction } from '@mysten/sui/transactions';
6
- import { type BcsType } from '@mysten/sui/bcs';
7
- import * as table from './table.js';
8
- const $moduleName = '0x2::table_vec';
9
- export const TableVec = new MoveStruct({
10
- name: `${$moduleName}::TableVec`,
11
- fields: {
12
- contents: table.Table,
13
- },
14
- });
15
- export interface EmptyOptions {
16
- package?: string;
17
- arguments?: [];
18
- typeArguments: [string];
19
- }
20
- export function empty(options: EmptyOptions) {
21
- const packageAddress =
22
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
23
- return (tx: Transaction) =>
24
- tx.moveCall({
25
- package: packageAddress,
26
- module: 'table_vec',
27
- function: 'empty',
28
- typeArguments: options.typeArguments,
29
- });
30
- }
31
- export interface SingletonOptions<T0 extends BcsType<any>> {
32
- package?: string;
33
- arguments: [RawTransactionArgument<T0>];
34
- typeArguments: [string];
35
- }
36
- export function singleton<T0 extends BcsType<any>>(options: SingletonOptions<T0>) {
37
- const packageAddress =
38
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
39
- const argumentsTypes = [`${options.typeArguments[0]}`] satisfies (string | null)[];
40
- return (tx: Transaction) =>
41
- tx.moveCall({
42
- package: packageAddress,
43
- module: 'table_vec',
44
- function: 'singleton',
45
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
46
- typeArguments: options.typeArguments,
47
- });
48
- }
49
- export interface LengthOptions {
50
- package?: string;
51
- arguments: [RawTransactionArgument<string>];
52
- typeArguments: [string];
53
- }
54
- export function length(options: LengthOptions) {
55
- const packageAddress =
56
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
57
- const argumentsTypes = [null] satisfies (string | null)[];
58
- return (tx: Transaction) =>
59
- tx.moveCall({
60
- package: packageAddress,
61
- module: 'table_vec',
62
- function: 'length',
63
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
64
- typeArguments: options.typeArguments,
65
- });
66
- }
67
- export interface IsEmptyOptions {
68
- package?: string;
69
- arguments: [RawTransactionArgument<string>];
70
- typeArguments: [string];
71
- }
72
- export function isEmpty(options: IsEmptyOptions) {
73
- const packageAddress =
74
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
75
- const argumentsTypes = [null] satisfies (string | null)[];
76
- return (tx: Transaction) =>
77
- tx.moveCall({
78
- package: packageAddress,
79
- module: 'table_vec',
80
- function: 'is_empty',
81
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
82
- typeArguments: options.typeArguments,
83
- });
84
- }
85
- export interface BorrowOptions {
86
- package?: string;
87
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<number | bigint>];
88
- typeArguments: [string];
89
- }
90
- export function borrow(options: BorrowOptions) {
91
- const packageAddress =
92
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
93
- const argumentsTypes = [null, 'u64'] satisfies (string | null)[];
94
- return (tx: Transaction) =>
95
- tx.moveCall({
96
- package: packageAddress,
97
- module: 'table_vec',
98
- function: 'borrow',
99
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
100
- typeArguments: options.typeArguments,
101
- });
102
- }
103
- export interface PushBackOptions<T0 extends BcsType<any>> {
104
- package?: string;
105
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<T0>];
106
- typeArguments: [string];
107
- }
108
- export function pushBack<T0 extends BcsType<any>>(options: PushBackOptions<T0>) {
109
- const packageAddress =
110
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
111
- const argumentsTypes = [null, `${options.typeArguments[0]}`] satisfies (string | null)[];
112
- return (tx: Transaction) =>
113
- tx.moveCall({
114
- package: packageAddress,
115
- module: 'table_vec',
116
- function: 'push_back',
117
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
118
- typeArguments: options.typeArguments,
119
- });
120
- }
121
- export interface BorrowMutOptions {
122
- package?: string;
123
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<number | bigint>];
124
- typeArguments: [string];
125
- }
126
- export function borrowMut(options: BorrowMutOptions) {
127
- const packageAddress =
128
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
129
- const argumentsTypes = [null, 'u64'] satisfies (string | null)[];
130
- return (tx: Transaction) =>
131
- tx.moveCall({
132
- package: packageAddress,
133
- module: 'table_vec',
134
- function: 'borrow_mut',
135
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
136
- typeArguments: options.typeArguments,
137
- });
138
- }
139
- export interface PopBackOptions {
140
- package?: string;
141
- arguments: [RawTransactionArgument<string>];
142
- typeArguments: [string];
143
- }
144
- export function popBack(options: PopBackOptions) {
145
- const packageAddress =
146
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
147
- const argumentsTypes = [null] satisfies (string | null)[];
148
- return (tx: Transaction) =>
149
- tx.moveCall({
150
- package: packageAddress,
151
- module: 'table_vec',
152
- function: 'pop_back',
153
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
154
- typeArguments: options.typeArguments,
155
- });
156
- }
157
- export interface DestroyEmptyOptions {
158
- package?: string;
159
- arguments: [RawTransactionArgument<string>];
160
- typeArguments: [string];
161
- }
162
- export function destroyEmpty(options: DestroyEmptyOptions) {
163
- const packageAddress =
164
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
165
- const argumentsTypes = [null] satisfies (string | null)[];
166
- return (tx: Transaction) =>
167
- tx.moveCall({
168
- package: packageAddress,
169
- module: 'table_vec',
170
- function: 'destroy_empty',
171
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
172
- typeArguments: options.typeArguments,
173
- });
174
- }
175
- export interface DropOptions {
176
- package?: string;
177
- arguments: [RawTransactionArgument<string>];
178
- typeArguments: [string];
179
- }
180
- export function drop(options: DropOptions) {
181
- const packageAddress =
182
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
183
- const argumentsTypes = [null] satisfies (string | null)[];
184
- return (tx: Transaction) =>
185
- tx.moveCall({
186
- package: packageAddress,
187
- module: 'table_vec',
188
- function: 'drop',
189
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
190
- typeArguments: options.typeArguments,
191
- });
192
- }
193
- export interface SwapOptions {
194
- package?: string;
195
- arguments: [
196
- RawTransactionArgument<string>,
197
- RawTransactionArgument<number | bigint>,
198
- RawTransactionArgument<number | bigint>,
199
- ];
200
- typeArguments: [string];
201
- }
202
- export function swap(options: SwapOptions) {
203
- const packageAddress =
204
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
205
- const argumentsTypes = [null, 'u64', 'u64'] satisfies (string | null)[];
206
- return (tx: Transaction) =>
207
- tx.moveCall({
208
- package: packageAddress,
209
- module: 'table_vec',
210
- function: 'swap',
211
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
212
- typeArguments: options.typeArguments,
213
- });
214
- }
215
- export interface SwapRemoveOptions {
216
- package?: string;
217
- arguments: [RawTransactionArgument<string>, RawTransactionArgument<number | bigint>];
218
- typeArguments: [string];
219
- }
220
- export function swapRemove(options: SwapRemoveOptions) {
221
- const packageAddress =
222
- options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
223
- const argumentsTypes = [null, 'u64'] satisfies (string | null)[];
224
- return (tx: Transaction) =>
225
- tx.moveCall({
226
- package: packageAddress,
227
- module: 'table_vec',
228
- function: 'swap_remove',
229
- arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
230
- typeArguments: options.typeArguments,
231
- });
232
- }