@massalabs/multisig-contract 0.1.1-dev.20260507073259 → 0.1.1-dev.20260507085256

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 (2) hide show
  1. package/README.md +43 -0
  2. package/package.json +6 -1
package/README.md CHANGED
@@ -160,6 +160,49 @@ The repository also includes a helper script to call `removeCurrency` on the C-l
160
160
  npm run remove:currency-from-registry -- <currency-id>
161
161
  ```
162
162
 
163
+ ## Generate a new DECC number (P-layer)
164
+
165
+ The repository includes a helper script to generate and print a new DECC number.
166
+
167
+ ```shell
168
+ npm run generate:decc-no
169
+ ```
170
+
171
+ ## Open a DECC (P-layer)
172
+
173
+ The repository includes a helper script to open a DECC for a given currency.
174
+
175
+ ```shell
176
+ npm run open:decc -- <decc-no> <currency-ticker>
177
+ ```
178
+
179
+ ## Get DECC balance (P-layer)
180
+
181
+ The repository includes a helper script to read the current raw balance of a DECC.
182
+
183
+ ```shell
184
+ npm run get:decc-balance -- <decc-no>
185
+ ```
186
+
187
+ ## Transfer funds between DECCs (P-layer)
188
+
189
+ The repository includes a helper script to transfer funds from one DECC to another.
190
+
191
+ ```shell
192
+ npm run transfer:funds -- <sender-decc-no> <recipient-decc-no> <amount> <currency-ticker>
193
+ ```
194
+
195
+ For transfer and burn scripts, `<amount>` is a user amount using currency decimals
196
+ (for decimals=2, `10` means a raw amount of `1000`).
197
+
198
+ ## Burn funds (P-layer)
199
+
200
+ The repository includes a helper script to burn funds from a DECC.
201
+
202
+ ```shell
203
+ npm run burn:funds -- <source-decc-no> <amount> <currency-ticker>
204
+ ```
205
+
163
206
  ## Create a mint proposal (P-layer)
164
207
 
165
208
  The repository also includes a helper script to submit a P-layer multisig `mint` proposal via the Player API.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massalabs/multisig-contract",
3
- "version": "0.1.1-dev.20260507073259",
3
+ "version": "0.1.1-dev.20260507085256",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "asp --summary",
@@ -16,6 +16,11 @@
16
16
  "list:p-layer-proposals": "tsx src/list-p-layer-proposals.ts",
17
17
  "get:available-currency-info": "tsx src/get-available-currency-info.ts",
18
18
  "get:currency-multisig-info": "tsx src/get-currency-multisig-info.ts",
19
+ "generate:decc-no": "tsx src/generate-decc-no.ts",
20
+ "open:decc": "tsx src/open-decc.ts",
21
+ "get:decc-balance": "tsx src/get-decc-balance.ts",
22
+ "transfer:funds": "tsx src/transfer-funds.ts",
23
+ "burn:funds": "tsx src/burn-funds.ts",
19
24
  "propose:add-member": "tsx src/propose-add-member.ts",
20
25
  "propose:replace-member": "tsx src/propose-replace-member.ts",
21
26
  "propose:revoke-member": "tsx src/propose-revoke-member.ts",