@kaspacom/kcc20-tx-builder 0.8.0-fee.5 → 0.8.0-fee.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0-fee.6
4
+
5
+ - Expose the existing fee-market holder merge and seller sweep PSKT handlers through the public builder key registry.
6
+ - Keep transaction construction, contract artifacts, legacy operations and snapshot operations unchanged.
7
+
3
8
  ## 0.8.0-fee.5
4
9
 
5
10
  - Add signed fee-market setup, wrap, unwrap, orders, fills, two-ask buyer groups, seller sweeps, holder consolidation, claims and account rotation.
package/RELEASING.md CHANGED
@@ -95,6 +95,12 @@ consumer deployment. Record any unverified operation families explicitly.
95
95
 
96
96
  ## Fee integration prerelease
97
97
 
98
+ Version `0.8.0-fee.6` registers the previously implemented fee-market holder
99
+ merge and seller-sweep keys for browser consumers. It changes no contract
100
+ artifacts or signed transaction logic. Backend consumers must update their
101
+ browser-only key allowlist in the same dependency upgrade. Funded grouped
102
+ trades and the remaining market-enablement gates below are still open.
103
+
98
104
  Version `0.8.0-fee.5` adds signed fee-market setup, trade, claim, rotation,
99
105
  wrap and unwrap builders. A funded DEV TN10 0% market completed setup,
100
106
  wrap, trade, protocol claim, cancel and unwrap. A funded 1% market completed
@@ -1,4 +1,4 @@
1
- export declare const KCC20_BUILDER_KEYS: readonly ["kcc20.deploy-token", "kcc20.mint", "kcc20.set-public-mint-active", "kcc20.transfer", "kcc20.consolidate-holders", "kcc20.reveal-token", "kcc20wrapper.deploy-market", "kcc20wrapper.wrap", "kcc20wrapper.unwrap", "kcc20orderbook.create-bid", "kcc20orderbook.create-ask", "kcc20orderbook.fill-ask", "kcc20orderbook.fill-bid", "kcc20orderbook.sweep-asks", "kcc20orderbook.sweep-bids", "kcc20orderbook.consolidate-holders", "kcc20orderbook.cancel-ask", "kcc20orderbook.cancel-bid", "fee-ticket.deploy-root", "fee-ticket.update-denomination", "fee-ticket.create-from-utility-burn", "fee-ticket.burn", "fee-ticket.transfer", "kcc20fee.create-account", "kcc20fee.bind-account", "kcc20fee.deploy-market-genesis", "kcc20fee.bind-market", "kcc20fee.wrap", "kcc20fee.unwrap", "kcc20fee.create-ask", "kcc20fee.cancel-ask", "kcc20fee.create-bid", "kcc20fee.cancel-bid", "kcc20fee.buy-ask", "kcc20fee.buy-two-asks", "kcc20fee.claim", "kcc20fee.rotate-account", "kcc20-snapshot.deploy-bootstrap", "kcc20-snapshot.deploy-controller", "kcc20-snapshot.start", "kcc20-snapshot.claim"];
1
+ export declare const KCC20_BUILDER_KEYS: readonly ["kcc20.deploy-token", "kcc20.mint", "kcc20.set-public-mint-active", "kcc20.transfer", "kcc20.consolidate-holders", "kcc20.reveal-token", "kcc20wrapper.deploy-market", "kcc20wrapper.wrap", "kcc20wrapper.unwrap", "kcc20orderbook.create-bid", "kcc20orderbook.create-ask", "kcc20orderbook.fill-ask", "kcc20orderbook.fill-bid", "kcc20orderbook.sweep-asks", "kcc20orderbook.sweep-bids", "kcc20orderbook.consolidate-holders", "kcc20orderbook.cancel-ask", "kcc20orderbook.cancel-bid", "fee-ticket.deploy-root", "fee-ticket.update-denomination", "fee-ticket.create-from-utility-burn", "fee-ticket.burn", "fee-ticket.transfer", "kcc20fee.create-account", "kcc20fee.bind-account", "kcc20fee.deploy-market-genesis", "kcc20fee.bind-market", "kcc20fee.wrap", "kcc20fee.unwrap", "kcc20fee.merge-holders", "kcc20fee.create-ask", "kcc20fee.cancel-ask", "kcc20fee.create-bid", "kcc20fee.cancel-bid", "kcc20fee.buy-ask", "kcc20fee.buy-two-asks", "kcc20fee.sell-into-bids", "kcc20fee.claim", "kcc20fee.rotate-account", "kcc20-snapshot.deploy-bootstrap", "kcc20-snapshot.deploy-controller", "kcc20-snapshot.start", "kcc20-snapshot.claim"];
2
2
  export type Kcc20BuilderKey = (typeof KCC20_BUILDER_KEYS)[number];
