@agoric/ertp 0.16.3-dev-ae21a7e.0 → 0.16.3-dev-da3b8a8.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/types-ambient.d.ts +0 -31
- package/src/types-ambient.d.ts.map +1 -1
- package/src/types-ambient.js +0 -46
- package/src/types.d.ts +0 -31
- package/src/types.d.ts.map +1 -1
- package/src/types.js +0 -46
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-da3b8a8.0+da3b8a8",
|
|
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-da3b8a8.0+da3b8a8",
|
|
43
|
+
"@agoric/notifier": "0.6.3-dev-da3b8a8.0+da3b8a8",
|
|
44
|
+
"@agoric/store": "0.9.3-dev-da3b8a8.0+da3b8a8",
|
|
45
|
+
"@agoric/vat-data": "0.5.3-dev-da3b8a8.0+da3b8a8",
|
|
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-da3b8a8.0+da3b8a8",
|
|
55
55
|
"@endo/bundle-source": "^2.7.0",
|
|
56
56
|
"@fast-check/ava": "^1.1.5",
|
|
57
57
|
"ava": "^5.3.0",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"publishConfig": {
|
|
84
84
|
"access": "public"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "da3b8a80f4ae8ccf73bfd7cdeef376a67c673b7d"
|
|
87
87
|
}
|
package/src/types-ambient.d.ts
CHANGED
|
@@ -109,37 +109,6 @@ type IssuerGetAmountOf<K extends AssetKind> = (payment: ERef<Payment>) => Promis
|
|
|
109
109
|
* If the payment is a promise, the operation will proceed upon resolution.
|
|
110
110
|
*/
|
|
111
111
|
type IssuerBurn = (payment: ERef<Payment>, optAmountShape?: Pattern) => Promise<Amount>;
|
|
112
|
-
/**
|
|
113
|
-
* Transfer all digital assets from the payment to a new
|
|
114
|
-
* payment and delete the original. `optAmount` is optional. If `optAmount` is
|
|
115
|
-
* present, the code will insist that the amount of digital assets in the
|
|
116
|
-
* payment is equal to `optAmount`, to prevent sending the wrong payment and
|
|
117
|
-
* other confusion.
|
|
118
|
-
*
|
|
119
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
120
|
-
*/
|
|
121
|
-
type IssuerClaim<K extends AssetKind> = (payment: ERef<Payment<K>>, optAmountShape?: Pattern) => Promise<Payment<K>>;
|
|
122
|
-
/**
|
|
123
|
-
* Combine multiple payments into one payment.
|
|
124
|
-
*
|
|
125
|
-
* If any of the payments is a promise, the operation will proceed upon
|
|
126
|
-
* resolution.
|
|
127
|
-
*/
|
|
128
|
-
type IssuerCombine<K extends AssetKind> = (paymentsArray: ERef<Payment<K>>[], optTotalAmount?: Amount<K> | undefined) => Promise<Payment<K>>;
|
|
129
|
-
/**
|
|
130
|
-
* Split a single payment into two payments, A and B,
|
|
131
|
-
* according to the paymentAmountA passed in.
|
|
132
|
-
*
|
|
133
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
134
|
-
*/
|
|
135
|
-
type IssuerSplit<K extends AssetKind> = (payment: ERef<Payment<K>>, paymentAmountA: Amount<K>) => Promise<Payment<K>[]>;
|
|
136
|
-
/**
|
|
137
|
-
* Split a single payment into many payments,
|
|
138
|
-
* according to the amounts passed in.
|
|
139
|
-
*
|
|
140
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
141
|
-
*/
|
|
142
|
-
type IssuerSplitMany = (payment: ERef<Payment>, amounts: Amount[]) => Promise<Payment[]>;
|
|
143
112
|
/**
|
|
144
113
|
* The issuer cannot mint a new amount, but it can
|
|
145
114
|
* create empty purses and payments. The issuer can also transform payments
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":"wCAMa,OAAO,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;WAalC,MAAM,CAAC,CAAC;WACR,kBAAkB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;mBAIrB,QAAQ,WAAc,OAAO,GAAG,OAAO;;;;;iBAuBvC,KAAK,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS;8CAMrC,CAAC,SAAS,KAAK,GACrB,QAAQ,GACR,CAAC,SAAS,KAAK,WAEf,CAAC,SAAS,SAAS,GACnB,OAAO,GACP,CAAC,SAAS,SAAS,GACnB,OAAO,GACP,KAAK;gDAKC,CAAC,SAAS,QAAQ,GACxB,KAAK,GACL,CAAC,iBACD,KAAK,GACL,CAAC,SAAS,OAAO,GACjB,SAAS,GACT,CAAC,SAAS,OAAO,GACjB,SAAS,GACT,KAAK;;;;;;;;;;;;;;;;;;eAeE,CAAC;;;;;;;;;;;;;;;;;gCAee,KAAK,MAAM,CAAC,KAAK,QAAQ,OAAO,CAAC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OAAO;;;;;oBAEd,CAAC,SAAS,CAAC,KAAK,OAAO;;;;sBAEvB,CAAC,SAAS,CAAC,KAAK,OAAO;;;;;kBACvB,CAAC,SAAS,CAAC,KAAK,CAAC;;;;;;uBAEjB,CAAC,SAAS,CAAC,KAAK,CAAC;;gBAKxB,MAAM;gBAEN,GAAG,EAAE"}
|
package/src/types-ambient.js
CHANGED
|
@@ -142,52 +142,6 @@
|
|
|
142
142
|
* @returns {Promise<Amount>}
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
/**
|
|
146
|
-
* @template {AssetKind} K
|
|
147
|
-
* @callback IssuerClaim Transfer all digital assets from the payment to a new
|
|
148
|
-
* payment and delete the original. `optAmount` is optional. If `optAmount` is
|
|
149
|
-
* present, the code will insist that the amount of digital assets in the
|
|
150
|
-
* payment is equal to `optAmount`, to prevent sending the wrong payment and
|
|
151
|
-
* other confusion.
|
|
152
|
-
*
|
|
153
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
154
|
-
* @param {ERef<Payment<K>>} payment
|
|
155
|
-
* @param {Pattern} [optAmountShape]
|
|
156
|
-
* @returns {Promise<Payment<K>>}
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* @template {AssetKind} K
|
|
161
|
-
* @callback IssuerCombine Combine multiple payments into one payment.
|
|
162
|
-
*
|
|
163
|
-
* If any of the payments is a promise, the operation will proceed upon
|
|
164
|
-
* resolution.
|
|
165
|
-
* @param {ERef<Payment<K>>[]} paymentsArray
|
|
166
|
-
* @param {Amount<K>} [optTotalAmount]
|
|
167
|
-
* @returns {Promise<Payment<K>>}
|
|
168
|
-
*/
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @template {AssetKind} K
|
|
172
|
-
* @callback IssuerSplit Split a single payment into two payments, A and B,
|
|
173
|
-
* according to the paymentAmountA passed in.
|
|
174
|
-
*
|
|
175
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
176
|
-
* @param {ERef<Payment<K>>} payment
|
|
177
|
-
* @param {Amount<K>} paymentAmountA
|
|
178
|
-
* @returns {Promise<Payment<K>[]>}
|
|
179
|
-
*/
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* @callback IssuerSplitMany Split a single payment into many payments,
|
|
183
|
-
* according to the amounts passed in.
|
|
184
|
-
*
|
|
185
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
186
|
-
* @param {ERef<Payment>} payment
|
|
187
|
-
* @param {Amount[]} amounts
|
|
188
|
-
* @returns {Promise<Payment[]>}
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
145
|
/**
|
|
192
146
|
* @template {AssetKind} [K=AssetKind]
|
|
193
147
|
* @typedef {object} Issuer The issuer cannot mint a new amount, but it can
|
package/src/types.d.ts
CHANGED
|
@@ -109,37 +109,6 @@ export type IssuerGetAmountOf<K extends AssetKind> = (payment: ERef<Payment>) =>
|
|
|
109
109
|
* If the payment is a promise, the operation will proceed upon resolution.
|
|
110
110
|
*/
|
|
111
111
|
export type IssuerBurn = (payment: ERef<Payment>, optAmountShape?: Pattern) => Promise<Amount>;
|
|
112
|
-
/**
|
|
113
|
-
* Transfer all digital assets from the payment to a new
|
|
114
|
-
* payment and delete the original. `optAmount` is optional. If `optAmount` is
|
|
115
|
-
* present, the code will insist that the amount of digital assets in the
|
|
116
|
-
* payment is equal to `optAmount`, to prevent sending the wrong payment and
|
|
117
|
-
* other confusion.
|
|
118
|
-
*
|
|
119
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
120
|
-
*/
|
|
121
|
-
export type IssuerClaim<K extends AssetKind> = (payment: ERef<Payment<K>>, optAmountShape?: Pattern) => Promise<Payment<K>>;
|
|
122
|
-
/**
|
|
123
|
-
* Combine multiple payments into one payment.
|
|
124
|
-
*
|
|
125
|
-
* If any of the payments is a promise, the operation will proceed upon
|
|
126
|
-
* resolution.
|
|
127
|
-
*/
|
|
128
|
-
export type IssuerCombine<K extends AssetKind> = (paymentsArray: ERef<Payment<K>>[], optTotalAmount?: Amount<K> | undefined) => Promise<Payment<K>>;
|
|
129
|
-
/**
|
|
130
|
-
* Split a single payment into two payments, A and B,
|
|
131
|
-
* according to the paymentAmountA passed in.
|
|
132
|
-
*
|
|
133
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
134
|
-
*/
|
|
135
|
-
export type IssuerSplit<K extends AssetKind> = (payment: ERef<Payment<K>>, paymentAmountA: Amount<K>) => Promise<Payment<K>[]>;
|
|
136
|
-
/**
|
|
137
|
-
* Split a single payment into many payments,
|
|
138
|
-
* according to the amounts passed in.
|
|
139
|
-
*
|
|
140
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
141
|
-
*/
|
|
142
|
-
export type IssuerSplitMany = (payment: ERef<Payment>, amounts: Amount[]) => Promise<Payment[]>;
|
|
143
112
|
/**
|
|
144
113
|
* The issuer cannot mint a new amount, but it can
|
|
145
114
|
* create empty purses and payments. The issuer can also transform payments
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"+CAOa,OAAO,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC;;;;;;;;;;;;WAalC,MAAM,CAAC,CAAC;WACR,kBAAkB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;0BAIrB,QAAQ,WAAc,OAAO,GAAG,OAAO;;;;;wBAuBvC,KAAK,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS;qDAMrC,CAAC,SAAS,KAAK,GACrB,QAAQ,GACR,CAAC,SAAS,KAAK,WAEf,CAAC,SAAS,SAAS,GACnB,OAAO,GACP,CAAC,SAAS,SAAS,GACnB,OAAO,GACP,KAAK;uDAKC,CAAC,SAAS,QAAQ,GACxB,KAAK,GACL,CAAC,iBACD,KAAK,GACL,CAAC,SAAS,OAAO,GACjB,SAAS,GACT,CAAC,SAAS,OAAO,GACjB,SAAS,GACT,KAAK;;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;;;;;;;;;;;6BAkBC,CAAC,KAAK,CAAC;;;;;iBAEtB,MAAM,CAAC;;;;;uBAEC,CAAC,KAAK,OAAO;;;;;oBAEd,CAAC,SAAS,CAAC,KAAK,OAAO;;;;sBAEvB,CAAC,SAAS,CAAC,KAAK,OAAO;;;;;kBACvB,CAAC,SAAS,CAAC,KAAK,CAAC;;;;;;uBAEjB,CAAC,SAAS,CAAC,KAAK,CAAC;;uBAKxB,MAAM;uBAEN,GAAG,EAAE"}
|
package/src/types.js
CHANGED
|
@@ -143,52 +143,6 @@ export {};
|
|
|
143
143
|
* @returns {Promise<Amount>}
|
|
144
144
|
*/
|
|
145
145
|
|
|
146
|
-
/**
|
|
147
|
-
* @template {AssetKind} K
|
|
148
|
-
* @callback IssuerClaim Transfer all digital assets from the payment to a new
|
|
149
|
-
* payment and delete the original. `optAmount` is optional. If `optAmount` is
|
|
150
|
-
* present, the code will insist that the amount of digital assets in the
|
|
151
|
-
* payment is equal to `optAmount`, to prevent sending the wrong payment and
|
|
152
|
-
* other confusion.
|
|
153
|
-
*
|
|
154
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
155
|
-
* @param {ERef<Payment<K>>} payment
|
|
156
|
-
* @param {Pattern} [optAmountShape]
|
|
157
|
-
* @returns {Promise<Payment<K>>}
|
|
158
|
-
*/
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* @template {AssetKind} K
|
|
162
|
-
* @callback IssuerCombine Combine multiple payments into one payment.
|
|
163
|
-
*
|
|
164
|
-
* If any of the payments is a promise, the operation will proceed upon
|
|
165
|
-
* resolution.
|
|
166
|
-
* @param {ERef<Payment<K>>[]} paymentsArray
|
|
167
|
-
* @param {Amount<K>} [optTotalAmount]
|
|
168
|
-
* @returns {Promise<Payment<K>>}
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* @template {AssetKind} K
|
|
173
|
-
* @callback IssuerSplit Split a single payment into two payments, A and B,
|
|
174
|
-
* according to the paymentAmountA passed in.
|
|
175
|
-
*
|
|
176
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
177
|
-
* @param {ERef<Payment<K>>} payment
|
|
178
|
-
* @param {Amount<K>} paymentAmountA
|
|
179
|
-
* @returns {Promise<Payment<K>[]>}
|
|
180
|
-
*/
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* @callback IssuerSplitMany Split a single payment into many payments,
|
|
184
|
-
* according to the amounts passed in.
|
|
185
|
-
*
|
|
186
|
-
* If the payment is a promise, the operation will proceed upon resolution.
|
|
187
|
-
* @param {ERef<Payment>} payment
|
|
188
|
-
* @param {Amount[]} amounts
|
|
189
|
-
* @returns {Promise<Payment[]>}
|
|
190
|
-
*/
|
|
191
|
-
|
|
192
146
|
/**
|
|
193
147
|
* @template {AssetKind} [K=AssetKind]
|
|
194
148
|
* @typedef {object} Issuer The issuer cannot mint a new amount, but it can
|