@mysten/kiosk 0.14.5 → 1.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 (267) hide show
  1. package/CHANGELOG.md +112 -2
  2. package/dist/client/kiosk-client.d.mts +126 -0
  3. package/dist/client/kiosk-client.d.mts.map +1 -0
  4. package/dist/client/kiosk-client.mjs +124 -0
  5. package/dist/client/kiosk-client.mjs.map +1 -0
  6. package/dist/client/kiosk-transaction.d.mts +236 -0
  7. package/dist/client/kiosk-transaction.d.mts.map +1 -0
  8. package/dist/client/kiosk-transaction.mjs +472 -0
  9. package/dist/client/kiosk-transaction.mjs.map +1 -0
  10. package/dist/client/tp-transaction.d.mts +139 -0
  11. package/dist/client/tp-transaction.d.mts.map +1 -0
  12. package/dist/client/tp-transaction.mjs +273 -0
  13. package/dist/client/tp-transaction.mjs.map +1 -0
  14. package/dist/constants.d.mts +42 -0
  15. package/dist/constants.d.mts.map +1 -0
  16. package/dist/constants.mjs +62 -0
  17. package/dist/constants.mjs.map +1 -0
  18. package/dist/contracts/0x2/bag.mjs +19 -0
  19. package/dist/contracts/0x2/bag.mjs.map +1 -0
  20. package/dist/contracts/0x2/balance.mjs +20 -0
  21. package/dist/contracts/0x2/balance.mjs.map +1 -0
  22. package/dist/contracts/0x2/deps/0x0000000000000000000000000000000000000000000000000000000000000001/type_name.mjs +16 -0
  23. package/dist/contracts/0x2/deps/0x0000000000000000000000000000000000000000000000000000000000000001/type_name.mjs.map +1 -0
  24. package/dist/contracts/0x2/kiosk.mjs +244 -0
  25. package/dist/contracts/0x2/kiosk.mjs.map +1 -0
  26. package/dist/contracts/0x2/kiosk_extension.mjs +25 -0
  27. package/dist/contracts/0x2/kiosk_extension.mjs.map +1 -0
  28. package/dist/contracts/0x2/transfer_policy.mjs +99 -0
  29. package/dist/contracts/0x2/transfer_policy.mjs.map +1 -0
  30. package/dist/contracts/0x2/vec_set.mjs +18 -0
  31. package/dist/contracts/0x2/vec_set.mjs.map +1 -0
  32. package/dist/contracts/kiosk/deps/sui/kiosk.mjs +98 -0
  33. package/dist/contracts/kiosk/deps/sui/kiosk.mjs.map +1 -0
  34. package/dist/contracts/kiosk/floor_price_rule.mjs +70 -0
  35. package/dist/contracts/kiosk/floor_price_rule.mjs.map +1 -0
  36. package/dist/contracts/kiosk/kiosk_lock_rule.mjs +72 -0
  37. package/dist/contracts/kiosk/kiosk_lock_rule.mjs.map +1 -0
  38. package/dist/contracts/kiosk/personal_kiosk.mjs +102 -0
  39. package/dist/contracts/kiosk/personal_kiosk.mjs.map +1 -0
  40. package/dist/contracts/kiosk/personal_kiosk_rule.mjs +66 -0
  41. package/dist/contracts/kiosk/personal_kiosk_rule.mjs.map +1 -0
  42. package/dist/contracts/kiosk/royalty_rule.mjs +115 -0
  43. package/dist/contracts/kiosk/royalty_rule.mjs.map +1 -0
  44. package/dist/contracts/utils/index.mjs +118 -0
  45. package/dist/contracts/utils/index.mjs.map +1 -0
  46. package/dist/index.d.mts +9 -0
  47. package/dist/index.mjs +9 -0
  48. package/dist/query/client-utils.mjs +30 -0
  49. package/dist/query/client-utils.mjs.map +1 -0
  50. package/dist/query/kiosk.mjs +154 -0
  51. package/dist/query/kiosk.mjs.map +1 -0
  52. package/dist/query/transfer-policy.mjs +110 -0
  53. package/dist/query/transfer-policy.mjs.map +1 -0
  54. package/dist/tx/kiosk.mjs +20 -0
  55. package/dist/tx/kiosk.mjs.map +1 -0
  56. package/dist/tx/rules/resolve.mjs +114 -0
  57. package/dist/tx/rules/resolve.mjs.map +1 -0
  58. package/dist/tx/transfer-policy.mjs +38 -0
  59. package/dist/tx/transfer-policy.mjs.map +1 -0
  60. package/dist/types/index.d.mts +23 -0
  61. package/dist/types/index.d.mts.map +1 -0
  62. package/dist/types/kiosk.d.mts +165 -0
  63. package/dist/types/kiosk.d.mts.map +1 -0
  64. package/dist/types/kiosk.mjs +21 -0
  65. package/dist/types/kiosk.mjs.map +1 -0
  66. package/dist/types/transfer-policy.d.mts +56 -0
  67. package/dist/types/transfer-policy.d.mts.map +1 -0
  68. package/dist/types/transfer-policy.mjs +19 -0
  69. package/dist/types/transfer-policy.mjs.map +1 -0
  70. package/dist/utils.d.mts +45 -0
  71. package/dist/utils.d.mts.map +1 -0
  72. package/dist/utils.mjs +156 -0
  73. package/dist/utils.mjs.map +1 -0
  74. package/package.json +31 -20
  75. package/src/client/kiosk-client.ts +42 -5
  76. package/src/client/kiosk-transaction.ts +144 -65
  77. package/src/client/tp-transaction.ts +149 -95
  78. package/src/constants.ts +19 -24
  79. package/src/contracts/0x2/accumulator.ts +24 -0
  80. package/src/contracts/0x2/accumulator_metadata.ts +38 -0
  81. package/src/contracts/0x2/accumulator_settlement.ts +14 -0
  82. package/src/contracts/0x2/address.ts +145 -0
  83. package/src/contracts/0x2/address_alias.ts +92 -0
  84. package/src/contracts/0x2/authenticator_state.ts +44 -0
  85. package/src/contracts/0x2/bag.ts +192 -0
  86. package/src/contracts/0x2/balance.ts +269 -0
  87. package/src/contracts/0x2/bcs.ts +495 -0
  88. package/src/contracts/0x2/bls12381.ts +717 -0
  89. package/src/contracts/0x2/borrow.ts +99 -0
  90. package/src/contracts/0x2/clock.ts +30 -0
  91. package/src/contracts/0x2/coin.ts +977 -0
  92. package/src/contracts/0x2/coin_registry.ts +874 -0
  93. package/src/contracts/0x2/config.ts +30 -0
  94. package/src/contracts/0x2/deny_list.ts +55 -0
  95. package/src/contracts/0x2/deps/0x0000000000000000000000000000000000000000000000000000000000000001/type_name.ts +12 -0
  96. package/src/contracts/0x2/derived_object.ts +95 -0
  97. package/src/contracts/0x2/display.ts +258 -0
  98. package/src/contracts/0x2/dynamic_field.ts +171 -0
  99. package/src/contracts/0x2/dynamic_object_field.ts +167 -0
  100. package/src/contracts/0x2/ecdsa_k1.ts +65 -0
  101. package/src/contracts/0x2/ecdsa_r1.ts +49 -0
  102. package/src/contracts/0x2/ecvrf.ts +29 -0
  103. package/src/contracts/0x2/ed25519.ts +25 -0
  104. package/src/contracts/0x2/event.ts +42 -0
  105. package/src/contracts/0x2/funds_accumulator.ts +86 -0
  106. package/src/contracts/0x2/groth16.ts +171 -0
  107. package/src/contracts/0x2/group_ops.ts +49 -0
  108. package/src/contracts/0x2/hash.ts +37 -0
  109. package/src/contracts/0x2/hex.ts +37 -0
  110. package/src/contracts/0x2/hmac.ts +21 -0
  111. package/src/contracts/0x2/kiosk.ts +797 -0
  112. package/src/contracts/0x2/kiosk_extension.ts +270 -0
  113. package/src/contracts/0x2/linked_table.ts +354 -0
  114. package/src/contracts/0x2/math.ts +117 -0
  115. package/src/contracts/0x2/nitro_attestation.ts +186 -0
  116. package/src/contracts/0x2/object.ts +249 -0
  117. package/src/contracts/0x2/object_bag.ts +210 -0
  118. package/src/contracts/0x2/object_table.ts +200 -0
  119. package/src/contracts/0x2/package.ts +414 -0
  120. package/src/contracts/0x2/party.ts +37 -0
  121. package/src/contracts/0x2/pay.ts +153 -0
  122. package/src/contracts/0x2/poseidon.ts +21 -0
  123. package/src/contracts/0x2/priority_queue.ts +139 -0
  124. package/src/contracts/0x2/random.ts +294 -0
  125. package/src/contracts/0x2/sui.ts +29 -0
  126. package/src/contracts/0x2/table.ts +200 -0
  127. package/src/contracts/0x2/table_vec.ts +232 -0
  128. package/src/contracts/0x2/token.ts +873 -0
  129. package/src/contracts/0x2/transfer.ts +216 -0
  130. package/src/contracts/0x2/transfer_policy.ts +400 -0
  131. package/src/contracts/0x2/tx_context.ts +129 -0
  132. package/src/contracts/0x2/types.ts +24 -0
  133. package/src/contracts/0x2/url.ts +77 -0
  134. package/src/contracts/0x2/vdf.ts +45 -0
  135. package/src/contracts/0x2/vec_map.ts +401 -0
  136. package/src/contracts/0x2/vec_set.ts +211 -0
  137. package/src/contracts/0x2/versioned.ts +153 -0
  138. package/src/contracts/0x2/zklogin_verified_id.ts +172 -0
  139. package/src/contracts/0x2/zklogin_verified_issuer.ts +99 -0
  140. package/src/contracts/kiosk/deps/sui/kiosk.ts +94 -0
  141. package/src/contracts/kiosk/deps/sui/object.ts +15 -0
  142. package/src/contracts/kiosk/floor_price_rule.ts +92 -0
  143. package/src/contracts/kiosk/kiosk_lock_rule.ts +97 -0
  144. package/src/contracts/kiosk/personal_kiosk.ts +295 -0
  145. package/src/contracts/kiosk/personal_kiosk_rule.ts +89 -0
  146. package/src/contracts/kiosk/royalty_rule.ts +144 -0
  147. package/src/contracts/kiosk/witness_rule.ts +92 -0
  148. package/src/contracts/utils/index.ts +234 -0
  149. package/src/query/client-utils.ts +51 -0
  150. package/src/query/kiosk.ts +128 -100
  151. package/src/query/transfer-policy.ts +112 -78
  152. package/src/tx/kiosk.ts +7 -231
  153. package/src/tx/rules/resolve.ts +97 -48
  154. package/src/tx/transfer-policy.ts +25 -86
  155. package/src/types/index.ts +3 -14
  156. package/src/types/kiosk.ts +10 -12
  157. package/src/types/transfer-policy.ts +4 -4
  158. package/src/utils.ts +90 -128
  159. package/dist/cjs/bcs.d.ts +0 -23
  160. package/dist/cjs/bcs.js +0 -50
  161. package/dist/cjs/bcs.js.map +0 -7
  162. package/dist/cjs/client/kiosk-client.d.ts +0 -76
  163. package/dist/cjs/client/kiosk-client.js +0 -123
  164. package/dist/cjs/client/kiosk-client.js.map +0 -7
  165. package/dist/cjs/client/kiosk-transaction.d.ts +0 -186
  166. package/dist/cjs/client/kiosk-transaction.js +0 -462
  167. package/dist/cjs/client/kiosk-transaction.js.map +0 -7
  168. package/dist/cjs/client/tp-transaction.d.ts +0 -114
  169. package/dist/cjs/client/tp-transaction.js +0 -307
  170. package/dist/cjs/client/tp-transaction.js.map +0 -7
  171. package/dist/cjs/constants.d.ts +0 -31
  172. package/dist/cjs/constants.js +0 -102
  173. package/dist/cjs/constants.js.map +0 -7
  174. package/dist/cjs/index.d.ts +0 -6
  175. package/dist/cjs/index.js +0 -24
  176. package/dist/cjs/index.js.map +0 -7
  177. package/dist/cjs/package.json +0 -5
  178. package/dist/cjs/query/kiosk.d.ts +0 -8
  179. package/dist/cjs/query/kiosk.js +0 -181
  180. package/dist/cjs/query/kiosk.js.map +0 -7
  181. package/dist/cjs/query/transfer-policy.d.ts +0 -29
  182. package/dist/cjs/query/transfer-policy.js +0 -92
  183. package/dist/cjs/query/transfer-policy.js.map +0 -7
  184. package/dist/cjs/tx/kiosk.d.ts +0 -71
  185. package/dist/cjs/tx/kiosk.js +0 -130
  186. package/dist/cjs/tx/kiosk.js.map +0 -7
  187. package/dist/cjs/tx/personal-kiosk.d.ts +0 -7
  188. package/dist/cjs/tx/personal-kiosk.js +0 -38
  189. package/dist/cjs/tx/personal-kiosk.js.map +0 -7
  190. package/dist/cjs/tx/rules/attach.d.ts +0 -7
  191. package/dist/cjs/tx/rules/attach.js +0 -62
  192. package/dist/cjs/tx/rules/attach.js.map +0 -7
  193. package/dist/cjs/tx/rules/resolve.d.ts +0 -15
  194. package/dist/cjs/tx/rules/resolve.js +0 -109
  195. package/dist/cjs/tx/rules/resolve.js.map +0 -7
  196. package/dist/cjs/tx/transfer-policy.d.ts +0 -29
  197. package/dist/cjs/tx/transfer-policy.js +0 -78
  198. package/dist/cjs/tx/transfer-policy.js.map +0 -7
  199. package/dist/cjs/types/index.d.ts +0 -27
  200. package/dist/cjs/types/index.js +0 -33
  201. package/dist/cjs/types/index.js.map +0 -7
  202. package/dist/cjs/types/kiosk.d.ts +0 -160
  203. package/dist/cjs/types/kiosk.js +0 -37
  204. package/dist/cjs/types/kiosk.js.map +0 -7
  205. package/dist/cjs/types/transfer-policy.d.ts +0 -53
  206. package/dist/cjs/types/transfer-policy.js +0 -35
  207. package/dist/cjs/types/transfer-policy.js.map +0 -7
  208. package/dist/cjs/utils.d.ts +0 -51
  209. package/dist/cjs/utils.js +0 -198
  210. package/dist/cjs/utils.js.map +0 -7
  211. package/dist/esm/bcs.d.ts +0 -23
  212. package/dist/esm/bcs.js +0 -35
  213. package/dist/esm/bcs.js.map +0 -7
  214. package/dist/esm/client/kiosk-client.d.ts +0 -76
  215. package/dist/esm/client/kiosk-client.js +0 -114
  216. package/dist/esm/client/kiosk-client.js.map +0 -7
  217. package/dist/esm/client/kiosk-transaction.d.ts +0 -186
  218. package/dist/esm/client/kiosk-transaction.js +0 -432
  219. package/dist/esm/client/kiosk-transaction.js.map +0 -7
  220. package/dist/esm/client/tp-transaction.d.ts +0 -114
  221. package/dist/esm/client/tp-transaction.js +0 -298
  222. package/dist/esm/client/tp-transaction.js.map +0 -7
  223. package/dist/esm/constants.d.ts +0 -31
  224. package/dist/esm/constants.js +0 -87
  225. package/dist/esm/constants.js.map +0 -7
  226. package/dist/esm/index.d.ts +0 -6
  227. package/dist/esm/index.js +0 -7
  228. package/dist/esm/index.js.map +0 -7
  229. package/dist/esm/package.json +0 -5
  230. package/dist/esm/query/kiosk.d.ts +0 -8
  231. package/dist/esm/query/kiosk.js +0 -169
  232. package/dist/esm/query/kiosk.js.map +0 -7
  233. package/dist/esm/query/transfer-policy.d.ts +0 -29
  234. package/dist/esm/query/transfer-policy.js +0 -76
  235. package/dist/esm/query/transfer-policy.js.map +0 -7
  236. package/dist/esm/tx/kiosk.d.ts +0 -71
  237. package/dist/esm/tx/kiosk.js +0 -110
  238. package/dist/esm/tx/kiosk.js.map +0 -7
  239. package/dist/esm/tx/personal-kiosk.d.ts +0 -7
  240. package/dist/esm/tx/personal-kiosk.js +0 -18
  241. package/dist/esm/tx/personal-kiosk.js.map +0 -7
  242. package/dist/esm/tx/rules/attach.d.ts +0 -7
  243. package/dist/esm/tx/rules/attach.js +0 -42
  244. package/dist/esm/tx/rules/attach.js.map +0 -7
  245. package/dist/esm/tx/rules/resolve.d.ts +0 -15
  246. package/dist/esm/tx/rules/resolve.js +0 -89
  247. package/dist/esm/tx/rules/resolve.js.map +0 -7
  248. package/dist/esm/tx/transfer-policy.d.ts +0 -29
  249. package/dist/esm/tx/transfer-policy.js +0 -58
  250. package/dist/esm/tx/transfer-policy.js.map +0 -7
  251. package/dist/esm/types/index.d.ts +0 -27
  252. package/dist/esm/types/index.js +0 -12
  253. package/dist/esm/types/index.js.map +0 -7
  254. package/dist/esm/types/kiosk.d.ts +0 -160
  255. package/dist/esm/types/kiosk.js +0 -17
  256. package/dist/esm/types/kiosk.js.map +0 -7
  257. package/dist/esm/types/transfer-policy.d.ts +0 -53
  258. package/dist/esm/types/transfer-policy.js +0 -15
  259. package/dist/esm/types/transfer-policy.js.map +0 -7
  260. package/dist/esm/utils.d.ts +0 -51
  261. package/dist/esm/utils.js +0 -183
  262. package/dist/esm/utils.js.map +0 -7
  263. package/dist/tsconfig.esm.tsbuildinfo +0 -1
  264. package/dist/tsconfig.tsbuildinfo +0 -1
  265. package/src/bcs.ts +0 -39
  266. package/src/tx/personal-kiosk.ts +0 -34
  267. package/src/tx/rules/attach.ts +0 -73
