@totemsdk/omnia-vtxo 0.5.1 → 0.5.2
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/dist/cjs/pool-script.js +1 -1
- package/dist/pool-script.js +1 -1
- package/package.json +3 -3
package/dist/cjs/pool-script.js
CHANGED
|
@@ -68,7 +68,7 @@ function buildPoolScript(params) {
|
|
|
68
68
|
// Remainder (other holders' shares) stays in the pool; skip it when the
|
|
69
69
|
// withdrawing holder's share is the whole pool (no room for another output).
|
|
70
70
|
lines.push(` IF @AMOUNT GT SHARE${k} THEN`);
|
|
71
|
-
lines.push(` RETURN VERIFYOUT(
|
|
71
|
+
lines.push(` RETURN VERIFYOUT(1 @ADDRESS @AMOUNT SUB SHARE${k} @TOKENID TRUE)`);
|
|
72
72
|
lines.push(' ENDIF');
|
|
73
73
|
lines.push(' RETURN TRUE');
|
|
74
74
|
lines.push(' ENDIF');
|
package/dist/pool-script.js
CHANGED
|
@@ -62,7 +62,7 @@ export function buildPoolScript(params) {
|
|
|
62
62
|
// Remainder (other holders' shares) stays in the pool; skip it when the
|
|
63
63
|
// withdrawing holder's share is the whole pool (no room for another output).
|
|
64
64
|
lines.push(` IF @AMOUNT GT SHARE${k} THEN`);
|
|
65
|
-
lines.push(` RETURN VERIFYOUT(
|
|
65
|
+
lines.push(` RETURN VERIFYOUT(1 @ADDRESS @AMOUNT SUB SHARE${k} @TOKENID TRUE)`);
|
|
66
66
|
lines.push(' ENDIF');
|
|
67
67
|
lines.push(' RETURN TRUE');
|
|
68
68
|
lines.push(' ENDIF');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totemsdk/omnia-vtxo",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Virtual UTXO / payment-pool claim layer for Omnia — cash-like off-chain balance primitive for Totem Edge",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"types": "dist/cjs/index.d.ts",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@totemsdk/chain-provider": "^0.2.1",
|
|
28
|
-
"@totemsdk/core": "^1.3.0",
|
|
29
28
|
"@totemsdk/omnia": "^2.0.1",
|
|
30
|
-
"@totemsdk/storage": "^0.1.0",
|
|
31
29
|
"@totemsdk/txpow": "^1.0.2",
|
|
30
|
+
"@totemsdk/storage": "^0.1.0",
|
|
31
|
+
"@totemsdk/core": "^1.3.0",
|
|
32
32
|
"@totemsdk/wots-lease": "^1.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|