@misofm/sdk 0.9.0 → 0.11.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.
- package/README.md +88 -56
- package/dist/client.d.ts +121 -18
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +200 -44
- package/dist/client.js.map +1 -1
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts +205 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.d.ts.map +1 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js +184 -0
- package/dist/contracts/composition_routed_stake/composition_routed_stake.js.map +1 -0
- package/dist/contracts/composition_routed_stake/witness.d.ts +7 -0
- package/dist/contracts/composition_routed_stake/witness.d.ts.map +1 -0
- package/dist/contracts/composition_routed_stake/witness.js +9 -0
- package/dist/contracts/composition_routed_stake/witness.js.map +1 -0
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +89 -28
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +84 -23
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +1 -1
- package/dist/contracts/composition_royalty_pool/witness.d.ts +6 -0
- package/dist/contracts/composition_royalty_pool/witness.d.ts.map +1 -0
- package/dist/contracts/composition_royalty_pool/witness.js +8 -0
- package/dist/contracts/composition_royalty_pool/witness.js.map +1 -0
- package/dist/contracts/genre/genre.d.ts +96 -0
- package/dist/contracts/genre/genre.d.ts.map +1 -0
- package/dist/contracts/genre/genre.js +107 -0
- package/dist/contracts/genre/genre.js.map +1 -0
- package/dist/contracts/recording_advisory/recording_advisory.d.ts +194 -0
- package/dist/contracts/recording_advisory/recording_advisory.d.ts.map +1 -0
- package/dist/contracts/recording_advisory/recording_advisory.js +204 -0
- package/dist/contracts/recording_advisory/recording_advisory.js.map +1 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts +6 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.d.ts.map +1 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.js +8 -0
- package/dist/contracts/recording_language/deps/language_code/language_code.js.map +1 -0
- package/dist/contracts/recording_language/recording_language.d.ts +152 -0
- package/dist/contracts/recording_language/recording_language.d.ts.map +1 -0
- package/dist/contracts/recording_language/recording_language.js +149 -0
- package/dist/contracts/recording_language/recording_language.js.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts +52 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js +37 -0
- package/dist/contracts/recording_master_reference/deps/ori/walrus_data.js.map +1 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts +131 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.d.ts.map +1 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.js +121 -0
- package/dist/contracts/recording_master_reference/recording_master_reference.js.map +1 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts +52 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.d.ts.map +1 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.js +37 -0
- package/dist/contracts/recording_preview/deps/ori/walrus_data.js.map +1 -0
- package/dist/contracts/recording_preview/recording_preview.d.ts +104 -0
- package/dist/contracts/recording_preview/recording_preview.d.ts.map +1 -0
- package/dist/contracts/recording_preview/recording_preview.js +94 -0
- package/dist/contracts/recording_preview/recording_preview.js.map +1 -0
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +90 -28
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +1 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +84 -23
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +1 -1
- package/dist/contracts/recording_royalty_pool/witness.d.ts +6 -0
- package/dist/contracts/recording_royalty_pool/witness.d.ts.map +1 -0
- package/dist/contracts/recording_royalty_pool/witness.js +8 -0
- package/dist/contracts/recording_royalty_pool/witness.js.map +1 -0
- package/dist/contracts/release_description/release_description.d.ts +112 -0
- package/dist/contracts/release_description/release_description.d.ts.map +1 -0
- package/dist/contracts/release_description/release_description.js +123 -0
- package/dist/contracts/release_description/release_description.js.map +1 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts +644 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.d.ts.map +1 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.js +556 -0
- package/dist/contracts/release_dsp_link/release_dsp_link.js.map +1 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.d.ts +33 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.d.ts.map +1 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.js +32 -0
- package/dist/contracts/release_genre/deps/per_track/per_track.js.map +1 -0
- package/dist/contracts/release_genre/release_genre.d.ts +193 -0
- package/dist/contracts/release_genre/release_genre.d.ts.map +1 -0
- package/dist/contracts/release_genre/release_genre.js +207 -0
- package/dist/contracts/release_genre/release_genre.js.map +1 -0
- package/dist/contracts/release_kind/release_kind.d.ts +98 -0
- package/dist/contracts/release_kind/release_kind.d.ts.map +1 -0
- package/dist/contracts/release_kind/release_kind.js +109 -0
- package/dist/contracts/release_kind/release_kind.js.map +1 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts +106 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js +113 -0
- package/dist/contracts/release_revenue_distributor/release_revenue_distributor.js.map +1 -0
- package/dist/contracts/release_revenue_distributor/witness.d.ts +7 -0
- package/dist/contracts/release_revenue_distributor/witness.d.ts.map +1 -0
- package/dist/contracts/release_revenue_distributor/witness.js +9 -0
- package/dist/contracts/release_revenue_distributor/witness.js.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts +54 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.js +37 -0
- package/dist/contracts/routed_stake/deps/royalty_pool/stake.js.map +1 -0
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts +18 -0
- package/dist/contracts/routed_stake/deps/std/type_name.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/std/type_name.js +20 -0
- package/dist/contracts/routed_stake/deps/std/type_name.js.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts +13 -0
- package/dist/contracts/routed_stake/deps/sui/balance.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/balance.js +15 -0
- package/dist/contracts/routed_stake/deps/sui/balance.js.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts +37 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.d.ts.map +1 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.js +28 -0
- package/dist/contracts/routed_stake/deps/sui/vec_map.js.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts +356 -0
- package/dist/contracts/routed_stake/routed_stake.d.ts.map +1 -0
- package/dist/contracts/routed_stake/routed_stake.js +311 -0
- package/dist/contracts/routed_stake/routed_stake.js.map +1 -0
- package/dist/contracts/royalty_pool/pool.d.ts +27 -17
- package/dist/contracts/royalty_pool/pool.d.ts.map +1 -1
- package/dist/contracts/royalty_pool/pool.js +26 -17
- package/dist/contracts/royalty_pool/pool.js.map +1 -1
- package/dist/contracts/vault/deps/sui/bag.d.ts +35 -0
- package/dist/contracts/vault/deps/sui/bag.d.ts.map +1 -0
- package/dist/contracts/vault/deps/sui/bag.js +37 -0
- package/dist/contracts/vault/deps/sui/bag.js.map +1 -0
- package/dist/contracts/vault/deps/sui/borrow.d.ts +20 -0
- package/dist/contracts/vault/deps/sui/borrow.d.ts.map +1 -0
- package/dist/contracts/vault/deps/sui/borrow.js +21 -0
- package/dist/contracts/vault/deps/sui/borrow.js.map +1 -0
- package/dist/contracts/vault/vault.d.ts +276 -0
- package/dist/contracts/vault/vault.d.ts.map +1 -0
- package/dist/contracts/vault/vault.js +274 -0
- package/dist/contracts/vault/vault.js.map +1 -0
- package/dist/contracts.d.ts +13 -2
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +15 -7
- package/dist/contracts.js.map +1 -1
- package/dist/cover.d.ts +17 -3
- package/dist/cover.d.ts.map +1 -1
- package/dist/cover.js +43 -20
- package/dist/cover.js.map +1 -1
- package/dist/credits.d.ts +31 -12
- package/dist/credits.d.ts.map +1 -1
- package/dist/credits.js +41 -25
- package/dist/credits.js.map +1 -1
- package/dist/deployments.d.ts +30 -57
- package/dist/deployments.d.ts.map +1 -1
- package/dist/deployments.js +5 -53
- package/dist/deployments.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/pressing.d.ts +8 -7
- package/dist/pressing.d.ts.map +1 -1
- package/dist/pressing.js +91 -32
- package/dist/pressing.js.map +1 -1
- package/dist/read/artist.js +3 -3
- package/dist/read/artist.js.map +1 -1
- package/dist/read/catalog.d.ts +14 -9
- package/dist/read/catalog.d.ts.map +1 -1
- package/dist/read/catalog.js +71 -37
- package/dist/read/catalog.js.map +1 -1
- package/dist/read/client.d.ts +4 -2
- package/dist/read/client.d.ts.map +1 -1
- package/dist/read/client.js +15 -4
- package/dist/read/client.js.map +1 -1
- package/dist/read/config.d.ts +14 -11
- package/dist/read/config.d.ts.map +1 -1
- package/dist/read/config.js +10 -37
- package/dist/read/config.js.map +1 -1
- package/dist/read/index.d.ts +2 -2
- package/dist/read/index.d.ts.map +1 -1
- package/dist/read/index.js +1 -1
- package/dist/read/index.js.map +1 -1
- package/dist/read/receipts.d.ts +24 -7
- package/dist/read/receipts.d.ts.map +1 -1
- package/dist/read/receipts.js +78 -25
- package/dist/read/receipts.js.map +1 -1
- package/dist/read/types.d.ts +43 -25
- package/dist/read/types.d.ts.map +1 -1
- package/dist/read/types.js +2 -2
- package/dist/read/types.js.map +1 -1
- package/dist/recording-extensions.d.ts +37 -0
- package/dist/recording-extensions.d.ts.map +1 -0
- package/dist/recording-extensions.js +61 -0
- package/dist/recording-extensions.js.map +1 -0
- package/dist/release-extensions.d.ts +84 -0
- package/dist/release-extensions.d.ts.map +1 -0
- package/dist/release-extensions.js +160 -0
- package/dist/release-extensions.js.map +1 -0
- package/dist/release-graph.d.ts +17 -26
- package/dist/release-graph.d.ts.map +1 -1
- package/dist/release-graph.js +55 -49
- package/dist/release-graph.js.map +1 -1
- package/dist/transactions.d.ts +43 -24
- package/dist/transactions.d.ts.map +1 -1
- package/dist/transactions.js +48 -27
- package/dist/transactions.js.map +1 -1
- package/dist/vault.d.ts +268 -0
- package/dist/vault.d.ts.map +1 -0
- package/dist/vault.js +389 -0
- package/dist/vault.js.map +1 -0
- package/package.json +17 -11
- package/src/client.ts +399 -61
- package/src/contracts/composition_routed_stake/composition_routed_stake.ts +346 -0
- package/src/contracts/composition_routed_stake/witness.ts +11 -0
- package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +151 -35
- package/src/contracts/composition_royalty_pool/witness.ts +7 -0
- package/src/contracts/genre/genre.ts +151 -0
- package/src/contracts/recording_advisory/recording_advisory.ts +315 -0
- package/src/contracts/recording_language/deps/language_code/language_code.ts +7 -0
- package/src/contracts/recording_language/recording_language.ts +237 -0
- package/src/contracts/recording_master_reference/deps/ori/walrus_data.ts +36 -0
- package/src/contracts/recording_master_reference/recording_master_reference.ts +181 -0
- package/src/contracts/recording_preview/deps/ori/walrus_data.ts +36 -0
- package/src/contracts/recording_preview/recording_preview.ts +154 -0
- package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +152 -35
- package/src/contracts/recording_royalty_pool/witness.ts +7 -0
- package/src/contracts/release_description/release_description.ts +167 -0
- package/src/contracts/release_dsp_link/release_dsp_link.ts +813 -0
- package/src/contracts/release_genre/deps/per_track/per_track.ts +36 -0
- package/src/contracts/release_genre/release_genre.ts +314 -0
- package/src/contracts/release_kind/release_kind.ts +153 -0
- package/src/contracts/release_revenue_distributor/release_revenue_distributor.ts +178 -0
- package/src/contracts/release_revenue_distributor/witness.ts +11 -0
- package/src/contracts/routed_stake/deps/royalty_pool/stake.ts +39 -0
- package/src/contracts/routed_stake/deps/std/type_name.ts +22 -0
- package/src/contracts/routed_stake/deps/sui/balance.ts +17 -0
- package/src/contracts/routed_stake/deps/sui/vec_map.ts +33 -0
- package/src/contracts/routed_stake/routed_stake.ts +508 -0
- package/src/contracts/royalty_pool/pool.ts +34 -24
- package/src/contracts/vault/deps/sui/bag.ts +39 -0
- package/src/contracts/vault/deps/sui/borrow.ts +25 -0
- package/src/contracts/vault/vault.ts +454 -0
- package/src/contracts.ts +16 -9
- package/src/cover.ts +62 -37
- package/src/credits.ts +64 -51
- package/src/deployments.ts +35 -97
- package/src/index.ts +11 -5
- package/src/pressing.ts +135 -39
- package/src/read/artist.ts +3 -3
- package/src/read/catalog.ts +99 -44
- package/src/read/client.ts +20 -4
- package/src/read/config.ts +23 -49
- package/src/read/index.ts +3 -1
- package/src/read/receipts.ts +103 -26
- package/src/read/types.ts +44 -27
- package/src/recording-extensions.ts +102 -0
- package/src/release-extensions.ts +261 -0
- package/src/release-graph.ts +68 -81
- package/src/transactions.ts +79 -53
- package/src/vault.ts +777 -0
- package/dist/contracts/miso_drop/drop.d.ts +0 -550
- package/dist/contracts/miso_drop/drop.d.ts.map +0 -1
- package/dist/contracts/miso_drop/drop.js +0 -523
- package/dist/contracts/miso_drop/drop.js.map +0 -1
- package/dist/contracts/release_registry/release_registry.d.ts +0 -114
- package/dist/contracts/release_registry/release_registry.d.ts.map +0 -1
- package/dist/contracts/release_registry/release_registry.js +0 -119
- package/dist/contracts/release_registry/release_registry.js.map +0 -1
- package/dist/drop.d.ts +0 -127
- package/dist/drop.d.ts.map +0 -1
- package/dist/drop.js +0 -202
- package/dist/drop.js.map +0 -1
- package/dist/extensions/royalty-pool.d.ts +0 -32
- package/dist/extensions/royalty-pool.d.ts.map +0 -1
- package/dist/extensions/royalty-pool.js +0 -33
- package/dist/extensions/royalty-pool.js.map +0 -1
- package/src/contracts/miso_drop/drop.ts +0 -798
- package/src/contracts/release_registry/release_registry.ts +0 -160
- package/src/drop.ts +0 -376
- package/src/extensions/royalty-pool.ts +0 -90
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Vault-authorized release revenue routing for Miso.
|
|
6
|
+
*
|
|
7
|
+
* Revenue is split from the immutable Release tracklist and sent to each track's
|
|
8
|
+
* Recording address. A caller can select only the funds to receive or the amount
|
|
9
|
+
* to redeem; it cannot select recipients or alter split amounts. Recording-level
|
|
10
|
+
* plugins may subsequently fold those funds into canonical Recording royalty
|
|
11
|
+
* pools.
|
|
12
|
+
*/
|
|
13
|
+
import { MoveStruct, type RawTransactionArgument } from '../utils/index.js';
|
|
14
|
+
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
15
|
+
export declare const ReleaseTrackRevenueDistributedEvent: MoveStruct<{
|
|
16
|
+
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
17
|
+
track_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
18
|
+
recording_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
19
|
+
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
20
|
+
}, "@local-pkg/release_revenue_distributor::release_revenue_distributor::ReleaseTrackRevenueDistributedEvent<phantom Currency>">;
|
|
21
|
+
export declare const ReleaseRevenueDistributedEvent: MoveStruct<{
|
|
22
|
+
release_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
23
|
+
total_input: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
24
|
+
total_distributed: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
25
|
+
remainder: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
26
|
+
}, "@local-pkg/release_revenue_distributor::release_revenue_distributor::ReleaseRevenueDistributedEvent<phantom Currency>">;
|
|
27
|
+
export interface InstallArguments {
|
|
28
|
+
vault: RawTransactionArgument<string>;
|
|
29
|
+
vaultAdminCap: RawTransactionArgument<string>;
|
|
30
|
+
}
|
|
31
|
+
export interface InstallOptions {
|
|
32
|
+
package?: string;
|
|
33
|
+
arguments: InstallArguments | [
|
|
34
|
+
vault: RawTransactionArgument<string>,
|
|
35
|
+
vaultAdminCap: RawTransactionArgument<string>
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
/** Authorize this package on a Release capability Vault. */
|
|
39
|
+
export declare function install(options: InstallOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
40
|
+
export interface UninstallArguments {
|
|
41
|
+
vault: RawTransactionArgument<string>;
|
|
42
|
+
vaultAdminCap: RawTransactionArgument<string>;
|
|
43
|
+
}
|
|
44
|
+
export interface UninstallOptions {
|
|
45
|
+
package?: string;
|
|
46
|
+
arguments: UninstallArguments | [
|
|
47
|
+
vault: RawTransactionArgument<string>,
|
|
48
|
+
vaultAdminCap: RawTransactionArgument<string>
|
|
49
|
+
];
|
|
50
|
+
}
|
|
51
|
+
/** Revoke this package from a Release capability Vault. */
|
|
52
|
+
export declare function uninstall(options: UninstallOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
53
|
+
export interface RedeemAndDistributeArguments {
|
|
54
|
+
vault: RawTransactionArgument<string>;
|
|
55
|
+
release: RawTransactionArgument<string>;
|
|
56
|
+
value: RawTransactionArgument<number | bigint>;
|
|
57
|
+
}
|
|
58
|
+
export interface RedeemAndDistributeOptions {
|
|
59
|
+
package?: string;
|
|
60
|
+
arguments: RedeemAndDistributeArguments | [
|
|
61
|
+
vault: RawTransactionArgument<string>,
|
|
62
|
+
release: RawTransactionArgument<string>,
|
|
63
|
+
value: RawTransactionArgument<number | bigint>
|
|
64
|
+
];
|
|
65
|
+
typeArguments: [
|
|
66
|
+
string
|
|
67
|
+
];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Redeem `value` from the Release address and distribute it according to the
|
|
71
|
+
* immutable tracklist. Anyone may crank this after installation.
|
|
72
|
+
*/
|
|
73
|
+
export declare function redeemAndDistribute(options: RedeemAndDistributeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
74
|
+
export interface ReceiveAndDistributeArguments {
|
|
75
|
+
vault: RawTransactionArgument<string>;
|
|
76
|
+
release: RawTransactionArgument<string>;
|
|
77
|
+
coins: TransactionArgument;
|
|
78
|
+
}
|
|
79
|
+
export interface ReceiveAndDistributeOptions {
|
|
80
|
+
package?: string;
|
|
81
|
+
arguments: ReceiveAndDistributeArguments | [
|
|
82
|
+
vault: RawTransactionArgument<string>,
|
|
83
|
+
release: RawTransactionArgument<string>,
|
|
84
|
+
coins: TransactionArgument
|
|
85
|
+
];
|
|
86
|
+
typeArguments: [
|
|
87
|
+
string
|
|
88
|
+
];
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Receive selected `Coin<Currency>` objects sent to the Release and distribute
|
|
92
|
+
* their combined value according to the immutable tracklist. Anyone may crank this
|
|
93
|
+
* after installation.
|
|
94
|
+
*/
|
|
95
|
+
export declare function receiveAndDistribute(options: ReceiveAndDistributeOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
96
|
+
export interface IsInstalledArguments {
|
|
97
|
+
vault: RawTransactionArgument<string>;
|
|
98
|
+
}
|
|
99
|
+
export interface IsInstalledOptions {
|
|
100
|
+
package?: string;
|
|
101
|
+
arguments: IsInstalledArguments | [
|
|
102
|
+
vault: RawTransactionArgument<string>
|
|
103
|
+
];
|
|
104
|
+
}
|
|
105
|
+
export declare function isInstalled(options: IsInstalledOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
106
|
+
//# sourceMappingURL=release_revenue_distributor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release_revenue_distributor.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_revenue_distributor/release_revenue_distributor.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* Vault-authorized release revenue routing for Miso.
|
|
6
|
+
*
|
|
7
|
+
* Revenue is split from the immutable Release tracklist and sent to each track's
|
|
8
|
+
* Recording address. A caller can select only the funds to receive or the amount
|
|
9
|
+
* to redeem; it cannot select recipients or alter split amounts. Recording-level
|
|
10
|
+
* plugins may subsequently fold those funds into canonical Recording royalty
|
|
11
|
+
* pools.
|
|
12
|
+
*/
|
|
13
|
+
import { MoveStruct, normalizeMoveArguments } from '../utils/index.js';
|
|
14
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
15
|
+
import {} from '@mysten/sui/transactions';
|
|
16
|
+
const $moduleName = '@local-pkg/release_revenue_distributor::release_revenue_distributor';
|
|
17
|
+
export const ReleaseTrackRevenueDistributedEvent = new MoveStruct({ name: `${$moduleName}::ReleaseTrackRevenueDistributedEvent<phantom Currency>`, fields: {
|
|
18
|
+
release_id: bcs.Address,
|
|
19
|
+
track_index: bcs.u64(),
|
|
20
|
+
recording_id: bcs.Address,
|
|
21
|
+
amount: bcs.u64()
|
|
22
|
+
} });
|
|
23
|
+
export const ReleaseRevenueDistributedEvent = new MoveStruct({ name: `${$moduleName}::ReleaseRevenueDistributedEvent<phantom Currency>`, fields: {
|
|
24
|
+
release_id: bcs.Address,
|
|
25
|
+
total_input: bcs.u64(),
|
|
26
|
+
total_distributed: bcs.u64(),
|
|
27
|
+
remainder: bcs.u64()
|
|
28
|
+
} });
|
|
29
|
+
/** Authorize this package on a Release capability Vault. */
|
|
30
|
+
export function install(options) {
|
|
31
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
32
|
+
const argumentsTypes = [
|
|
33
|
+
null,
|
|
34
|
+
null
|
|
35
|
+
];
|
|
36
|
+
const parameterNames = ["vault", "vaultAdminCap"];
|
|
37
|
+
return (tx) => tx.moveCall({
|
|
38
|
+
package: packageAddress,
|
|
39
|
+
module: 'release_revenue_distributor',
|
|
40
|
+
function: 'install',
|
|
41
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/** Revoke this package from a Release capability Vault. */
|
|
45
|
+
export function uninstall(options) {
|
|
46
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
47
|
+
const argumentsTypes = [
|
|
48
|
+
null,
|
|
49
|
+
null
|
|
50
|
+
];
|
|
51
|
+
const parameterNames = ["vault", "vaultAdminCap"];
|
|
52
|
+
return (tx) => tx.moveCall({
|
|
53
|
+
package: packageAddress,
|
|
54
|
+
module: 'release_revenue_distributor',
|
|
55
|
+
function: 'uninstall',
|
|
56
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Redeem `value` from the Release address and distribute it according to the
|
|
61
|
+
* immutable tracklist. Anyone may crank this after installation.
|
|
62
|
+
*/
|
|
63
|
+
export function redeemAndDistribute(options) {
|
|
64
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
65
|
+
const argumentsTypes = [
|
|
66
|
+
null,
|
|
67
|
+
null,
|
|
68
|
+
'u64'
|
|
69
|
+
];
|
|
70
|
+
const parameterNames = ["vault", "release", "value"];
|
|
71
|
+
return (tx) => tx.moveCall({
|
|
72
|
+
package: packageAddress,
|
|
73
|
+
module: 'release_revenue_distributor',
|
|
74
|
+
function: 'redeem_and_distribute',
|
|
75
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
76
|
+
typeArguments: options.typeArguments
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Receive selected `Coin<Currency>` objects sent to the Release and distribute
|
|
81
|
+
* their combined value according to the immutable tracklist. Anyone may crank this
|
|
82
|
+
* after installation.
|
|
83
|
+
*/
|
|
84
|
+
export function receiveAndDistribute(options) {
|
|
85
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
86
|
+
const argumentsTypes = [
|
|
87
|
+
null,
|
|
88
|
+
null,
|
|
89
|
+
'vector<null>'
|
|
90
|
+
];
|
|
91
|
+
const parameterNames = ["vault", "release", "coins"];
|
|
92
|
+
return (tx) => tx.moveCall({
|
|
93
|
+
package: packageAddress,
|
|
94
|
+
module: 'release_revenue_distributor',
|
|
95
|
+
function: 'receive_and_distribute',
|
|
96
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
97
|
+
typeArguments: options.typeArguments
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
export function isInstalled(options) {
|
|
101
|
+
const packageAddress = options.package ?? '@local-pkg/release_revenue_distributor';
|
|
102
|
+
const argumentsTypes = [
|
|
103
|
+
null
|
|
104
|
+
];
|
|
105
|
+
const parameterNames = ["vault"];
|
|
106
|
+
return (tx) => tx.moveCall({
|
|
107
|
+
package: packageAddress,
|
|
108
|
+
module: 'release_revenue_distributor',
|
|
109
|
+
function: 'is_installed',
|
|
110
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=release_revenue_distributor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release_revenue_distributor.js","sourceRoot":"","sources":["../../../src/contracts/release_revenue_distributor/release_revenue_distributor.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Canonical installation identity for the release revenue distributor. */
|
|
5
|
+
import { MoveTuple } from '../utils/index.js';
|
|
6
|
+
export declare const Witness: MoveTuple<readonly [import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">], "@local-pkg/release_revenue_distributor::witness::Witness">;
|
|
7
|
+
//# sourceMappingURL=witness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"witness.d.ts","sourceRoot":"","sources":["../../../src/contracts/release_revenue_distributor/witness.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,2EAA2E;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,eAAO,MAAM,OAAO,+IAA2E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Canonical installation identity for the release revenue distributor. */
|
|
5
|
+
import { MoveTuple } from '../utils/index.js';
|
|
6
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
7
|
+
const $moduleName = '@local-pkg/release_revenue_distributor::witness';
|
|
8
|
+
export const Witness = new MoveTuple({ name: `${$moduleName}::Witness`, fields: [bcs.bool()] });
|
|
9
|
+
//# sourceMappingURL=witness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"witness.js","sourceRoot":"","sources":["../../../src/contracts/release_revenue_distributor/witness.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,2EAA2E;AAE3E,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,iDAAiD,CAAC;AACtE,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A position holding share tokens registered against a `RoyaltyPool`.
|
|
6
|
+
*
|
|
7
|
+
* Stakes are owned objects with an immutable balance — to increase a holder's
|
|
8
|
+
* total staked amount, mint additional Stake objects rather than modify an
|
|
9
|
+
* existing one. This mirrors Sui's native staking model.
|
|
10
|
+
*
|
|
11
|
+
* Each stake tracks the royalty pools it is currently registered with via an
|
|
12
|
+
* inline `VecMap<TypeName, Registration>`, keyed by the pool's `Currency`
|
|
13
|
+
* `TypeName`. The stake cannot be destroyed while any registrations remain. Pool
|
|
14
|
+
* registrations are mutated by `royalty_pool::pool` through the package-private
|
|
15
|
+
* accessors below.
|
|
16
|
+
*/
|
|
17
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
18
|
+
export declare const Registration: MoveStruct<{
|
|
19
|
+
pool_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
20
|
+
last_claim_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
21
|
+
}, "royalty_pool::stake::Registration">;
|
|
22
|
+
export declare const Stake: MoveStruct<{
|
|
23
|
+
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
24
|
+
/** The staked balance. Immutable after creation. */
|
|
25
|
+
balance: MoveStruct<{
|
|
26
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
27
|
+
}, "0x2::balance::Balance<phantom T>">;
|
|
28
|
+
/**
|
|
29
|
+
* Active royalty-pool registrations, keyed by `Currency` `TypeName`. Must be empty
|
|
30
|
+
* to destroy.
|
|
31
|
+
*/
|
|
32
|
+
registrations: MoveStruct<{
|
|
33
|
+
contents: import("@mysten/sui/bcs").BcsType<{
|
|
34
|
+
key: {
|
|
35
|
+
name: string;
|
|
36
|
+
};
|
|
37
|
+
value: {
|
|
38
|
+
pool_id: string;
|
|
39
|
+
last_claim_index: string;
|
|
40
|
+
};
|
|
41
|
+
}[], Iterable<{
|
|
42
|
+
key: {
|
|
43
|
+
name: string;
|
|
44
|
+
};
|
|
45
|
+
value: {
|
|
46
|
+
pool_id: string | Uint8Array<ArrayBufferLike>;
|
|
47
|
+
last_claim_index: string | number | bigint;
|
|
48
|
+
};
|
|
49
|
+
}> & {
|
|
50
|
+
length: number;
|
|
51
|
+
}, string>;
|
|
52
|
+
}, "0x2::vec_map::VecMap<std::type_name::TypeName, royalty_pool::stake::Registration>">;
|
|
53
|
+
}, "royalty_pool::stake::Stake<phantom Share>">;
|
|
54
|
+
//# sourceMappingURL=stake.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stake.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/routed_stake/deps/royalty_pool/stake.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAMrD,eAAO,MAAM,YAAY;;;uCAGjB,CAAC;AACT,eAAO,MAAM,KAAK;;IAEV,oDAAoD;;;;IAEpD;;;OAGG;;;;;;;;;;;;;;;;;;;;;;+CAEH,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A position holding share tokens registered against a `RoyaltyPool`.
|
|
6
|
+
*
|
|
7
|
+
* Stakes are owned objects with an immutable balance — to increase a holder's
|
|
8
|
+
* total staked amount, mint additional Stake objects rather than modify an
|
|
9
|
+
* existing one. This mirrors Sui's native staking model.
|
|
10
|
+
*
|
|
11
|
+
* Each stake tracks the royalty pools it is currently registered with via an
|
|
12
|
+
* inline `VecMap<TypeName, Registration>`, keyed by the pool's `Currency`
|
|
13
|
+
* `TypeName`. The stake cannot be destroyed while any registrations remain. Pool
|
|
14
|
+
* registrations are mutated by `royalty_pool::pool` through the package-private
|
|
15
|
+
* accessors below.
|
|
16
|
+
*/
|
|
17
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
18
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
19
|
+
import * as balance from '../sui/balance.js';
|
|
20
|
+
import * as vec_map from '../sui/vec_map.js';
|
|
21
|
+
import * as type_name from '../std/type_name.js';
|
|
22
|
+
const $moduleName = 'royalty_pool::stake';
|
|
23
|
+
export const Registration = new MoveStruct({ name: `${$moduleName}::Registration`, fields: {
|
|
24
|
+
pool_id: bcs.Address,
|
|
25
|
+
last_claim_index: bcs.u256()
|
|
26
|
+
} });
|
|
27
|
+
export const Stake = new MoveStruct({ name: `${$moduleName}::Stake<phantom Share>`, fields: {
|
|
28
|
+
id: bcs.Address,
|
|
29
|
+
/** The staked balance. Immutable after creation. */
|
|
30
|
+
balance: balance.Balance,
|
|
31
|
+
/**
|
|
32
|
+
* Active royalty-pool registrations, keyed by `Currency` `TypeName`. Must be empty
|
|
33
|
+
* to destroy.
|
|
34
|
+
*/
|
|
35
|
+
registrations: vec_map.VecMap(type_name.TypeName, Registration)
|
|
36
|
+
} });
|
|
37
|
+
//# sourceMappingURL=stake.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stake.js","sourceRoot":"","sources":["../../../../../src/contracts/routed_stake/deps/royalty_pool/stake.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAC;AACjD,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,gBAAgB,EAAE,MAAM,EAAE;QACnF,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,gBAAgB,EAAE,GAAG,CAAC,IAAI,EAAE;KAC/B,EAAE,CAAC,CAAC;AACT,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,wBAAwB,EAAE,MAAM,EAAE;QACpF,EAAE,EAAE,GAAG,CAAC,OAAO;QACf,oDAAoD;QACpD,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB;;;WAGG;QACH,aAAa,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC;KAClE,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Functionality for converting Move types into values. Use with care! */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
export declare const TypeName: MoveStruct<{
|
|
7
|
+
/**
|
|
8
|
+
* String representation of the type. All types are represented using their source
|
|
9
|
+
* syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
|
|
10
|
+
* Struct types are represented as fully qualified type names; e.g.
|
|
11
|
+
* `00000000000000000000000000000001::string::String` or
|
|
12
|
+
* `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
|
|
13
|
+
* Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
|
|
14
|
+
* 32 depending on the Move platform)
|
|
15
|
+
*/
|
|
16
|
+
name: import("@mysten/sui/bcs").BcsType<string, string, "string">;
|
|
17
|
+
}, "std::type_name::TypeName">;
|
|
18
|
+
//# sourceMappingURL=type_name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type_name.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/routed_stake/deps/std/type_name.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,0EAA0E;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,eAAO,MAAM,QAAQ;IACb;;;;;;;;SAQK;;8BAEL,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/** Functionality for converting Move types into values. Use with care! */
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
7
|
+
const $moduleName = 'std::type_name';
|
|
8
|
+
export const TypeName = new MoveStruct({ name: `${$moduleName}::TypeName`, fields: {
|
|
9
|
+
/**
|
|
10
|
+
* String representation of the type. All types are represented using their source
|
|
11
|
+
* syntax: "u8", "u64", "bool", "address", "vector", and so on for primitive types.
|
|
12
|
+
* Struct types are represented as fully qualified type names; e.g.
|
|
13
|
+
* `00000000000000000000000000000001::string::String` or
|
|
14
|
+
* `0000000000000000000000000000000a::module_name1::type_name1<0000000000000000000000000000000a::module_name2::type_name2<u64>>`
|
|
15
|
+
* Addresses are hex-encoded lowercase values of length ADDRESS_LENGTH (16, 20, or
|
|
16
|
+
* 32 depending on the Move platform)
|
|
17
|
+
*/
|
|
18
|
+
name: bcs.string()
|
|
19
|
+
} });
|
|
20
|
+
//# sourceMappingURL=type_name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type_name.js","sourceRoot":"","sources":["../../../../../src/contracts/routed_stake/deps/std/type_name.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE,0EAA0E;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AACrC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,EAAE,MAAM,EAAE;QAC3E;;;;;;;;aAQK;QACL,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE;KACrB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A storable handler for Balances in general. Is used in the `Coin` module to
|
|
6
|
+
* allow balance operations and can be used to implement custom coins with `Supply`
|
|
7
|
+
* and `Balance`s.
|
|
8
|
+
*/
|
|
9
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
10
|
+
export declare const Balance: MoveStruct<{
|
|
11
|
+
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
12
|
+
}, "0x2::balance::Balance<phantom T>">;
|
|
13
|
+
//# sourceMappingURL=balance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/routed_stake/deps/sui/balance.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,eAAO,MAAM,OAAO;;sCAEZ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
/**
|
|
5
|
+
* A storable handler for Balances in general. Is used in the `Coin` module to
|
|
6
|
+
* allow balance operations and can be used to implement custom coins with `Supply`
|
|
7
|
+
* and `Balance`s.
|
|
8
|
+
*/
|
|
9
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
10
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
11
|
+
const $moduleName = '0x2::balance';
|
|
12
|
+
export const Balance = new MoveStruct({ name: `${$moduleName}::Balance<phantom T>`, fields: {
|
|
13
|
+
value: bcs.u64()
|
|
14
|
+
} });
|
|
15
|
+
//# sourceMappingURL=balance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../../../src/contracts/routed_stake/deps/sui/balance.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,sBAAsB,EAAE,MAAM,EAAE;QACpF,KAAK,EAAE,GAAG,CAAC,GAAG,EAAE;KACnB,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { type BcsType } from '@mysten/sui/bcs';
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
/** An entry in the map */
|
|
7
|
+
export declare function Entry<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
|
|
8
|
+
K,
|
|
9
|
+
V
|
|
10
|
+
]): MoveStruct<{
|
|
11
|
+
key: K;
|
|
12
|
+
value: V;
|
|
13
|
+
}, `0x2::vec_map::Entry<${K["name"]}, ${V["name"]}>`>;
|
|
14
|
+
/**
|
|
15
|
+
* A map data structure backed by a vector. The map is guaranteed not to contain
|
|
16
|
+
* duplicate keys, but entries are _not_ sorted by key--entries are included in
|
|
17
|
+
* insertion order. All operations are O(N) in the size of the map--the intention
|
|
18
|
+
* of this data structure is only to provide the convenience of programming against
|
|
19
|
+
* a map API. Large maps should use handwritten parent/child relationships instead.
|
|
20
|
+
* Maps that need sorted iteration rather than insertion order iteration should
|
|
21
|
+
* also be handwritten.
|
|
22
|
+
*/
|
|
23
|
+
export declare function VecMap<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [
|
|
24
|
+
K,
|
|
25
|
+
V
|
|
26
|
+
]): MoveStruct<{
|
|
27
|
+
contents: BcsType<{
|
|
28
|
+
key: K extends BcsType<infer U, any, string> ? U : never;
|
|
29
|
+
value: V extends BcsType<infer U, any, string> ? U : never;
|
|
30
|
+
}[], Iterable<{
|
|
31
|
+
key: K extends BcsType<any, infer U_1, string> ? U_1 : never;
|
|
32
|
+
value: V extends BcsType<any, infer U_1, string> ? U_1 : never;
|
|
33
|
+
}> & {
|
|
34
|
+
length: number;
|
|
35
|
+
}, string>;
|
|
36
|
+
}, `0x2::vec_map::VecMap<${K["name"]}, ${V["name"]}>`>;
|
|
37
|
+
//# sourceMappingURL=vec_map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vec_map.d.ts","sourceRoot":"","sources":["../../../../../src/contracts/routed_stake/deps/sui/vec_map.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAE,KAAK,OAAO,EAAO,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,0BAA0B;AAC1B,wBAAgB,KAAK,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IACrF,CAAC;IACD,CAAC;CACJ;;;sDAKA;AACD;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,cAAc,EAAE;IACtF,CAAC;IACD,CAAC;CACJ;;;;;;;;;;uDAIA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
import { bcs } from '@mysten/sui/bcs';
|
|
5
|
+
import { MoveStruct } from '../../../utils/index.js';
|
|
6
|
+
const $moduleName = '0x2::vec_map';
|
|
7
|
+
/** An entry in the map */
|
|
8
|
+
export function Entry(...typeParameters) {
|
|
9
|
+
return new MoveStruct({ name: `${$moduleName}::Entry<${typeParameters[0].name}, ${typeParameters[1].name}>`, fields: {
|
|
10
|
+
key: typeParameters[0],
|
|
11
|
+
value: typeParameters[1]
|
|
12
|
+
} });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A map data structure backed by a vector. The map is guaranteed not to contain
|
|
16
|
+
* duplicate keys, but entries are _not_ sorted by key--entries are included in
|
|
17
|
+
* insertion order. All operations are O(N) in the size of the map--the intention
|
|
18
|
+
* of this data structure is only to provide the convenience of programming against
|
|
19
|
+
* a map API. Large maps should use handwritten parent/child relationships instead.
|
|
20
|
+
* Maps that need sorted iteration rather than insertion order iteration should
|
|
21
|
+
* also be handwritten.
|
|
22
|
+
*/
|
|
23
|
+
export function VecMap(...typeParameters) {
|
|
24
|
+
return new MoveStruct({ name: `${$moduleName}::VecMap<${typeParameters[0].name}, ${typeParameters[1].name}>`, fields: {
|
|
25
|
+
contents: bcs.vector(Entry(typeParameters[0], typeParameters[1]))
|
|
26
|
+
} });
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=vec_map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vec_map.js","sourceRoot":"","sources":["../../../../../src/contracts/routed_stake/deps/sui/vec_map.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAChE,OAAO,EAAgB,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,MAAM,WAAW,GAAG,cAAc,CAAC;AACnC,0BAA0B;AAC1B,MAAM,UAAU,KAAK,CAAiD,GAAG,cAGxE;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,WAAW,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,GAAG,EAAE,MAAM,EAAE;YACvI,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;YACtB,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;SAC3B,EAAE,CAAC,CAAC;AACb,CAAC;AACD;;;;;;;;GAQG;AACH,MAAM,UAAU,MAAM,CAAiD,GAAG,cAGzE;IACG,OAAO,IAAI,UAAU,CAAC,EAAE,IAAI,EAAE,GAAG,WAAW,YAAY,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,KAAK,cAAc,CAAC,CAAC,CAAC,CAAC,IAAiB,GAAG,EAAE,MAAM,EAAE;YACxI,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;SACpE,EAAE,CAAC,CAAC;AACb,CAAC"}
|