@@ -0,0 +1,977 @@
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
+ import * as balance_1 from './balance.js';
8
+ import * as url from './url.js';
9
+ const $moduleName = '0x2::coin';
10
+ export const Coin = new MoveStruct({
11
+ name: `${$moduleName}::Coin`,
12
+ fields: {
13
+ id: bcs.Address,
14
+ balance: balance_1.Balance,
15
+ },
16
+ });
17
+ export const CoinMetadata = new MoveStruct({
18
+ name: `${$moduleName}::CoinMetadata`,
19
+ fields: {
20
+ id: bcs.Address,
21
+ decimals: bcs.u8(),
22
+ name: bcs.string(),
23
+ symbol: bcs.string(),
24
+ description: bcs.string(),
25
+ icon_url: bcs.option(url.Url),
26
+ },
27
+ });
28
+ export const RegulatedCoinMetadata = new MoveStruct({
29
+ name: `${$moduleName}::RegulatedCoinMetadata`,
30
+ fields: {
31
+ id: bcs.Address,
32
+ coin_metadata_object: bcs.Address,
33
+ deny_cap_object: bcs.Address,
34
+ },
35
+ });
36
+ export const TreasuryCap = new MoveStruct({
37
+ name: `${$moduleName}::TreasuryCap`,
38
+ fields: {
39
+ id: bcs.Address,
40
+ total_supply: balance_1.Supply,
41
+ },
42
+ });
43
+ export const DenyCapV2 = new MoveStruct({
44
+ name: `${$moduleName}::DenyCapV2`,
45
+ fields: {
46
+ id: bcs.Address,
47
+ allow_global_pause: bcs.bool(),
48
+ },
49
+ });
50
+ export const CurrencyCreated = new MoveStruct({
51
+ name: `${$moduleName}::CurrencyCreated`,
52
+ fields: {
53
+ decimals: bcs.u8(),
54
+ },
55
+ });
56
+ export const DenyCap = new MoveStruct({
57
+ name: `${$moduleName}::DenyCap`,
58
+ fields: {
59
+ id: bcs.Address,
60
+ },
61
+ });
62
+ export interface TotalSupplyOptions {
63
+ package?: string;
64
+ arguments: [RawTransactionArgument<string>];
65
+ typeArguments: [string];
66
+ }
67
+ export function totalSupply(options: TotalSupplyOptions) {
68
+ const packageAddress =
69
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
70
+ const argumentsTypes = [null] satisfies (string | null)[];
71
+ return (tx: Transaction) =>
72
+ tx.moveCall({
73
+ package: packageAddress,
74
+ module: 'coin',
75
+ function: 'total_supply',
76
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
77
+ typeArguments: options.typeArguments,
78
+ });
79
+ }
80
+ export interface TreasuryIntoSupplyOptions {
81
+ package?: string;
82
+ arguments: [RawTransactionArgument<string>];
83
+ typeArguments: [string];
84
+ }
85
+ export function treasuryIntoSupply(options: TreasuryIntoSupplyOptions) {
86
+ const packageAddress =
87
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
88
+ const argumentsTypes = [null] satisfies (string | null)[];
89
+ return (tx: Transaction) =>
90
+ tx.moveCall({
91
+ package: packageAddress,
92
+ module: 'coin',
93
+ function: 'treasury_into_supply',
94
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
95
+ typeArguments: options.typeArguments,
96
+ });
97
+ }
98
+ export interface SupplyImmutOptions {
99
+ package?: string;
100
+ arguments: [RawTransactionArgument<string>];
101
+ typeArguments: [string];
102
+ }
103
+ export function supplyImmut(options: SupplyImmutOptions) {
104
+ const packageAddress =
105
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
106
+ const argumentsTypes = [null] satisfies (string | null)[];
107
+ return (tx: Transaction) =>
108
+ tx.moveCall({
109
+ package: packageAddress,
110
+ module: 'coin',
111
+ function: 'supply_immut',
112
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
113
+ typeArguments: options.typeArguments,
114
+ });
115
+ }
116
+ export interface SupplyMutOptions {
117
+ package?: string;
118
+ arguments: [RawTransactionArgument<string>];
119
+ typeArguments: [string];
120
+ }
121
+ export function supplyMut(options: SupplyMutOptions) {
122
+ const packageAddress =
123
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
124
+ const argumentsTypes = [null] satisfies (string | null)[];
125
+ return (tx: Transaction) =>
126
+ tx.moveCall({
127
+ package: packageAddress,
128
+ module: 'coin',
129
+ function: 'supply_mut',
130
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
131
+ typeArguments: options.typeArguments,
132
+ });
133
+ }
134
+ export interface ValueOptions {
135
+ package?: string;
136
+ arguments: [RawTransactionArgument<string>];
137
+ typeArguments: [string];
138
+ }
139
+ export function value(options: ValueOptions) {
140
+ const packageAddress =
141
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
142
+ const argumentsTypes = [null] satisfies (string | null)[];
143
+ return (tx: Transaction) =>
144
+ tx.moveCall({
145
+ package: packageAddress,
146
+ module: 'coin',
147
+ function: 'value',
148
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
149
+ typeArguments: options.typeArguments,
150
+ });
151
+ }
152
+ export interface BalanceOptions {
153
+ package?: string;
154
+ arguments: [RawTransactionArgument<string>];
155
+ typeArguments: [string];
156
+ }
157
+ export function balance(options: BalanceOptions) {
158
+ const packageAddress =
159
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
160
+ const argumentsTypes = [null] satisfies (string | null)[];
161
+ return (tx: Transaction) =>
162
+ tx.moveCall({
163
+ package: packageAddress,
164
+ module: 'coin',
165
+ function: 'balance',
166
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
167
+ typeArguments: options.typeArguments,
168
+ });
169
+ }
170
+ export interface BalanceMutOptions {
171
+ package?: string;
172
+ arguments: [RawTransactionArgument<string>];
173
+ typeArguments: [string];
174
+ }
175
+ export function balanceMut(options: BalanceMutOptions) {
176
+ const packageAddress =
177
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
178
+ const argumentsTypes = [null] satisfies (string | null)[];
179
+ return (tx: Transaction) =>
180
+ tx.moveCall({
181
+ package: packageAddress,
182
+ module: 'coin',
183
+ function: 'balance_mut',
184
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
185
+ typeArguments: options.typeArguments,
186
+ });
187
+ }
188
+ export interface FromBalanceOptions {
189
+ package?: string;
190
+ arguments: [RawTransactionArgument<string>];
191
+ typeArguments: [string];
192
+ }
193
+ export function fromBalance(options: FromBalanceOptions) {
194
+ const packageAddress =
195
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
196
+ const argumentsTypes = [null] satisfies (string | null)[];
197
+ return (tx: Transaction) =>
198
+ tx.moveCall({
199
+ package: packageAddress,
200
+ module: 'coin',
201
+ function: 'from_balance',
202
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
203
+ typeArguments: options.typeArguments,
204
+ });
205
+ }
206
+ export interface IntoBalanceOptions {
207
+ package?: string;
208
+ arguments: [RawTransactionArgument<string>];
209
+ typeArguments: [string];
210
+ }
211
+ export function intoBalance(options: IntoBalanceOptions) {
212
+ const packageAddress =
213
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
214
+ const argumentsTypes = [null] satisfies (string | null)[];
215
+ return (tx: Transaction) =>
216
+ tx.moveCall({
217
+ package: packageAddress,
218
+ module: 'coin',
219
+ function: 'into_balance',
220
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
221
+ typeArguments: options.typeArguments,
222
+ });
223
+ }
224
+ export interface TakeOptions {
225
+ package?: string;
226
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<number | bigint>];
227
+ typeArguments: [string];
228
+ }
229
+ export function take(options: TakeOptions) {
230
+ const packageAddress =
231
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
232
+ const argumentsTypes = [null, 'u64'] satisfies (string | null)[];
233
+ return (tx: Transaction) =>
234
+ tx.moveCall({
235
+ package: packageAddress,
236
+ module: 'coin',
237
+ function: 'take',
238
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
239
+ typeArguments: options.typeArguments,
240
+ });
241
+ }
242
+ export interface PutOptions {
243
+ package?: string;
244
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
245
+ typeArguments: [string];
246
+ }
247
+ export function put(options: PutOptions) {
248
+ const packageAddress =
249
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
250
+ const argumentsTypes = [null, null] satisfies (string | null)[];
251
+ return (tx: Transaction) =>
252
+ tx.moveCall({
253
+ package: packageAddress,
254
+ module: 'coin',
255
+ function: 'put',
256
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
257
+ typeArguments: options.typeArguments,
258
+ });
259
+ }
260
+ export interface RedeemFundsOptions {
261
+ package?: string;
262
+ arguments: [RawTransactionArgument<string>];
263
+ typeArguments: [string];
264
+ }
265
+ export function redeemFunds(options: RedeemFundsOptions) {
266
+ const packageAddress =
267
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
268
+ const argumentsTypes = [null] satisfies (string | null)[];
269
+ return (tx: Transaction) =>
270
+ tx.moveCall({
271
+ package: packageAddress,
272
+ module: 'coin',
273
+ function: 'redeem_funds',
274
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
275
+ typeArguments: options.typeArguments,
276
+ });
277
+ }
278
+ export interface SendFundsOptions {
279
+ package?: string;
280
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
281
+ typeArguments: [string];
282
+ }
283
+ export function sendFunds(options: SendFundsOptions) {
284
+ const packageAddress =
285
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
286
+ const argumentsTypes = [null, 'address'] satisfies (string | null)[];
287
+ return (tx: Transaction) =>
288
+ tx.moveCall({
289
+ package: packageAddress,
290
+ module: 'coin',
291
+ function: 'send_funds',
292
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
293
+ typeArguments: options.typeArguments,
294
+ });
295
+ }
296
+ export interface JoinOptions {
297
+ package?: string;
298
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
299
+ typeArguments: [string];
300
+ }
301
+ export function join(options: JoinOptions) {
302
+ const packageAddress =
303
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
304
+ const argumentsTypes = [null, null] satisfies (string | null)[];
305
+ return (tx: Transaction) =>
306
+ tx.moveCall({
307
+ package: packageAddress,
308
+ module: 'coin',
309
+ function: 'join',
310
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
311
+ typeArguments: options.typeArguments,
312
+ });
313
+ }
314
+ export interface SplitOptions {
315
+ package?: string;
316
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<number | bigint>];
317
+ typeArguments: [string];
318
+ }
319
+ export function split(options: SplitOptions) {
320
+ const packageAddress =
321
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
322
+ const argumentsTypes = [null, 'u64'] satisfies (string | null)[];
323
+ return (tx: Transaction) =>
324
+ tx.moveCall({
325
+ package: packageAddress,
326
+ module: 'coin',
327
+ function: 'split',
328
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
329
+ typeArguments: options.typeArguments,
330
+ });
331
+ }
332
+ export interface DivideIntoNOptions {
333
+ package?: string;
334
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<number | bigint>];
335
+ typeArguments: [string];
336
+ }
337
+ export function divideIntoN(options: DivideIntoNOptions) {
338
+ const packageAddress =
339
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
340
+ const argumentsTypes = [null, 'u64'] satisfies (string | null)[];
341
+ return (tx: Transaction) =>
342
+ tx.moveCall({
343
+ package: packageAddress,
344
+ module: 'coin',
345
+ function: 'divide_into_n',
346
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
347
+ typeArguments: options.typeArguments,
348
+ });
349
+ }
350
+ export interface ZeroOptions {
351
+ package?: string;
352
+ arguments?: [];
353
+ typeArguments: [string];
354
+ }
355
+ export function zero(options: ZeroOptions) {
356
+ const packageAddress =
357
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
358
+ return (tx: Transaction) =>
359
+ tx.moveCall({
360
+ package: packageAddress,
361
+ module: 'coin',
362
+ function: 'zero',
363
+ typeArguments: options.typeArguments,
364
+ });
365
+ }
366
+ export interface DestroyZeroOptions {
367
+ package?: string;
368
+ arguments: [RawTransactionArgument<string>];
369
+ typeArguments: [string];
370
+ }
371
+ export function destroyZero(options: DestroyZeroOptions) {
372
+ const packageAddress =
373
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
374
+ const argumentsTypes = [null] satisfies (string | null)[];
375
+ return (tx: Transaction) =>
376
+ tx.moveCall({
377
+ package: packageAddress,
378
+ module: 'coin',
379
+ function: 'destroy_zero',
380
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
381
+ typeArguments: options.typeArguments,
382
+ });
383
+ }
384
+ export interface CreateCurrencyOptions<T0 extends BcsType<any>> {
385
+ package?: string;
386
+ arguments: [
387
+ RawTransactionArgument<T0>,
388
+ RawTransactionArgument<number>,
389
+ RawTransactionArgument<number[]>,
390
+ RawTransactionArgument<number[]>,
391
+ RawTransactionArgument<number[]>,
392
+ RawTransactionArgument<string | null>,
393
+ ];
394
+ typeArguments: [string];
395
+ }
396
+ export function createCurrency<T0 extends BcsType<any>>(options: CreateCurrencyOptions<T0>) {
397
+ const packageAddress =
398
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
399
+ const argumentsTypes = [
400
+ `${options.typeArguments[0]}`,
401
+ 'u8',
402
+ 'vector<u8>',
403
+ 'vector<u8>',
404
+ 'vector<u8>',
405
+ '0x1::option::Option<null>',
406
+ ] satisfies (string | null)[];
407
+ return (tx: Transaction) =>
408
+ tx.moveCall({
409
+ package: packageAddress,
410
+ module: 'coin',
411
+ function: 'create_currency',
412
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
413
+ typeArguments: options.typeArguments,
414
+ });
415
+ }
416
+ export interface CreateRegulatedCurrencyV2Options<T0 extends BcsType<any>> {
417
+ package?: string;
418
+ arguments: [
419
+ RawTransactionArgument<T0>,
420
+ RawTransactionArgument<number>,
421
+ RawTransactionArgument<number[]>,
422
+ RawTransactionArgument<number[]>,
423
+ RawTransactionArgument<number[]>,
424
+ RawTransactionArgument<string | null>,
425
+ RawTransactionArgument<boolean>,
426
+ ];
427
+ typeArguments: [string];
428
+ }
429
+ export function createRegulatedCurrencyV2<T0 extends BcsType<any>>(
430
+ options: CreateRegulatedCurrencyV2Options<T0>,
431
+ ) {
432
+ const packageAddress =
433
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
434
+ const argumentsTypes = [
435
+ `${options.typeArguments[0]}`,
436
+ 'u8',
437
+ 'vector<u8>',
438
+ 'vector<u8>',
439
+ 'vector<u8>',
440
+ '0x1::option::Option<null>',
441
+ 'bool',
442
+ ] satisfies (string | null)[];
443
+ return (tx: Transaction) =>
444
+ tx.moveCall({
445
+ package: packageAddress,
446
+ module: 'coin',
447
+ function: 'create_regulated_currency_v2',
448
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
449
+ typeArguments: options.typeArguments,
450
+ });
451
+ }
452
+ export interface MigrateRegulatedCurrencyToV2Options {
453
+ package?: string;
454
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<boolean>];
455
+ typeArguments: [string];
456
+ }
457
+ export function migrateRegulatedCurrencyToV2(options: MigrateRegulatedCurrencyToV2Options) {
458
+ const packageAddress =
459
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
460
+ const argumentsTypes = ['0x2::deny_list::DenyList', null, 'bool'] satisfies (string | null)[];
461
+ return (tx: Transaction) =>
462
+ tx.moveCall({
463
+ package: packageAddress,
464
+ module: 'coin',
465
+ function: 'migrate_regulated_currency_to_v2',
466
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
467
+ typeArguments: options.typeArguments,
468
+ });
469
+ }
470
+ export interface MintOptions {
471
+ package?: string;
472
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<number | bigint>];
473
+ typeArguments: [string];
474
+ }
475
+ export function mint(options: MintOptions) {
476
+ const packageAddress =
477
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
478
+ const argumentsTypes = [null, 'u64'] satisfies (string | null)[];
479
+ return (tx: Transaction) =>
480
+ tx.moveCall({
481
+ package: packageAddress,
482
+ module: 'coin',
483
+ function: 'mint',
484
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
485
+ typeArguments: options.typeArguments,
486
+ });
487
+ }
488
+ export interface MintBalanceOptions {
489
+ package?: string;
490
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<number | bigint>];
491
+ typeArguments: [string];
492
+ }
493
+ export function mintBalance(options: MintBalanceOptions) {
494
+ const packageAddress =
495
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
496
+ const argumentsTypes = [null, 'u64'] satisfies (string | null)[];
497
+ return (tx: Transaction) =>
498
+ tx.moveCall({
499
+ package: packageAddress,
500
+ module: 'coin',
501
+ function: 'mint_balance',
502
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
503
+ typeArguments: options.typeArguments,
504
+ });
505
+ }
506
+ export interface BurnOptions {
507
+ package?: string;
508
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
509
+ typeArguments: [string];
510
+ }
511
+ export function burn(options: BurnOptions) {
512
+ const packageAddress =
513
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
514
+ const argumentsTypes = [null, null] satisfies (string | null)[];
515
+ return (tx: Transaction) =>
516
+ tx.moveCall({
517
+ package: packageAddress,
518
+ module: 'coin',
519
+ function: 'burn',
520
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
521
+ typeArguments: options.typeArguments,
522
+ });
523
+ }
524
+ export interface DenyListV2AddOptions {
525
+ package?: string;
526
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
527
+ typeArguments: [string];
528
+ }
529
+ export function denyListV2Add(options: DenyListV2AddOptions) {
530
+ const packageAddress =
531
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
532
+ const argumentsTypes = ['0x2::deny_list::DenyList', null, 'address'] satisfies (string | null)[];
533
+ return (tx: Transaction) =>
534
+ tx.moveCall({
535
+ package: packageAddress,
536
+ module: 'coin',
537
+ function: 'deny_list_v2_add',
538
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
539
+ typeArguments: options.typeArguments,
540
+ });
541
+ }
542
+ export interface DenyListV2RemoveOptions {
543
+ package?: string;
544
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
545
+ typeArguments: [string];
546
+ }
547
+ export function denyListV2Remove(options: DenyListV2RemoveOptions) {
548
+ const packageAddress =
549
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
550
+ const argumentsTypes = ['0x2::deny_list::DenyList', null, 'address'] satisfies (string | null)[];
551
+ return (tx: Transaction) =>
552
+ tx.moveCall({
553
+ package: packageAddress,
554
+ module: 'coin',
555
+ function: 'deny_list_v2_remove',
556
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
557
+ typeArguments: options.typeArguments,
558
+ });
559
+ }
560
+ export interface DenyListV2ContainsCurrentEpochOptions {
561
+ package?: string;
562
+ arguments: [RawTransactionArgument<string>];
563
+ typeArguments: [string];
564
+ }
565
+ export function denyListV2ContainsCurrentEpoch(options: DenyListV2ContainsCurrentEpochOptions) {
566
+ const packageAddress =
567
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
568
+ const argumentsTypes = ['0x2::deny_list::DenyList', 'address'] satisfies (string | null)[];
569
+ return (tx: Transaction) =>
570
+ tx.moveCall({
571
+ package: packageAddress,
572
+ module: 'coin',
573
+ function: 'deny_list_v2_contains_current_epoch',
574
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
575
+ typeArguments: options.typeArguments,
576
+ });
577
+ }
578
+ export interface DenyListV2ContainsNextEpochOptions {
579
+ package?: string;
580
+ arguments: [RawTransactionArgument<string>];
581
+ typeArguments: [string];
582
+ }
583
+ export function denyListV2ContainsNextEpoch(options: DenyListV2ContainsNextEpochOptions) {
584
+ const packageAddress =
585
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
586
+ const argumentsTypes = ['0x2::deny_list::DenyList', 'address'] satisfies (string | null)[];
587
+ return (tx: Transaction) =>
588
+ tx.moveCall({
589
+ package: packageAddress,
590
+ module: 'coin',
591
+ function: 'deny_list_v2_contains_next_epoch',
592
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
593
+ typeArguments: options.typeArguments,
594
+ });
595
+ }
596
+ export interface DenyListV2EnableGlobalPauseOptions {
597
+ package?: string;
598
+ arguments: [RawTransactionArgument<string>];
599
+ typeArguments: [string];
600
+ }
601
+ export function denyListV2EnableGlobalPause(options: DenyListV2EnableGlobalPauseOptions) {
602
+ const packageAddress =
603
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
604
+ const argumentsTypes = ['0x2::deny_list::DenyList', null] satisfies (string | null)[];
605
+ return (tx: Transaction) =>
606
+ tx.moveCall({
607
+ package: packageAddress,
608
+ module: 'coin',
609
+ function: 'deny_list_v2_enable_global_pause',
610
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
611
+ typeArguments: options.typeArguments,
612
+ });
613
+ }
614
+ export interface DenyListV2DisableGlobalPauseOptions {
615
+ package?: string;
616
+ arguments: [RawTransactionArgument<string>];
617
+ typeArguments: [string];
618
+ }
619
+ export function denyListV2DisableGlobalPause(options: DenyListV2DisableGlobalPauseOptions) {
620
+ const packageAddress =
621
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
622
+ const argumentsTypes = ['0x2::deny_list::DenyList', null] satisfies (string | null)[];
623
+ return (tx: Transaction) =>
624
+ tx.moveCall({
625
+ package: packageAddress,
626
+ module: 'coin',
627
+ function: 'deny_list_v2_disable_global_pause',
628
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
629
+ typeArguments: options.typeArguments,
630
+ });
631
+ }
632
+ export interface DenyListV2IsGlobalPauseEnabledCurrentEpochOptions {
633
+ package?: string;
634
+ arguments?: [];
635
+ typeArguments: [string];
636
+ }
637
+ export function denyListV2IsGlobalPauseEnabledCurrentEpoch(
638
+ options: DenyListV2IsGlobalPauseEnabledCurrentEpochOptions,
639
+ ) {
640
+ const packageAddress =
641
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
642
+ const argumentsTypes = ['0x2::deny_list::DenyList'] satisfies (string | null)[];
643
+ return (tx: Transaction) =>
644
+ tx.moveCall({
645
+ package: packageAddress,
646
+ module: 'coin',
647
+ function: 'deny_list_v2_is_global_pause_enabled_current_epoch',
648
+ arguments: normalizeMoveArguments(options.arguments ?? [], argumentsTypes),
649
+ typeArguments: options.typeArguments,
650
+ });
651
+ }
652
+ export interface DenyListV2IsGlobalPauseEnabledNextEpochOptions {
653
+ package?: string;
654
+ arguments?: [];
655
+ typeArguments: [string];
656
+ }
657
+ export function denyListV2IsGlobalPauseEnabledNextEpoch(
658
+ options: DenyListV2IsGlobalPauseEnabledNextEpochOptions,
659
+ ) {
660
+ const packageAddress =
661
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
662
+ const argumentsTypes = ['0x2::deny_list::DenyList'] satisfies (string | null)[];
663
+ return (tx: Transaction) =>
664
+ tx.moveCall({
665
+ package: packageAddress,
666
+ module: 'coin',
667
+ function: 'deny_list_v2_is_global_pause_enabled_next_epoch',
668
+ arguments: normalizeMoveArguments(options.arguments ?? [], argumentsTypes),
669
+ typeArguments: options.typeArguments,
670
+ });
671
+ }
672
+ export interface MintAndTransferOptions {
673
+ package?: string;
674
+ arguments: [
675
+ RawTransactionArgument<string>,
676
+ RawTransactionArgument<number | bigint>,
677
+ RawTransactionArgument<string>,
678
+ ];
679
+ typeArguments: [string];
680
+ }
681
+ export function mintAndTransfer(options: MintAndTransferOptions) {
682
+ const packageAddress =
683
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
684
+ const argumentsTypes = [null, 'u64', 'address'] satisfies (string | null)[];
685
+ return (tx: Transaction) =>
686
+ tx.moveCall({
687
+ package: packageAddress,
688
+ module: 'coin',
689
+ function: 'mint_and_transfer',
690
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
691
+ typeArguments: options.typeArguments,
692
+ });
693
+ }
694
+ export interface UpdateNameOptions {
695
+ package?: string;
696
+ arguments: [
697
+ RawTransactionArgument<string>,
698
+ RawTransactionArgument<string>,
699
+ RawTransactionArgument<string>,
700
+ ];
701
+ typeArguments: [string];
702
+ }
703
+ export function updateName(options: UpdateNameOptions) {
704
+ const packageAddress =
705
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
706
+ const argumentsTypes = [null, null, '0x1::string::String'] satisfies (string | null)[];
707
+ return (tx: Transaction) =>
708
+ tx.moveCall({
709
+ package: packageAddress,
710
+ module: 'coin',
711
+ function: 'update_name',
712
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
713
+ typeArguments: options.typeArguments,
714
+ });
715
+ }
716
+ export interface UpdateSymbolOptions {
717
+ package?: string;
718
+ arguments: [
719
+ RawTransactionArgument<string>,
720
+ RawTransactionArgument<string>,
721
+ RawTransactionArgument<string>,
722
+ ];
723
+ typeArguments: [string];
724
+ }
725
+ export function updateSymbol(options: UpdateSymbolOptions) {
726
+ const packageAddress =
727
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
728
+ const argumentsTypes = [null, null, '0x1::string::String'] satisfies (string | null)[];
729
+ return (tx: Transaction) =>
730
+ tx.moveCall({
731
+ package: packageAddress,
732
+ module: 'coin',
733
+ function: 'update_symbol',
734
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
735
+ typeArguments: options.typeArguments,
736
+ });
737
+ }
738
+ export interface UpdateDescriptionOptions {
739
+ package?: string;
740
+ arguments: [
741
+ RawTransactionArgument<string>,
742
+ RawTransactionArgument<string>,
743
+ RawTransactionArgument<string>,
744
+ ];
745
+ typeArguments: [string];
746
+ }
747
+ export function updateDescription(options: UpdateDescriptionOptions) {
748
+ const packageAddress =
749
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
750
+ const argumentsTypes = [null, null, '0x1::string::String'] satisfies (string | null)[];
751
+ return (tx: Transaction) =>
752
+ tx.moveCall({
753
+ package: packageAddress,
754
+ module: 'coin',
755
+ function: 'update_description',
756
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
757
+ typeArguments: options.typeArguments,
758
+ });
759
+ }
760
+ export interface UpdateIconUrlOptions {
761
+ package?: string;
762
+ arguments: [
763
+ RawTransactionArgument<string>,
764
+ RawTransactionArgument<string>,
765
+ RawTransactionArgument<string>,
766
+ ];
767
+ typeArguments: [string];
768
+ }
769
+ export function updateIconUrl(options: UpdateIconUrlOptions) {
770
+ const packageAddress =
771
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
772
+ const argumentsTypes = [null, null, '0x1::string::String'] satisfies (string | null)[];
773
+ return (tx: Transaction) =>
774
+ tx.moveCall({
775
+ package: packageAddress,
776
+ module: 'coin',
777
+ function: 'update_icon_url',
778
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
779
+ typeArguments: options.typeArguments,
780
+ });
781
+ }
782
+ export interface GetDecimalsOptions {
783
+ package?: string;
784
+ arguments: [RawTransactionArgument<string>];
785
+ typeArguments: [string];
786
+ }
787
+ export function getDecimals(options: GetDecimalsOptions) {
788
+ const packageAddress =
789
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
790
+ const argumentsTypes = [null] satisfies (string | null)[];
791
+ return (tx: Transaction) =>
792
+ tx.moveCall({
793
+ package: packageAddress,
794
+ module: 'coin',
795
+ function: 'get_decimals',
796
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
797
+ typeArguments: options.typeArguments,
798
+ });
799
+ }
800
+ export interface GetNameOptions {
801
+ package?: string;
802
+ arguments: [RawTransactionArgument<string>];
803
+ typeArguments: [string];
804
+ }
805
+ export function getName(options: GetNameOptions) {
806
+ const packageAddress =
807
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
808
+ const argumentsTypes = [null] satisfies (string | null)[];
809
+ return (tx: Transaction) =>
810
+ tx.moveCall({
811
+ package: packageAddress,
812
+ module: 'coin',
813
+ function: 'get_name',
814
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
815
+ typeArguments: options.typeArguments,
816
+ });
817
+ }
818
+ export interface GetSymbolOptions {
819
+ package?: string;
820
+ arguments: [RawTransactionArgument<string>];
821
+ typeArguments: [string];
822
+ }
823
+ export function getSymbol(options: GetSymbolOptions) {
824
+ const packageAddress =
825
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
826
+ const argumentsTypes = [null] satisfies (string | null)[];
827
+ return (tx: Transaction) =>
828
+ tx.moveCall({
829
+ package: packageAddress,
830
+ module: 'coin',
831
+ function: 'get_symbol',
832
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
833
+ typeArguments: options.typeArguments,
834
+ });
835
+ }
836
+ export interface GetDescriptionOptions {
837
+ package?: string;
838
+ arguments: [RawTransactionArgument<string>];
839
+ typeArguments: [string];
840
+ }
841
+ export function getDescription(options: GetDescriptionOptions) {
842
+ const packageAddress =
843
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
844
+ const argumentsTypes = [null] satisfies (string | null)[];
845
+ return (tx: Transaction) =>
846
+ tx.moveCall({
847
+ package: packageAddress,
848
+ module: 'coin',
849
+ function: 'get_description',
850
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
851
+ typeArguments: options.typeArguments,
852
+ });
853
+ }
854
+ export interface GetIconUrlOptions {
855
+ package?: string;
856
+ arguments: [RawTransactionArgument<string>];
857
+ typeArguments: [string];
858
+ }
859
+ export function getIconUrl(options: GetIconUrlOptions) {
860
+ const packageAddress =
861
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
862
+ const argumentsTypes = [null] satisfies (string | null)[];
863
+ return (tx: Transaction) =>
864
+ tx.moveCall({
865
+ package: packageAddress,
866
+ module: 'coin',
867
+ function: 'get_icon_url',
868
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
869
+ typeArguments: options.typeArguments,
870
+ });
871
+ }
872
+ export interface SupplyOptions {
873
+ package?: string;
874
+ arguments: [RawTransactionArgument<string>];
875
+ typeArguments: [string];
876
+ }
877
+ export function supply(options: SupplyOptions) {
878
+ const packageAddress =
879
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
880
+ const argumentsTypes = [null] satisfies (string | null)[];
881
+ return (tx: Transaction) =>
882
+ tx.moveCall({
883
+ package: packageAddress,
884
+ module: 'coin',
885
+ function: 'supply',
886
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
887
+ typeArguments: options.typeArguments,
888
+ });
889
+ }
890
+ export interface CreateRegulatedCurrencyOptions<T0 extends BcsType<any>> {
891
+ package?: string;
892
+ arguments: [
893
+ RawTransactionArgument<T0>,
894
+ RawTransactionArgument<number>,
895
+ RawTransactionArgument<number[]>,
896
+ RawTransactionArgument<number[]>,
897
+ RawTransactionArgument<number[]>,
898
+ RawTransactionArgument<string | null>,
899
+ ];
900
+ typeArguments: [string];
901
+ }
902
+ export function createRegulatedCurrency<T0 extends BcsType<any>>(
903
+ options: CreateRegulatedCurrencyOptions<T0>,
904
+ ) {
905
+ const packageAddress =
906
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
907
+ const argumentsTypes = [
908
+ `${options.typeArguments[0]}`,
909
+ 'u8',
910
+ 'vector<u8>',
911
+ 'vector<u8>',
912
+ 'vector<u8>',
913
+ '0x1::option::Option<null>',
914
+ ] satisfies (string | null)[];
915
+ return (tx: Transaction) =>
916
+ tx.moveCall({
917
+ package: packageAddress,
918
+ module: 'coin',
919
+ function: 'create_regulated_currency',
920
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
921
+ typeArguments: options.typeArguments,
922
+ });
923
+ }
924
+ export interface DenyListAddOptions {
925
+ package?: string;
926
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
927
+ typeArguments: [string];
928
+ }
929
+ export function denyListAdd(options: DenyListAddOptions) {
930
+ const packageAddress =
931
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
932
+ const argumentsTypes = ['0x2::deny_list::DenyList', null, 'address'] satisfies (string | null)[];
933
+ return (tx: Transaction) =>
934
+ tx.moveCall({
935
+ package: packageAddress,
936
+ module: 'coin',
937
+ function: 'deny_list_add',
938
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
939
+ typeArguments: options.typeArguments,
940
+ });
941
+ }
942
+ export interface DenyListRemoveOptions {
943
+ package?: string;
944
+ arguments: [RawTransactionArgument<string>, RawTransactionArgument<string>];
945
+ typeArguments: [string];
946
+ }
947
+ export function denyListRemove(options: DenyListRemoveOptions) {
948
+ const packageAddress =
949
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
950
+ const argumentsTypes = ['0x2::deny_list::DenyList', null, 'address'] satisfies (string | null)[];
951
+ return (tx: Transaction) =>
952
+ tx.moveCall({
953
+ package: packageAddress,
954
+ module: 'coin',
955
+ function: 'deny_list_remove',
956
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
957
+ typeArguments: options.typeArguments,
958
+ });
959
+ }
960
+ export interface DenyListContainsOptions {
961
+ package?: string;
962
+ arguments: [RawTransactionArgument<string>];
963
+ typeArguments: [string];
964
+ }
965
+ export function denyListContains(options: DenyListContainsOptions) {
966
+ const packageAddress =
967
+ options.package ?? '0x0000000000000000000000000000000000000000000000000000000000000002';
968
+ const argumentsTypes = ['0x2::deny_list::DenyList', 'address'] satisfies (string | null)[];
969
+ return (tx: Transaction) =>
970
+ tx.moveCall({
971
+ package: packageAddress,
972
+ module: 'coin',
973
+ function: 'deny_list_contains',
974
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes),
975
+ typeArguments: options.typeArguments,
976
+ });
977
+ }