3
3
  export declare function isKcc20BuilderKey(value: string): value is Kcc20BuilderKey;
4
4
  export declare const BACKEND_ONLY_BUILDER_KEYS: readonly ["kcc20orderbook.matcher-settle-crossed"];
@@ -33,12 +33,14 @@ exports.KCC20_BUILDER_KEYS = [
33
33
  "kcc20fee.bind-market",
34
34
  "kcc20fee.wrap",
35
35
  "kcc20fee.unwrap",
36
+ "kcc20fee.merge-holders",
36
37
  "kcc20fee.create-ask",
37
38
  "kcc20fee.cancel-ask",
38
39
  "kcc20fee.create-bid",
39
40
  "kcc20fee.cancel-bid",
40
41
  "kcc20fee.buy-ask",
41
42
  "kcc20fee.buy-two-asks",
43
+ "kcc20fee.sell-into-bids",
42
44
  "kcc20fee.claim",
43
45
  "kcc20fee.rotate-account",
44
46
  "kcc20-snapshot.deploy-bootstrap",
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/operations.ts"],"names":[],"mappings":";;;AA8CA,8CAEC;AAQD,0DAOC;AA/DY,QAAA,kBAAkB,GAAG;IAChC,oBAAoB;IACpB,YAAY;IACZ,8BAA8B;IAC9B,gBAAgB;IAChB,2BAA2B;IAC3B,oBAAoB;IACpB,4BAA4B;IAC5B,mBAAmB;IACnB,qBAAqB;IACrB,2BAA2B;IAC3B,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;IAC3B,oCAAoC;IACpC,2BAA2B;IAC3B,2BAA2B;IAC3B,wBAAwB;IACxB,gCAAgC;IAChC,qCAAqC;IACrC,iBAAiB;IACjB,qBAAqB;IACrB,yBAAyB;IACzB,uBAAuB;IACvB,gCAAgC;IAChC,sBAAsB;IACtB,eAAe;IACf,iBAAiB;IACjB,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,kBAAkB;IAClB,uBAAuB;IACvB,gBAAgB;IAChB,yBAAyB;IACzB,iCAAiC;IACjC,kCAAkC;IAClC,sBAAsB;IACtB,sBAAsB;CACd,CAAC;AAIX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gB,uBAAuB,CACrC,KAAc;IAEd,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACxB,iCAA+C,CAAC,QAAQ,CAAC,KAAK,CAAC,CACjE,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const KCC20_BUILDER_KEYS: readonly ["kcc20.deploy-token", "kcc20.mint", "kcc20.set-public-mint-active", "kcc20.transfer", "kcc20.consolidate-holders", "kcc20.reveal-token", "kcc20wrapper.deploy-market", "kcc20wrapper.wrap", "kcc20wrapper.unwrap", "kcc20orderbook.create-bid", "kcc20orderbook.create-ask", "kcc20orderbook.fill-ask", "kcc20orderbook.fill-bid", "kcc20orderbook.sweep-asks", "kcc20orderbook.sweep-bids", "kcc20orderbook.consolidate-holders", "kcc20orderbook.cancel-ask", "kcc20orderbook.cancel-bid", "fee-ticket.deploy-root", "fee-ticket.update-denomination", "fee-ticket.create-from-utility-burn", "fee-ticket.burn", "fee-ticket.transfer", "kcc20fee.create-account", "kcc20fee.bind-account", "kcc20fee.deploy-market-genesis", "kcc20fee.bind-market", "kcc20fee.wrap", "kcc20fee.unwrap", "kcc20fee.create-ask", "kcc20fee.cancel-ask", "kcc20fee.create-bid", "kcc20fee.cancel-bid", "kcc20fee.buy-ask", "kcc20fee.buy-two-asks", "kcc20fee.claim", "kcc20fee.rotate-account", "kcc20-snapshot.deploy-bootstrap", "kcc20-snapshot.deploy-controller", "kcc20-snapshot.start", "kcc20-snapshot.claim"];
1
+ export declare const KCC20_BUILDER_KEYS: readonly ["kcc20.deploy-token", "kcc20.mint", "kcc20.set-public-mint-active", "kcc20.transfer", "kcc20.consolidate-holders", "kcc20.reveal-token", "kcc20wrapper.deploy-market", "kcc20wrapper.wrap", "kcc20wrapper.unwrap", "kcc20orderbook.create-bid", "kcc20orderbook.create-ask", "kcc20orderbook.fill-ask", "kcc20orderbook.fill-bid", "kcc20orderbook.sweep-asks", "kcc20orderbook.sweep-bids", "kcc20orderbook.consolidate-holders", "kcc20orderbook.cancel-ask", "kcc20orderbook.cancel-bid", "fee-ticket.deploy-root", "fee-ticket.update-denomination", "fee-ticket.create-from-utility-burn", "fee-ticket.burn", "fee-ticket.transfer", "kcc20fee.create-account", "kcc20fee.bind-account", "kcc20fee.deploy-market-genesis", "kcc20fee.bind-market", "kcc20fee.wrap", "kcc20fee.unwrap", "kcc20fee.merge-holders", "kcc20fee.create-ask", "kcc20fee.cancel-ask", "kcc20fee.create-bid", "kcc20fee.cancel-bid", "kcc20fee.buy-ask", "kcc20fee.buy-two-asks", "kcc20fee.sell-into-bids", "kcc20fee.claim", "kcc20fee.rotate-account", "kcc20-snapshot.deploy-bootstrap", "kcc20-snapshot.deploy-controller", "kcc20-snapshot.start", "kcc20-snapshot.claim"];
2
2
  export type Kcc20BuilderKey = (typeof KCC20_BUILDER_KEYS)[number];
3
3
  export declare function isKcc20BuilderKey(value: string): value is Kcc20BuilderKey;
4
4
  export declare const BACKEND_ONLY_BUILDER_KEYS: readonly ["kcc20orderbook.matcher-settle-crossed"];
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,ojCA0CrB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEzE;AAED,eAAO,MAAM,yBAAyB,oDAE5B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/E,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,qBAAqB,CAKhC"}
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,ymCA4CrB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEzE;AAED,eAAO,MAAM,yBAAyB,oDAE5B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/E,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,qBAAqB,CAKhC"}
@@ -28,12 +28,14 @@ export const KCC20_BUILDER_KEYS = [
28
28
  "kcc20fee.bind-market",
29
29
  "kcc20fee.wrap",
30
30
  "kcc20fee.unwrap",
31
+ "kcc20fee.merge-holders",
31
32
  "kcc20fee.create-ask",
32
33
  "kcc20fee.cancel-ask",
33
34
  "kcc20fee.create-bid",
34
35
  "kcc20fee.cancel-bid",
35
36
  "kcc20fee.buy-ask",
36
37
  "kcc20fee.buy-two-asks",
38
+ "kcc20fee.sell-into-bids",
37
39
  "kcc20fee.claim",
38
40
  "kcc20fee.rotate-account",
39
41
  "kcc20-snapshot.deploy-bootstrap",
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,oBAAoB;IACpB,YAAY;IACZ,8BAA8B;IAC9B,gBAAgB;IAChB,2BAA2B;IAC3B,oBAAoB;IACpB,4BAA4B;IAC5B,mBAAmB;IACnB,qBAAqB;IACrB,2BAA2B;IAC3B,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;IAC3B,oCAAoC;IACpC,2BAA2B;IAC3B,2BAA2B;IAC3B,wBAAwB;IACxB,gCAAgC;IAChC,qCAAqC;IACrC,iBAAiB;IACjB,qBAAqB;IACrB,yBAAyB;IACzB,uBAAuB;IACvB,gCAAgC;IAChC,sBAAsB;IACtB,eAAe;IACf,iBAAiB;IACjB,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,kBAAkB;IAClB,uBAAuB;IACvB,gBAAgB;IAChB,yBAAyB;IACzB,iCAAiC;IACjC,kCAAkC;IAClC,sBAAsB;IACtB,sBAAsB;CACd,CAAC;AAIX,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,OAAQ,kBAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,uCAAuC;CAC/B,CAAC;AAIX,MAAM,UAAU,uBAAuB,CACrC,KAAc;IAEd,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACxB,yBAA+C,CAAC,QAAQ,CAAC,KAAK,CAAC,CACjE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,oBAAoB;IACpB,YAAY;IACZ,8BAA8B;IAC9B,gBAAgB;IAChB,2BAA2B;IAC3B,oBAAoB;IACpB,4BAA4B;IAC5B,mBAAmB;IACnB,qBAAqB;IACrB,2BAA2B;IAC3B,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,2BAA2B;IAC3B,2BAA2B;IAC3B,oCAAoC;IACpC,2BAA2B;IAC3B,2BAA2B;IAC3B,wBAAwB;IACxB,gCAAgC;IAChC,qCAAqC;IACrC,iBAAiB;IACjB,qBAAqB;IACrB,yBAAyB;IACzB,uBAAuB;IACvB,gCAAgC;IAChC,sBAAsB;IACtB,eAAe;IACf,iBAAiB;IACjB,wBAAwB;IACxB,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,qBAAqB;IACrB,kBAAkB;IAClB,uBAAuB;IACvB,yBAAyB;IACzB,gBAAgB;IAChB,yBAAyB;IACzB,iCAAiC;IACjC,kCAAkC;IAClC,sBAAsB;IACtB,sBAAsB;CACd,CAAC;AAIX,MAAM,UAAU,iBAAiB,CAAC,KAAa;IAC7C,OAAQ,kBAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,uCAAuC;CAC/B,CAAC;AAIX,MAAM,UAAU,uBAAuB,CACrC,KAAc;IAEd,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACxB,yBAA+C,CAAC,QAAQ,CAAC,KAAK,CAAC,CACjE,CAAC;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": "kcc20-example-compatibility/v1",
3
- "packageVersion": "0.8.0-fee.5",
3
+ "packageVersion": "0.8.0-fee.6",
4
4
  "contractsRepository": "https://github.com/KASPACOM/kaspa-covenants",
5
5
  "contractsCommit": "5deb1769e69142595576ef7c573af9f433a48a3c",
6
6
  "compiler": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaspacom/kcc20-tx-builder",
3
- "version": "0.8.0-fee.5",
3
+ "version": "0.8.0-fee.6",
4
4
  "description": "Runtime-independent KCC20 covenant transaction and PSKT construction primitives.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "KaspaCom",
package/src/operations.ts CHANGED
@@ -28,12 +28,14 @@ export const KCC20_BUILDER_KEYS = [
28
28
  "kcc20fee.bind-market",
29
29
  "kcc20fee.wrap",
30
30
  "kcc20fee.unwrap",
31
+ "kcc20fee.merge-holders",
31
32
  "kcc20fee.create-ask",
32
33
  "kcc20fee.cancel-ask",
33
34
  "kcc20fee.create-bid",
34
35
  "kcc20fee.cancel-bid",
35
36
  "kcc20fee.buy-ask",
36
37
  "kcc20fee.buy-two-asks",
38
+ "kcc20fee.sell-into-bids",
37
39
  "kcc20fee.claim",
38
40
  "kcc20fee.rotate-account",
39
41
  "kcc20-snapshot.deploy-bootstrap",