@agoric/ertp 0.16.3-dev-d708d81.0 → 0.16.3-dev-1831bf3.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/package.json +7 -7
- package/src/issuerKit.js +4 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/ertp",
|
|
3
|
-
"version": "0.16.3-dev-
|
|
3
|
+
"version": "0.16.3-dev-1831bf3.0+1831bf3",
|
|
4
4
|
"description": "Electronic Rights Transfer Protocol (ERTP). A smart contract framework for exchanging electronic rights",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@agoric/assert": "0.6.1-dev-
|
|
43
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
44
|
-
"@agoric/store": "0.9.3-dev-
|
|
45
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
42
|
+
"@agoric/assert": "0.6.1-dev-1831bf3.0+1831bf3",
|
|
43
|
+
"@agoric/notifier": "0.6.3-dev-1831bf3.0+1831bf3",
|
|
44
|
+
"@agoric/store": "0.9.3-dev-1831bf3.0+1831bf3",
|
|
45
|
+
"@agoric/vat-data": "0.5.3-dev-1831bf3.0+1831bf3",
|
|
46
46
|
"@endo/eventual-send": "^0.17.5",
|
|
47
47
|
"@endo/far": "^0.2.21",
|
|
48
48
|
"@endo/marshal": "^0.8.8",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@endo/promise-kit": "^0.2.59"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
54
|
+
"@agoric/swingset-vat": "0.32.3-dev-1831bf3.0+1831bf3",
|
|
55
55
|
"@endo/bundle-source": "^2.7.0",
|
|
56
56
|
"@fast-check/ava": "^1.1.5",
|
|
57
57
|
"ava": "^5.3.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"typeCoverage": {
|
|
87
87
|
"atLeast": 90.37
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "1831bf3fda5386ab424e24399124bd6da1ec52e9"
|
|
90
90
|
}
|
package/src/issuerKit.js
CHANGED
|
@@ -105,17 +105,6 @@ export const upgradeIssuerKit = (
|
|
|
105
105
|
};
|
|
106
106
|
harden(upgradeIssuerKit);
|
|
107
107
|
|
|
108
|
-
/**
|
|
109
|
-
* Confusingly, `prepareIssuerKit` was the original name for `upgradeIssuerKit`,
|
|
110
|
-
* even though it is used only to upgrade a predecessor issuerKit. Use
|
|
111
|
-
* `makeDurableIssuerKit` to make a new one.
|
|
112
|
-
*
|
|
113
|
-
* @deprecated Use `upgradeIssuerKit` instead if that's what you want. Or
|
|
114
|
-
* `reallyPrepareIssuerKit` if you want the behavior that should have been
|
|
115
|
-
* bound to this name.
|
|
116
|
-
*/
|
|
117
|
-
export const prepareIssuerKit = upgradeIssuerKit;
|
|
118
|
-
|
|
119
108
|
/**
|
|
120
109
|
* Does baggage already have an issuerKit?
|
|
121
110
|
*
|
|
@@ -183,9 +172,8 @@ export const makeDurableIssuerKit = (
|
|
|
183
172
|
harden(makeDurableIssuerKit);
|
|
184
173
|
|
|
185
174
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
* place it in baggage for the next successor.
|
|
175
|
+
* Used to either revive a predecessor issuerKit, or to make a new durable one
|
|
176
|
+
* if it is absent, and to place it in baggage for the next successor.
|
|
189
177
|
*
|
|
190
178
|
* @template {AssetKind} K The name becomes part of the brand in asset
|
|
191
179
|
* descriptions. The name is useful for debugging and double-checking
|
|
@@ -213,7 +201,7 @@ harden(makeDurableIssuerKit);
|
|
|
213
201
|
* @param {IssuerOptionsRecord} [options]
|
|
214
202
|
* @returns {IssuerKit<K>}
|
|
215
203
|
*/
|
|
216
|
-
export const
|
|
204
|
+
export const prepareIssuerKit = (
|
|
217
205
|
issuerBaggage,
|
|
218
206
|
name,
|
|
219
207
|
// @ts-expect-error K could be instantiated with a different subtype of AssetKind
|
|
@@ -244,7 +232,7 @@ export const reallyPrepareIssuerKit = (
|
|
|
244
232
|
return issuerKit;
|
|
245
233
|
}
|
|
246
234
|
};
|
|
247
|
-
harden(
|
|
235
|
+
harden(prepareIssuerKit);
|
|
248
236
|
|
|
249
237
|
/**
|
|
250
238
|
* Used _only_ to make a new issuerKit that is effectively non-durable. This is
|