@massalabs/multisig-contract 0.1.1-dev.20260507073259 → 0.1.1-dev.20260507092437
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 +45 -4
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -160,23 +160,64 @@ 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> <raw_amount> <currency-ticker>
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
`<raw_amount>` must be the on-chain raw integer amount.
|
|
196
|
+
|
|
197
|
+
## Burn funds (P-layer)
|
|
198
|
+
|
|
199
|
+
The repository includes a helper script to burn funds from a DECC.
|
|
200
|
+
|
|
201
|
+
```shell
|
|
202
|
+
npm run burn:funds -- <source-decc-no> <raw_amount> <currency-ticker>
|
|
203
|
+
```
|
|
204
|
+
|
|
163
205
|
## Create a mint proposal (P-layer)
|
|
164
206
|
|
|
165
207
|
The repository also includes a helper script to submit a P-layer multisig `mint` proposal via the Player API.
|
|
166
208
|
|
|
167
209
|
```shell
|
|
168
|
-
npm run propose:mint -- <decc-no> <
|
|
210
|
+
npm run propose:mint -- <decc-no> <raw_amount> <currency-ticker>
|
|
169
211
|
```
|
|
170
212
|
|
|
171
|
-
|
|
172
|
-
(for decimals=2, `10` means a raw amount of `1000`).
|
|
213
|
+
`<raw_amount>` must be the on-chain raw integer amount.
|
|
173
214
|
|
|
174
215
|
## Create a transfer_from proposal (P-layer)
|
|
175
216
|
|
|
176
217
|
The repository also includes a helper script to submit a P-layer multisig `transfer_from` proposal via the Player API.
|
|
177
218
|
|
|
178
219
|
```shell
|
|
179
|
-
npm run propose:transfer_from -- <multisig-decc-no> <sender-decc-no> <recipient-decc-no> <
|
|
220
|
+
npm run propose:transfer_from -- <multisig-decc-no> <sender-decc-no> <recipient-decc-no> <raw_amount> <currency-ticker>
|
|
180
221
|
```
|
|
181
222
|
|
|
182
223
|
## Create a freeze_account proposal (P-layer)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@massalabs/multisig-contract",
|
|
3
|
-
"version": "0.1.1-dev.
|
|
3
|
+
"version": "0.1.1-dev.20260507092437",
|
|
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",
|