@misonetwork/sdk 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -98
- package/dist/contracts.d.ts +0 -12
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +3 -16
- package/dist/contracts.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +7 -3
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +22 -4
- package/dist/internal.js.map +1 -1
- package/dist/queries.d.ts +8 -0
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +30 -8
- package/dist/queries.js.map +1 -1
- package/package.json +1 -13
- package/src/contracts.ts +3 -19
- package/src/index.ts +3 -3
- package/src/internal.ts +34 -15
- package/src/queries.ts +40 -12
- package/dist/contracts/composition_credits/composition_credits.d.ts +0 -181
- package/dist/contracts/composition_credits/composition_credits.d.ts.map +0 -1
- package/dist/contracts/composition_credits/composition_credits.js +0 -109
- package/dist/contracts/composition_credits/composition_credits.js.map +0 -1
- package/dist/contracts/composition_credits/composition_party_role.d.ts +0 -119
- package/dist/contracts/composition_credits/composition_party_role.d.ts.map +0 -1
- package/dist/contracts/composition_credits/composition_party_role.js +0 -139
- package/dist/contracts/composition_credits/composition_party_role.js.map +0 -1
- package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts +0 -24
- package/dist/contracts/composition_credits/deps/miso_credit/credit.d.ts.map +0 -1
- package/dist/contracts/composition_credits/deps/miso_credit/credit.js +0 -23
- package/dist/contracts/composition_credits/deps/miso_credit/credit.js.map +0 -1
- package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts +0 -37
- package/dist/contracts/composition_credits/deps/sui/vec_map.d.ts.map +0 -1
- package/dist/contracts/composition_credits/deps/sui/vec_map.js +0 -28
- package/dist/contracts/composition_credits/deps/sui/vec_map.js.map +0 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts +0 -87
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.d.ts.map +0 -1
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js +0 -80
- package/dist/contracts/composition_royalty_pool/composition_royalty_pool.js.map +0 -1
- package/dist/contracts/cover_art/cover_art.d.ts +0 -85
- package/dist/contracts/cover_art/cover_art.d.ts.map +0 -1
- package/dist/contracts/cover_art/cover_art.js +0 -68
- package/dist/contracts/cover_art/cover_art.js.map +0 -1
- package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts +0 -52
- package/dist/contracts/cover_art/deps/ori/walrus_data.d.ts.map +0 -1
- package/dist/contracts/cover_art/deps/ori/walrus_data.js +0 -37
- package/dist/contracts/cover_art/deps/ori/walrus_data.js.map +0 -1
- package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts +0 -24
- package/dist/contracts/recording_credits/deps/miso_credit/credit.d.ts.map +0 -1
- package/dist/contracts/recording_credits/deps/miso_credit/credit.js +0 -23
- package/dist/contracts/recording_credits/deps/miso_credit/credit.js.map +0 -1
- package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts +0 -37
- package/dist/contracts/recording_credits/deps/sui/vec_map.d.ts.map +0 -1
- package/dist/contracts/recording_credits/deps/sui/vec_map.js +0 -28
- package/dist/contracts/recording_credits/deps/sui/vec_map.js.map +0 -1
- package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts +0 -21
- package/dist/contracts/recording_credits/deps/sui/vec_set.d.ts.map +0 -1
- package/dist/contracts/recording_credits/deps/sui/vec_set.js +0 -20
- package/dist/contracts/recording_credits/deps/sui/vec_set.js.map +0 -1
- package/dist/contracts/recording_credits/recording_credits.d.ts +0 -2313
- package/dist/contracts/recording_credits/recording_credits.d.ts.map +0 -1
- package/dist/contracts/recording_credits/recording_credits.js +0 -270
- package/dist/contracts/recording_credits/recording_credits.js.map +0 -1
- package/dist/contracts/recording_credits/recording_party_role.d.ts +0 -1174
- package/dist/contracts/recording_credits/recording_party_role.d.ts.map +0 -1
- package/dist/contracts/recording_credits/recording_party_role.js +0 -692
- package/dist/contracts/recording_credits/recording_party_role.js.map +0 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts +0 -90
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.d.ts.map +0 -1
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js +0 -80
- package/dist/contracts/recording_royalty_pool/recording_royalty_pool.js.map +0 -1
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts +0 -52
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.d.ts.map +0 -1
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js +0 -37
- package/dist/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.js.map +0 -1
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts +0 -46
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.d.ts.map +0 -1
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js +0 -21
- package/dist/contracts/release_cover_art/deps/cover_art/cover_art.js.map +0 -1
- package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts +0 -33
- package/dist/contracts/release_cover_art/deps/per_track/per_track.d.ts.map +0 -1
- package/dist/contracts/release_cover_art/deps/per_track/per_track.js +0 -32
- package/dist/contracts/release_cover_art/deps/per_track/per_track.js.map +0 -1
- package/dist/contracts/release_cover_art/release_cover_art.d.ts +0 -300
- package/dist/contracts/release_cover_art/release_cover_art.d.ts.map +0 -1
- package/dist/contracts/release_cover_art/release_cover_art.js +0 -168
- package/dist/contracts/release_cover_art/release_cover_art.js.map +0 -1
- package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts +0 -24
- package/dist/contracts/release_credits/deps/miso_credit/credit.d.ts.map +0 -1
- package/dist/contracts/release_credits/deps/miso_credit/credit.js +0 -23
- package/dist/contracts/release_credits/deps/miso_credit/credit.js.map +0 -1
- package/dist/contracts/release_credits/deps/sui/vec_map.d.ts +0 -37
- package/dist/contracts/release_credits/deps/sui/vec_map.d.ts.map +0 -1
- package/dist/contracts/release_credits/deps/sui/vec_map.js +0 -28
- package/dist/contracts/release_credits/deps/sui/vec_map.js.map +0 -1
- package/dist/contracts/release_credits/release_credits.d.ts +0 -142
- package/dist/contracts/release_credits/release_credits.d.ts.map +0 -1
- package/dist/contracts/release_credits/release_credits.js +0 -108
- package/dist/contracts/release_credits/release_credits.js.map +0 -1
- package/dist/contracts/release_credits/release_party_role.d.ts +0 -58
- package/dist/contracts/release_credits/release_party_role.d.ts.map +0 -1
- package/dist/contracts/release_credits/release_party_role.js +0 -66
- package/dist/contracts/release_credits/release_party_role.js.map +0 -1
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts +0 -18
- package/dist/contracts/royalty_pool/deps/std/type_name.d.ts.map +0 -1
- package/dist/contracts/royalty_pool/deps/std/type_name.js +0 -20
- package/dist/contracts/royalty_pool/deps/std/type_name.js.map +0 -1
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts +0 -13
- package/dist/contracts/royalty_pool/deps/sui/balance.d.ts.map +0 -1
- package/dist/contracts/royalty_pool/deps/sui/balance.js +0 -15
- package/dist/contracts/royalty_pool/deps/sui/balance.js.map +0 -1
- package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts +0 -37
- package/dist/contracts/royalty_pool/deps/sui/vec_map.d.ts.map +0 -1
- package/dist/contracts/royalty_pool/deps/sui/vec_map.js +0 -28
- package/dist/contracts/royalty_pool/deps/sui/vec_map.js.map +0 -1
- package/dist/contracts/royalty_pool/pool.d.ts +0 -358
- package/dist/contracts/royalty_pool/pool.d.ts.map +0 -1
- package/dist/contracts/royalty_pool/pool.js +0 -352
- package/dist/contracts/royalty_pool/pool.js.map +0 -1
- package/dist/contracts/royalty_pool/stake.d.ts +0 -202
- package/dist/contracts/royalty_pool/stake.d.ts.map +0 -1
- package/dist/contracts/royalty_pool/stake.js +0 -197
- package/dist/contracts/royalty_pool/stake.js.map +0 -1
- package/dist/cover.d.ts +0 -48
- package/dist/cover.d.ts.map +0 -1
- package/dist/cover.js +0 -68
- package/dist/cover.js.map +0 -1
- package/dist/credits.d.ts +0 -171
- package/dist/credits.d.ts.map +0 -1
- package/dist/credits.js +0 -360
- package/dist/credits.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/composition_credits/composition_credits.ts +0 -169
- package/src/contracts/composition_credits/composition_party_role.ts +0 -189
- package/src/contracts/composition_credits/deps/miso_credit/credit.ts +0 -27
- package/src/contracts/composition_credits/deps/sui/vec_map.ts +0 -33
- package/src/contracts/composition_royalty_pool/composition_royalty_pool.ts +0 -135
- package/src/contracts/cover_art/cover_art.ts +0 -99
- package/src/contracts/cover_art/deps/ori/walrus_data.ts +0 -36
- package/src/contracts/recording_credits/deps/miso_credit/credit.ts +0 -27
- package/src/contracts/recording_credits/deps/sui/vec_map.ts +0 -33
- package/src/contracts/recording_credits/deps/sui/vec_set.ts +0 -21
- package/src/contracts/recording_credits/recording_credits.ts +0 -458
- package/src/contracts/recording_credits/recording_party_role.ts +0 -1041
- package/src/contracts/recording_royalty_pool/recording_royalty_pool.ts +0 -138
- package/src/contracts/release_cover_art/deps/0x340057f2174fb59e4626742dd2b46c662237837b6187450cb59e4976ce7eac78/walrus_data.ts +0 -36
- package/src/contracts/release_cover_art/deps/cover_art/cover_art.ts +0 -23
- package/src/contracts/release_cover_art/deps/per_track/per_track.ts +0 -36
- package/src/contracts/release_cover_art/release_cover_art.ts +0 -251
- package/src/contracts/release_credits/deps/miso_credit/credit.ts +0 -27
- package/src/contracts/release_credits/deps/sui/vec_map.ts +0 -33
- package/src/contracts/release_credits/release_credits.ts +0 -156
- package/src/contracts/release_credits/release_party_role.ts +0 -87
- package/src/contracts/royalty_pool/deps/std/type_name.ts +0 -22
- package/src/contracts/royalty_pool/deps/sui/balance.ts +0 -17
- package/src/contracts/royalty_pool/deps/sui/vec_map.ts +0 -33
- package/src/contracts/royalty_pool/pool.ts +0 -577
- package/src/contracts/royalty_pool/stake.ts +0 -317
- package/src/cover.ts +0 -136
- package/src/credits.ts +0 -645
- package/src/extensions/royalty-pool.ts +0 -85
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
/**************************************************************
|
|
2
|
-
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
-
**************************************************************/
|
|
4
|
-
/**
|
|
5
|
-
* Generic accumulator-based royalty distribution pool.
|
|
6
|
-
*
|
|
7
|
-
* A `RoyaltyPool<Share, Currency>` is a derived object of any UID-bearing parent.
|
|
8
|
-
* Its address is deterministically derived from `(parent_id, Currency)` — at most
|
|
9
|
-
* one pool per `(parent, Currency)` pair. The `Share` phantom identifies which
|
|
10
|
-
* share-token type can stake against the pool.
|
|
11
|
-
*
|
|
12
|
-
* Holders create a `Stake<Share>` (see `royalty_pool::stake`) and register it.
|
|
13
|
-
* Callers fund the pool by handing it a `Balance<Currency>` via `deposit`; the
|
|
14
|
-
* accumulator advances and claims pay out the per-stake proportional share since
|
|
15
|
-
* each stake's last claim.
|
|
16
|
-
*
|
|
17
|
-
* `receive_and_deposit` and `redeem_and_deposit` exist as recovery valves for
|
|
18
|
-
* funds that land directly at the pool's address — either pending `Coin<Currency>`
|
|
19
|
-
* transfers or balances credited to the pool's funds-accumulator. Both are
|
|
20
|
-
* permissionless: anyone who notices stuck funds can fold them in. The canonical
|
|
21
|
-
* funding path remains `deposit(balance)` from a higher-layer extension (e.g.
|
|
22
|
-
* `composition_royalty_distributor`) that pulls from the parent's address.
|
|
23
|
-
*/
|
|
24
|
-
import { MoveStruct, MoveTuple, normalizeMoveArguments } from '../utils/index.js';
|
|
25
|
-
import { bcs } from '@mysten/sui/bcs';
|
|
26
|
-
import {} from '@mysten/sui/transactions';
|
|
27
|
-
import * as balance_1 from './deps/sui/balance.js';
|
|
28
|
-
const $moduleName = '@local-pkg/royalty_pool::pool';
|
|
29
|
-
export const RoyaltyPool = new MoveStruct({ name: `${$moduleName}::RoyaltyPool<phantom Share, phantom Currency>`, fields: {
|
|
30
|
-
id: bcs.Address,
|
|
31
|
-
balance: balance_1.Balance,
|
|
32
|
-
staked_shares: bcs.u64(),
|
|
33
|
-
cumulative_reward_per_share: bcs.u256(),
|
|
34
|
-
/**
|
|
35
|
-
* Lifetime sum of every deposited value, in currency base units. Read-only
|
|
36
|
-
* analytics — never decremented; not used by any on-chain logic.
|
|
37
|
-
*/
|
|
38
|
-
cumulative_deposits: bcs.u128()
|
|
39
|
-
} });
|
|
40
|
-
export const RoyaltyPoolKey = new MoveTuple({ name: `${$moduleName}::RoyaltyPoolKey<phantom Currency>`, fields: [bcs.bool()] });
|
|
41
|
-
export const RoyaltyPoolCreatedEvent = new MoveStruct({ name: `${$moduleName}::RoyaltyPoolCreatedEvent<phantom Share, phantom Currency>`, fields: {
|
|
42
|
-
pool_id: bcs.Address,
|
|
43
|
-
parent_id: bcs.Address
|
|
44
|
-
} });
|
|
45
|
-
export const RoyaltyDepositedEvent = new MoveStruct({ name: `${$moduleName}::RoyaltyDepositedEvent<phantom Share, phantom Currency>`, fields: {
|
|
46
|
-
pool_id: bcs.Address,
|
|
47
|
-
value: bcs.u64()
|
|
48
|
-
} });
|
|
49
|
-
export const StakeRegisteredEvent = new MoveStruct({ name: `${$moduleName}::StakeRegisteredEvent<phantom Share, phantom Currency>`, fields: {
|
|
50
|
-
pool_id: bcs.Address,
|
|
51
|
-
stake_id: bcs.Address,
|
|
52
|
-
staked_amount: bcs.u64()
|
|
53
|
-
} });
|
|
54
|
-
export const StakeUnregisteredEvent = new MoveStruct({ name: `${$moduleName}::StakeUnregisteredEvent<phantom Share, phantom Currency>`, fields: {
|
|
55
|
-
pool_id: bcs.Address,
|
|
56
|
-
stake_id: bcs.Address,
|
|
57
|
-
unstaked_amount: bcs.u64()
|
|
58
|
-
} });
|
|
59
|
-
export const RoyaltyClaimedEvent = new MoveStruct({ name: `${$moduleName}::RoyaltyClaimedEvent<phantom Share, phantom Currency>`, fields: {
|
|
60
|
-
pool_id: bcs.Address,
|
|
61
|
-
stake_id: bcs.Address,
|
|
62
|
-
reward_amount: bcs.u64()
|
|
63
|
-
} });
|
|
64
|
-
/**
|
|
65
|
-
* Construct a pool as a derived object of `parent`. The derivation key includes
|
|
66
|
-
* only the `Currency` `TypeName`, so the pool's address is determined entirely by
|
|
67
|
-
* `(parent_id, Currency)`.
|
|
68
|
-
*
|
|
69
|
-
* Cap-gating happens at the parent: callers must obtain `&mut UID` via whatever
|
|
70
|
-
* cap-gated accessor the parent exposes.
|
|
71
|
-
*/
|
|
72
|
-
export function _new(options) {
|
|
73
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
74
|
-
const argumentsTypes = [
|
|
75
|
-
'0x2::object::ID'
|
|
76
|
-
];
|
|
77
|
-
const parameterNames = ["parent"];
|
|
78
|
-
return (tx) => tx.moveCall({
|
|
79
|
-
package: packageAddress,
|
|
80
|
-
module: 'pool',
|
|
81
|
-
function: 'new',
|
|
82
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
83
|
-
typeArguments: options.typeArguments
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
/** Share the pool object so holders can register and claim against it. */
|
|
87
|
-
export function share(options) {
|
|
88
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
89
|
-
const argumentsTypes = [
|
|
90
|
-
null
|
|
91
|
-
];
|
|
92
|
-
const parameterNames = ["self"];
|
|
93
|
-
return (tx) => tx.moveCall({
|
|
94
|
-
package: packageAddress,
|
|
95
|
-
module: 'pool',
|
|
96
|
-
function: 'share',
|
|
97
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
98
|
-
typeArguments: options.typeArguments
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Fold a balance into the accumulator. Aborts on zero staked shares (the deposit
|
|
103
|
-
* would be unattributable) or zero value (no-op deposits are rejected to keep
|
|
104
|
-
* events meaningful).
|
|
105
|
-
*
|
|
106
|
-
* Callers obtain the `Balance<Currency>` however they like — typically by pulling
|
|
107
|
-
* from a parent's pending coins or funds accumulator (see e.g.
|
|
108
|
-
* `composition_royalty_distributor`).
|
|
109
|
-
*/
|
|
110
|
-
export function deposit(options) {
|
|
111
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
112
|
-
const argumentsTypes = [
|
|
113
|
-
null,
|
|
114
|
-
null
|
|
115
|
-
];
|
|
116
|
-
const parameterNames = ["self", "balance"];
|
|
117
|
-
return (tx) => tx.moveCall({
|
|
118
|
-
package: packageAddress,
|
|
119
|
-
module: 'pool',
|
|
120
|
-
function: 'deposit',
|
|
121
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
122
|
-
typeArguments: options.typeArguments
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Receive `Coin<Currency>` objects sent directly to this pool's address and fold
|
|
127
|
-
* them into the accumulator. Recovery path for funds delivered to the pool's
|
|
128
|
-
* address rather than via the canonical extension path.
|
|
129
|
-
*/
|
|
130
|
-
export function receiveAndDeposit(options) {
|
|
131
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
132
|
-
const argumentsTypes = [
|
|
133
|
-
null,
|
|
134
|
-
'vector<null>'
|
|
135
|
-
];
|
|
136
|
-
const parameterNames = ["self", "coins"];
|
|
137
|
-
return (tx) => tx.moveCall({
|
|
138
|
-
package: packageAddress,
|
|
139
|
-
module: 'pool',
|
|
140
|
-
function: 'receive_and_deposit',
|
|
141
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
142
|
-
typeArguments: options.typeArguments
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Redeem `value` base units from the pool's funds-accumulator and fold them into
|
|
147
|
-
* the accumulator. Recovery path for funds delivered via Sui's `send_funds`
|
|
148
|
-
* mechanism rather than via the canonical extension path.
|
|
149
|
-
*/
|
|
150
|
-
export function redeemAndDeposit(options) {
|
|
151
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
152
|
-
const argumentsTypes = [
|
|
153
|
-
null,
|
|
154
|
-
'u64'
|
|
155
|
-
];
|
|
156
|
-
const parameterNames = ["self", "value"];
|
|
157
|
-
return (tx) => tx.moveCall({
|
|
158
|
-
package: packageAddress,
|
|
159
|
-
module: 'pool',
|
|
160
|
-
function: 'redeem_and_deposit',
|
|
161
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
162
|
-
typeArguments: options.typeArguments
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Register a stake with the pool. Records the stake's entry index so future
|
|
167
|
-
* deposits accrue to it proportionally.
|
|
168
|
-
*
|
|
169
|
-
* Aborts if the stake is already registered with a pool of the same Currency.
|
|
170
|
-
*/
|
|
171
|
-
export function registerStake(options) {
|
|
172
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
173
|
-
const argumentsTypes = [
|
|
174
|
-
null,
|
|
175
|
-
null
|
|
176
|
-
];
|
|
177
|
-
const parameterNames = ["self", "stake"];
|
|
178
|
-
return (tx) => tx.moveCall({
|
|
179
|
-
package: packageAddress,
|
|
180
|
-
module: 'pool',
|
|
181
|
-
function: 'register_stake',
|
|
182
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
183
|
-
typeArguments: options.typeArguments
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Unregister a stake from the pool. All claimable rewards must be drained first —
|
|
188
|
-
* i.e., a final `claim_rewards` call must yield 0. Sub-base-unit residue in
|
|
189
|
-
* `last_claim_index` (left by the consumed-index advance when a reward truncated
|
|
190
|
-
* to 0) does NOT block unregister, since that residue could never be claimed as a
|
|
191
|
-
* whole base unit anyway. Forfeiting it on exit is the deliberate semantics.
|
|
192
|
-
*/
|
|
193
|
-
export function unregisterStake(options) {
|
|
194
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
195
|
-
const argumentsTypes = [
|
|
196
|
-
null,
|
|
197
|
-
null
|
|
198
|
-
];
|
|
199
|
-
const parameterNames = ["self", "stake"];
|
|
200
|
-
return (tx) => tx.moveCall({
|
|
201
|
-
package: packageAddress,
|
|
202
|
-
module: 'pool',
|
|
203
|
-
function: 'unregister_stake',
|
|
204
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
205
|
-
typeArguments: options.typeArguments
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Claim accrued rewards for a registered stake. Advances the stake's
|
|
210
|
-
* `last_claim_index` to the pool's current accumulator.
|
|
211
|
-
*/
|
|
212
|
-
export function claimRewards(options) {
|
|
213
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
214
|
-
const argumentsTypes = [
|
|
215
|
-
null,
|
|
216
|
-
null
|
|
217
|
-
];
|
|
218
|
-
const parameterNames = ["self", "stake"];
|
|
219
|
-
return (tx) => tx.moveCall({
|
|
220
|
-
package: packageAddress,
|
|
221
|
-
module: 'pool',
|
|
222
|
-
function: 'claim_rewards',
|
|
223
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
224
|
-
typeArguments: options.typeArguments
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Compute pending rewards for a stake without claiming. Returns 0 if the stake is
|
|
229
|
-
* not registered with this pool.
|
|
230
|
-
*/
|
|
231
|
-
export function pendingRewards(options) {
|
|
232
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
233
|
-
const argumentsTypes = [
|
|
234
|
-
null,
|
|
235
|
-
null
|
|
236
|
-
];
|
|
237
|
-
const parameterNames = ["self", "stake"];
|
|
238
|
-
return (tx) => tx.moveCall({
|
|
239
|
-
package: packageAddress,
|
|
240
|
-
module: 'pool',
|
|
241
|
-
function: 'pending_rewards',
|
|
242
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
243
|
-
typeArguments: options.typeArguments
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
export function id(options) {
|
|
247
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
248
|
-
const argumentsTypes = [
|
|
249
|
-
null
|
|
250
|
-
];
|
|
251
|
-
const parameterNames = ["self"];
|
|
252
|
-
return (tx) => tx.moveCall({
|
|
253
|
-
package: packageAddress,
|
|
254
|
-
module: 'pool',
|
|
255
|
-
function: 'id',
|
|
256
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
257
|
-
typeArguments: options.typeArguments
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
export function balance(options) {
|
|
261
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
262
|
-
const argumentsTypes = [
|
|
263
|
-
null
|
|
264
|
-
];
|
|
265
|
-
const parameterNames = ["self"];
|
|
266
|
-
return (tx) => tx.moveCall({
|
|
267
|
-
package: packageAddress,
|
|
268
|
-
module: 'pool',
|
|
269
|
-
function: 'balance',
|
|
270
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
271
|
-
typeArguments: options.typeArguments
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
export function stakedShares(options) {
|
|
275
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
276
|
-
const argumentsTypes = [
|
|
277
|
-
null
|
|
278
|
-
];
|
|
279
|
-
const parameterNames = ["self"];
|
|
280
|
-
return (tx) => tx.moveCall({
|
|
281
|
-
package: packageAddress,
|
|
282
|
-
module: 'pool',
|
|
283
|
-
function: 'staked_shares',
|
|
284
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
285
|
-
typeArguments: options.typeArguments
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
export function cumulativeRewardPerShare(options) {
|
|
289
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
290
|
-
const argumentsTypes = [
|
|
291
|
-
null
|
|
292
|
-
];
|
|
293
|
-
const parameterNames = ["self"];
|
|
294
|
-
return (tx) => tx.moveCall({
|
|
295
|
-
package: packageAddress,
|
|
296
|
-
module: 'pool',
|
|
297
|
-
function: 'cumulative_reward_per_share',
|
|
298
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
299
|
-
typeArguments: options.typeArguments
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
/** Lifetime sum of all deposits, in currency base units. Strictly monotonic. */
|
|
303
|
-
export function cumulativeDeposits(options) {
|
|
304
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
305
|
-
const argumentsTypes = [
|
|
306
|
-
null
|
|
307
|
-
];
|
|
308
|
-
const parameterNames = ["self"];
|
|
309
|
-
return (tx) => tx.moveCall({
|
|
310
|
-
package: packageAddress,
|
|
311
|
-
module: 'pool',
|
|
312
|
-
function: 'cumulative_deposits',
|
|
313
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
314
|
-
typeArguments: options.typeArguments
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* Compute the deterministic address of a pool given its parent ID and `Currency`
|
|
319
|
-
* type parameter. Useful for off-chain derivation and for cross-module checks that
|
|
320
|
-
* the pool was minted from the expected parent.
|
|
321
|
-
*/
|
|
322
|
-
export function derivedAddress(options) {
|
|
323
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
324
|
-
const argumentsTypes = [
|
|
325
|
-
'0x2::object::ID'
|
|
326
|
-
];
|
|
327
|
-
const parameterNames = ["parentId"];
|
|
328
|
-
return (tx) => tx.moveCall({
|
|
329
|
-
package: packageAddress,
|
|
330
|
-
module: 'pool',
|
|
331
|
-
function: 'derived_address',
|
|
332
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
333
|
-
typeArguments: options.typeArguments
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
/** Read-only verification that the pool was derived from the given parent ID. */
|
|
337
|
-
export function assertDerivedFrom(options) {
|
|
338
|
-
const packageAddress = options.package ?? '@local-pkg/royalty_pool';
|
|
339
|
-
const argumentsTypes = [
|
|
340
|
-
null,
|
|
341
|
-
'0x2::object::ID'
|
|
342
|
-
];
|
|
343
|
-
const parameterNames = ["self", "parentId"];
|
|
344
|
-
return (tx) => tx.moveCall({
|
|
345
|
-
package: packageAddress,
|
|
346
|
-
module: 'pool',
|
|
347
|
-
function: 'assert_derived_from',
|
|
348
|
-
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
349
|
-
typeArguments: options.typeArguments
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
//# sourceMappingURL=pool.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pool.js","sourceRoot":"","sources":["../../../src/contracts/royalty_pool/pool.ts"],"names":[],"mappings":"AAAA;;gEAEgE;AAGhE;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,sBAAsB,EAA+B,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAA8C,MAAM,0BAA0B,CAAC;AACtF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,EAAE,cAAc,CAAC;QACpF,aAAa,EAAE,OAAO,CAAC,aAAa;KACvC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,202 +0,0 @@
|
|
|
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, type RawTransactionArgument } from '../utils/index.js';
|
|
18
|
-
import { type Transaction, type TransactionArgument } from '@mysten/sui/transactions';
|
|
19
|
-
export declare const Registration: MoveStruct<{
|
|
20
|
-
pool_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
21
|
-
last_claim_index: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
|
|
22
|
-
}, "@local-pkg/royalty_pool::stake::Registration">;
|
|
23
|
-
export declare const Stake: MoveStruct<{
|
|
24
|
-
id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
25
|
-
/** The staked balance. Immutable after creation. */
|
|
26
|
-
balance: MoveStruct<{
|
|
27
|
-
value: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
28
|
-
}, "0x2::balance::Balance<phantom T>">;
|
|
29
|
-
/**
|
|
30
|
-
* Active royalty-pool registrations, keyed by `Currency` `TypeName`. Must be empty
|
|
31
|
-
* to destroy.
|
|
32
|
-
*/
|
|
33
|
-
registrations: MoveStruct<{
|
|
34
|
-
contents: import("@mysten/sui/bcs").BcsType<{
|
|
35
|
-
key: {
|
|
36
|
-
name: string;
|
|
37
|
-
};
|
|
38
|
-
value: {
|
|
39
|
-
pool_id: string;
|
|
40
|
-
last_claim_index: string;
|
|
41
|
-
};
|
|
42
|
-
}[], Iterable<{
|
|
43
|
-
key: {
|
|
44
|
-
name: string;
|
|
45
|
-
};
|
|
46
|
-
value: {
|
|
47
|
-
pool_id: string | Uint8Array<ArrayBufferLike>;
|
|
48
|
-
last_claim_index: string | number | bigint;
|
|
49
|
-
};
|
|
50
|
-
}> & {
|
|
51
|
-
length: number;
|
|
52
|
-
}, string>;
|
|
53
|
-
}, "0x2::vec_map::VecMap<std::type_name::TypeName, @local-pkg/royalty_pool::stake::Registration>">;
|
|
54
|
-
}, "@local-pkg/royalty_pool::stake::Stake<phantom Share>">;
|
|
55
|
-
export declare const StakeCreatedEvent: MoveStruct<{
|
|
56
|
-
stake_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
57
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
58
|
-
}, "@local-pkg/royalty_pool::stake::StakeCreatedEvent<phantom Share>">;
|
|
59
|
-
export declare const StakeDestroyedEvent: MoveStruct<{
|
|
60
|
-
stake_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
|
|
61
|
-
amount: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
|
|
62
|
-
}, "@local-pkg/royalty_pool::stake::StakeDestroyedEvent<phantom Share>">;
|
|
63
|
-
export interface NewArguments {
|
|
64
|
-
balance: TransactionArgument;
|
|
65
|
-
}
|
|
66
|
-
export interface NewOptions {
|
|
67
|
-
package?: string;
|
|
68
|
-
arguments: NewArguments | [
|
|
69
|
-
balance: TransactionArgument
|
|
70
|
-
];
|
|
71
|
-
typeArguments: [
|
|
72
|
-
string
|
|
73
|
-
];
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Create a new stake with the given balance.
|
|
77
|
-
*
|
|
78
|
-
* Aborts if `balance` is zero.
|
|
79
|
-
*/
|
|
80
|
-
export declare function _new(options: NewOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
81
|
-
export interface DestroyArguments {
|
|
82
|
-
stake: RawTransactionArgument<string>;
|
|
83
|
-
}
|
|
84
|
-
export interface DestroyOptions {
|
|
85
|
-
package?: string;
|
|
86
|
-
arguments: DestroyArguments | [
|
|
87
|
-
stake: RawTransactionArgument<string>
|
|
88
|
-
];
|
|
89
|
-
typeArguments: [
|
|
90
|
-
string
|
|
91
|
-
];
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Destroy a stake and reclaim its balance.
|
|
95
|
-
*
|
|
96
|
-
* Aborts if the stake is still registered with any royalty pools.
|
|
97
|
-
*/
|
|
98
|
-
export declare function destroy(options: DestroyOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
99
|
-
export interface IdArguments {
|
|
100
|
-
self: RawTransactionArgument<string>;
|
|
101
|
-
}
|
|
102
|
-
export interface IdOptions {
|
|
103
|
-
package?: string;
|
|
104
|
-
arguments: IdArguments | [
|
|
105
|
-
self: RawTransactionArgument<string>
|
|
106
|
-
];
|
|
107
|
-
typeArguments: [
|
|
108
|
-
string
|
|
109
|
-
];
|
|
110
|
-
}
|
|
111
|
-
export declare function id(options: IdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
112
|
-
export interface BalanceArguments {
|
|
113
|
-
self: RawTransactionArgument<string>;
|
|
114
|
-
}
|
|
115
|
-
export interface BalanceOptions {
|
|
116
|
-
package?: string;
|
|
117
|
-
arguments: BalanceArguments | [
|
|
118
|
-
self: RawTransactionArgument<string>
|
|
119
|
-
];
|
|
120
|
-
typeArguments: [
|
|
121
|
-
string
|
|
122
|
-
];
|
|
123
|
-
}
|
|
124
|
-
export declare function balance(options: BalanceOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
125
|
-
export interface ValueArguments {
|
|
126
|
-
self: RawTransactionArgument<string>;
|
|
127
|
-
}
|
|
128
|
-
export interface ValueOptions {
|
|
129
|
-
package?: string;
|
|
130
|
-
arguments: ValueArguments | [
|
|
131
|
-
self: RawTransactionArgument<string>
|
|
132
|
-
];
|
|
133
|
-
typeArguments: [
|
|
134
|
-
string
|
|
135
|
-
];
|
|
136
|
-
}
|
|
137
|
-
export declare function value(options: ValueOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
138
|
-
export interface RegistrationCountArguments {
|
|
139
|
-
self: RawTransactionArgument<string>;
|
|
140
|
-
}
|
|
141
|
-
export interface RegistrationCountOptions {
|
|
142
|
-
package?: string;
|
|
143
|
-
arguments: RegistrationCountArguments | [
|
|
144
|
-
self: RawTransactionArgument<string>
|
|
145
|
-
];
|
|
146
|
-
typeArguments: [
|
|
147
|
-
string
|
|
148
|
-
];
|
|
149
|
-
}
|
|
150
|
-
/** Number of royalty pools this stake is currently registered with. */
|
|
151
|
-
export declare function registrationCount(options: RegistrationCountOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
152
|
-
export interface HasRegistrationArguments {
|
|
153
|
-
self: RawTransactionArgument<string>;
|
|
154
|
-
currency: TransactionArgument;
|
|
155
|
-
}
|
|
156
|
-
export interface HasRegistrationOptions {
|
|
157
|
-
package?: string;
|
|
158
|
-
arguments: HasRegistrationArguments | [
|
|
159
|
-
self: RawTransactionArgument<string>,
|
|
160
|
-
currency: TransactionArgument
|
|
161
|
-
];
|
|
162
|
-
typeArguments: [
|
|
163
|
-
string
|
|
164
|
-
];
|
|
165
|
-
}
|
|
166
|
-
export declare function hasRegistration(options: HasRegistrationOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
167
|
-
export interface GetRegistrationArguments {
|
|
168
|
-
self: RawTransactionArgument<string>;
|
|
169
|
-
currency: TransactionArgument;
|
|
170
|
-
}
|
|
171
|
-
export interface GetRegistrationOptions {
|
|
172
|
-
package?: string;
|
|
173
|
-
arguments: GetRegistrationArguments | [
|
|
174
|
-
self: RawTransactionArgument<string>,
|
|
175
|
-
currency: TransactionArgument
|
|
176
|
-
];
|
|
177
|
-
typeArguments: [
|
|
178
|
-
string
|
|
179
|
-
];
|
|
180
|
-
}
|
|
181
|
-
export declare function getRegistration(options: GetRegistrationOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
182
|
-
export interface RegistrationPoolIdArguments {
|
|
183
|
-
r: TransactionArgument;
|
|
184
|
-
}
|
|
185
|
-
export interface RegistrationPoolIdOptions {
|
|
186
|
-
package?: string;
|
|
187
|
-
arguments: RegistrationPoolIdArguments | [
|
|
188
|
-
r: TransactionArgument
|
|
189
|
-
];
|
|
190
|
-
}
|
|
191
|
-
export declare function registrationPoolId(options: RegistrationPoolIdOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
192
|
-
export interface RegistrationLastClaimIndexArguments {
|
|
193
|
-
r: TransactionArgument;
|
|
194
|
-
}
|
|
195
|
-
export interface RegistrationLastClaimIndexOptions {
|
|
196
|
-
package?: string;
|
|
197
|
-
arguments: RegistrationLastClaimIndexArguments | [
|
|
198
|
-
r: TransactionArgument
|
|
199
|
-
];
|
|
200
|
-
}
|
|
201
|
-
export declare function registrationLastClaimIndex(options: RegistrationLastClaimIndexOptions): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
|
|
202
|
-
//# sourceMappingURL=stake.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stake.d.ts","sourceRoot":"","sources":["../../../src/contracts/royalty_pool/stake.ts"],"names":[],"mappings":"AAAA;;gEAEgE;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