@stacks/codec 1.5.0 → 1.6.0

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/index.d.ts CHANGED
@@ -55,11 +55,13 @@ export interface PostConditionAssetInfo {
55
55
  }
56
56
  export declare enum PostConditionNonfungibleConditionCodeID {
57
57
  Sent = 16,
58
- NotSent = 17
58
+ NotSent = 17,
59
+ MaybeSent = 18
59
60
  }
60
61
  export declare enum PostConditionNonFungibleConditionName {
61
62
  Sent = "sent",
62
- NotSent = "not_sent"
63
+ NotSent = "not_sent",
64
+ MaybeSent = "maybe_sent"
63
65
  }
64
66
  export declare enum PostConditionFungibleConditionCodeID {
65
67
  SentEq = 1,
@@ -334,7 +336,9 @@ export declare enum PostConditionModeID {
334
336
  /** This transaction may affect other assets not listed in the post-conditions. */
335
337
  Allow = 1,
336
338
  /** This transaction may NOT affect other assets besides those listed in the post-conditions. */
337
- Deny = 2
339
+ Deny = 2,
340
+ /** Deny for the transaction origin; allow for everyone else (SIP-040). */
341
+ Originator = 3
338
342
  }
339
343
  export interface ClarityValueCommon {
340
344
  /** Clarity repr value */
package/index.js CHANGED
@@ -29,11 +29,13 @@ var PostConditionNonfungibleConditionCodeID;
29
29
  (function (PostConditionNonfungibleConditionCodeID) {
30
30
  PostConditionNonfungibleConditionCodeID[PostConditionNonfungibleConditionCodeID["Sent"] = 16] = "Sent";
31
31
  PostConditionNonfungibleConditionCodeID[PostConditionNonfungibleConditionCodeID["NotSent"] = 17] = "NotSent";
32
+ PostConditionNonfungibleConditionCodeID[PostConditionNonfungibleConditionCodeID["MaybeSent"] = 18] = "MaybeSent";
32
33
  })(PostConditionNonfungibleConditionCodeID = exports.PostConditionNonfungibleConditionCodeID || (exports.PostConditionNonfungibleConditionCodeID = {}));
33
34
  var PostConditionNonFungibleConditionName;
34
35
  (function (PostConditionNonFungibleConditionName) {
35
36
  PostConditionNonFungibleConditionName["Sent"] = "sent";
36
37
  PostConditionNonFungibleConditionName["NotSent"] = "not_sent";
38
+ PostConditionNonFungibleConditionName["MaybeSent"] = "maybe_sent";
37
39
  })(PostConditionNonFungibleConditionName = exports.PostConditionNonFungibleConditionName || (exports.PostConditionNonFungibleConditionName = {}));
38
40
  var PostConditionFungibleConditionCodeID;
39
41
  (function (PostConditionFungibleConditionCodeID) {
@@ -161,6 +163,8 @@ var PostConditionModeID;
161
163
  PostConditionModeID[PostConditionModeID["Allow"] = 1] = "Allow";
162
164
  /** This transaction may NOT affect other assets besides those listed in the post-conditions. */
163
165
  PostConditionModeID[PostConditionModeID["Deny"] = 2] = "Deny";
166
+ /** Deny for the transaction origin; allow for everyone else (SIP-040). */
167
+ PostConditionModeID[PostConditionModeID["Originator"] = 3] = "Originator";
164
168
  })(PostConditionModeID = exports.PostConditionModeID || (exports.PostConditionModeID = {}));
165
169
  var ClarityTypeID;
166
170
  (function (ClarityTypeID) {
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stacks/codec",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Encoding & decoding functions for the Stacks blockchain exposed as a fast native Node.js addon",
5
5
  "main": "index.js",
6
6
  "scripts": {