@massalabs/multisig-contract 0.1.1-dev.20260507060544 → 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.
- package/README.md +50 -4
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -48,13 +48,16 @@ Prerequisites :
|
|
|
48
48
|
|
|
49
49
|
These keys will be the ones used by the deployment script to interact with the blockchain.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Pass owners and threshold as CLI arguments to the deploy script.
|
|
52
|
+
`--owner-addresses` must be a comma-separated list and `--threshold` must be
|
|
53
|
+
a positive integer not greater than the number of owners.
|
|
54
|
+
`upgradeDelay` and `validationDelay` are configured directly in `src/deploy.ts` (not via CLI args).
|
|
52
55
|
|
|
53
|
-
|
|
54
|
-
`
|
|
56
|
+
Run build first, then deploy. The deploy script uses the already-built
|
|
57
|
+
`build/Multisig.wasm` artifact and automatically runs the constructor.
|
|
55
58
|
|
|
56
59
|
```shell
|
|
57
|
-
npm run deploy
|
|
60
|
+
npm run build && npm run deploy -- --owner-addresses AU1abc...,AU1def... --threshold 2
|
|
58
61
|
```
|
|
59
62
|
|
|
60
63
|
## Generate a wallet
|
|
@@ -157,6 +160,49 @@ The repository also includes a helper script to call `removeCurrency` on the C-l
|
|
|
157
160
|
npm run remove:currency-from-registry -- <currency-id>
|
|
158
161
|
```
|
|
159
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
|
+
|
|
160
206
|
## Create a mint proposal (P-layer)
|
|
161
207
|
|
|
162
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.
|
|
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",
|