@decaf-ts/for-fabric 0.1.27 → 0.1.28
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/lib/client/FabricClientAdapter.cjs +38 -37
- package/lib/client/FabricClientAdapter.d.ts +28 -27
- package/lib/client/FabricClientAdapter.js.map +1 -1
- package/lib/client/FabricClientDispatch.cjs +6 -2
- package/lib/client/FabricClientDispatch.d.ts +4 -4
- package/lib/client/FabricClientDispatch.js.map +1 -1
- package/lib/client/FabricClientRepository.cjs +2 -2
- package/lib/client/FabricClientRepository.d.ts +1 -1
- package/lib/client/FabricClientRepository.js.map +1 -1
- package/lib/client/constants.cjs +10 -0
- package/lib/client/constants.d.ts +2 -0
- package/lib/client/constants.js.map +1 -0
- package/lib/client/erc20/FabricERC20ClientRepository.cjs +48 -22
- package/lib/client/erc20/FabricERC20ClientRepository.js.map +1 -1
- package/lib/client/types.cjs +3 -0
- package/lib/client/types.d.ts +7 -0
- package/lib/client/types.js.map +1 -0
- package/lib/esm/client/FabricClientAdapter.d.ts +28 -27
- package/lib/esm/client/FabricClientAdapter.js +38 -37
- package/lib/esm/client/FabricClientAdapter.js.map +1 -1
- package/lib/esm/client/FabricClientDispatch.d.ts +4 -4
- package/lib/esm/client/FabricClientDispatch.js +6 -2
- package/lib/esm/client/FabricClientDispatch.js.map +1 -1
- package/lib/esm/client/FabricClientRepository.d.ts +1 -1
- package/lib/esm/client/FabricClientRepository.js +2 -2
- package/lib/esm/client/FabricClientRepository.js.map +1 -1
- package/lib/esm/client/constants.d.ts +2 -0
- package/lib/esm/client/constants.js +7 -0
- package/lib/esm/client/constants.js.map +1 -0
- package/lib/esm/client/erc20/FabricERC20ClientRepository.js +49 -23
- package/lib/esm/client/erc20/FabricERC20ClientRepository.js.map +1 -1
- package/lib/esm/client/types.d.ts +7 -0
- package/lib/esm/client/types.js +2 -0
- package/lib/esm/client/types.js.map +1 -0
- package/lib/esm/version.d.ts +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/version.cjs +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { FabricClientRepository } from "./../FabricClientRepository.js";
|
|
|
2
2
|
import { ERC20Wallet } from "./../../contracts/erc20/models.js";
|
|
3
3
|
import { Model } from "@decaf-ts/decorator-validation";
|
|
4
4
|
import { ClientSerializer } from "./../../shared/ClientSerializer.js";
|
|
5
|
-
import { Sequence } from "@decaf-ts/core";
|
|
5
|
+
import { Context, Sequence, } from "@decaf-ts/core";
|
|
6
6
|
import { InternalError, } from "@decaf-ts/db-decorators";
|
|
7
7
|
/**
|
|
8
8
|
* Repository for interacting with ERC20 contracts on a Hyperledger Fabric network.
|
|
@@ -64,7 +64,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
64
64
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
65
65
|
*/
|
|
66
66
|
async tokenName() {
|
|
67
|
-
const
|
|
67
|
+
const contextArgs = await Context.args("tokenName", this.class, [], this.adapter, this._overrides || {});
|
|
68
|
+
const { ctx } = this.logCtx(contextArgs.args, this.clientAccountID);
|
|
69
|
+
const name = await this.adapter.evaluateTransaction(ctx, "TokenName");
|
|
68
70
|
return this.decode(name);
|
|
69
71
|
}
|
|
70
72
|
/**
|
|
@@ -78,7 +80,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
78
80
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
79
81
|
*/
|
|
80
82
|
async symbol() {
|
|
81
|
-
const
|
|
83
|
+
const contextArgs = await Context.args("symbol", this.class, [], this.adapter, this._overrides || {});
|
|
84
|
+
const { ctx } = this.logCtx(contextArgs.args, this.symbol);
|
|
85
|
+
const symbol = await this.adapter.evaluateTransaction(ctx, "Symbol");
|
|
82
86
|
return this.decode(symbol);
|
|
83
87
|
}
|
|
84
88
|
/**
|
|
@@ -92,7 +96,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
92
96
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
93
97
|
*/
|
|
94
98
|
async decimals() {
|
|
95
|
-
const
|
|
99
|
+
const contextArgs = await Context.args("decimals", this.class, [], this.adapter, this._overrides || {});
|
|
100
|
+
const { ctx } = this.logCtx(contextArgs.args, this.decimals);
|
|
101
|
+
const decimals = await this.adapter.evaluateTransaction(ctx, "Decimals");
|
|
96
102
|
return Number(this.decode(decimals));
|
|
97
103
|
}
|
|
98
104
|
/**
|
|
@@ -106,7 +112,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
106
112
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
107
113
|
*/
|
|
108
114
|
async totalSupply() {
|
|
109
|
-
const
|
|
115
|
+
const contextArgs = await Context.args("totalSupply", this.class, [], this.adapter, this._overrides || {});
|
|
116
|
+
const { ctx } = this.logCtx(contextArgs.args, this.totalSupply);
|
|
117
|
+
const total = await this.adapter.evaluateTransaction(ctx, "TotalSupply");
|
|
110
118
|
return Number(this.decode(total));
|
|
111
119
|
}
|
|
112
120
|
/**
|
|
@@ -124,7 +132,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
124
132
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
125
133
|
*/
|
|
126
134
|
async balanceOf(owner) {
|
|
127
|
-
const
|
|
135
|
+
const contextArgs = await Context.args("balance", this.class, [], this.adapter, this._overrides || {});
|
|
136
|
+
const { ctx } = this.logCtx(contextArgs.args, this.balanceOf);
|
|
137
|
+
const balance = await this.adapter.evaluateTransaction(ctx, "BalanceOf", [
|
|
128
138
|
owner,
|
|
129
139
|
]);
|
|
130
140
|
return Number(this.decode(balance));
|
|
@@ -145,7 +155,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
145
155
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
146
156
|
*/
|
|
147
157
|
async transfer(to, value) {
|
|
148
|
-
const
|
|
158
|
+
const contextArgs = await Context.args("transfer", this.class, [], this.adapter, this._overrides || {});
|
|
159
|
+
const { ctx } = this.logCtx(contextArgs.args, this.transfer);
|
|
160
|
+
const transferred = await this.adapter.submitTransaction(ctx, "Transfer", [
|
|
149
161
|
to,
|
|
150
162
|
value.toString(),
|
|
151
163
|
]);
|
|
@@ -169,11 +181,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
169
181
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
170
182
|
*/
|
|
171
183
|
async transferFrom(from, to, value) {
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
value.toString(),
|
|
176
|
-
]);
|
|
184
|
+
const contextArgs = await Context.args("transferFrom", this.class, [], this.adapter, this._overrides || {});
|
|
185
|
+
const { ctx } = this.logCtx(contextArgs.args, this.transferFrom);
|
|
186
|
+
const transferred = await this.adapter.submitTransaction(ctx, "TransferFrom", [from, to, value.toString()]);
|
|
177
187
|
return this.decode(transferred) === "true" ? true : false;
|
|
178
188
|
}
|
|
179
189
|
/**
|
|
@@ -191,7 +201,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
191
201
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
192
202
|
*/
|
|
193
203
|
async approve(spender, value) {
|
|
194
|
-
const
|
|
204
|
+
const contextArgs = await Context.args("approve", this.class, [], this.adapter, this._overrides || {});
|
|
205
|
+
const { ctx } = this.logCtx(contextArgs.args, this.approve);
|
|
206
|
+
const approved = await this.adapter.submitTransaction(ctx, "Approve", [
|
|
195
207
|
spender,
|
|
196
208
|
value.toString(),
|
|
197
209
|
]);
|
|
@@ -213,7 +225,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
213
225
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
214
226
|
*/
|
|
215
227
|
async allowance(owner, spender) {
|
|
216
|
-
const
|
|
228
|
+
const contextArgs = await Context.args("allowance", this.class, [], this.adapter, this._overrides || {});
|
|
229
|
+
const { ctx } = this.logCtx(contextArgs.args, this.allowance);
|
|
230
|
+
const allowance = await this.adapter.submitTransaction(ctx, "Allowance", [
|
|
217
231
|
owner,
|
|
218
232
|
spender,
|
|
219
233
|
]);
|
|
@@ -234,9 +248,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
234
248
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
235
249
|
*/
|
|
236
250
|
async initialize(token) {
|
|
237
|
-
const
|
|
238
|
-
|
|
239
|
-
]);
|
|
251
|
+
const contextArgs = await Context.args("initialize", this.class, [], this.adapter, this._overrides || {});
|
|
252
|
+
const { ctx } = this.logCtx(contextArgs.args, this.initialize);
|
|
253
|
+
const initiliazed = await this.adapter.submitTransaction(ctx, "Initialize", [FabricERC20ClientRepository.serializer.serialize(token)]);
|
|
240
254
|
return this.decode(initiliazed) === "true" ? true : false;
|
|
241
255
|
}
|
|
242
256
|
/**
|
|
@@ -250,7 +264,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
250
264
|
* @throws {Error} If the transaction fails.
|
|
251
265
|
*/
|
|
252
266
|
async checkInitialized() {
|
|
253
|
-
await this.adapter.
|
|
267
|
+
const contextArgs = await Context.args("checkInitialized", this.class, [], this.adapter, this._overrides || {});
|
|
268
|
+
const { ctx } = this.logCtx(contextArgs.args, this.checkInitialized);
|
|
269
|
+
await this.adapter.evaluateTransaction(ctx, "CheckInitialized");
|
|
254
270
|
}
|
|
255
271
|
/**
|
|
256
272
|
* Mints a specified amount of ERC20 tokens.
|
|
@@ -267,7 +283,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
267
283
|
* @throws {Error} If the transaction fails.
|
|
268
284
|
*/
|
|
269
285
|
async mint(amount) {
|
|
270
|
-
await
|
|
286
|
+
const contextArgs = await Context.args("mint", this.class, [], this.adapter, this._overrides || {});
|
|
287
|
+
const { ctx } = this.logCtx(contextArgs.args, this.mint);
|
|
288
|
+
await this.adapter.submitTransaction(ctx, "Mint", [amount.toString()]);
|
|
271
289
|
}
|
|
272
290
|
/**
|
|
273
291
|
* Burns a specified amount of ERC20 tokens from the minter's account.
|
|
@@ -283,7 +301,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
283
301
|
* @throws {Error} If the transaction fails.
|
|
284
302
|
*/
|
|
285
303
|
async burn(amount) {
|
|
286
|
-
await
|
|
304
|
+
const contextArgs = await Context.args("burn", this.class, [], this.adapter, this._overrides || {});
|
|
305
|
+
const { ctx } = this.logCtx(contextArgs.args, this.burn);
|
|
306
|
+
await this.adapter.submitTransaction(ctx, "Burn", [amount.toString()]);
|
|
287
307
|
}
|
|
288
308
|
/**
|
|
289
309
|
* Burns a specified amount of ERC20 tokens from a specified account.
|
|
@@ -300,7 +320,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
300
320
|
* @throws {Error} If the transaction fails.
|
|
301
321
|
*/
|
|
302
322
|
async burnFrom(account, amount) {
|
|
303
|
-
await
|
|
323
|
+
const contextArgs = await Context.args("burnFrom", this.class, [], this.adapter, this._overrides || {});
|
|
324
|
+
const { ctx } = this.logCtx(contextArgs.args, this.burnFrom);
|
|
325
|
+
await this.adapter.submitTransaction(ctx, "BurnFrom", [
|
|
304
326
|
account,
|
|
305
327
|
amount.toString(),
|
|
306
328
|
]);
|
|
@@ -317,7 +339,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
317
339
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
318
340
|
*/
|
|
319
341
|
async clientAccountBalance() {
|
|
320
|
-
const
|
|
342
|
+
const contextArgs = await Context.args("accountBalance", this.class, [], this.adapter, this._overrides || {});
|
|
343
|
+
const { ctx } = this.logCtx(contextArgs.args, this.clientAccountBalance);
|
|
344
|
+
const serializedAccountBalance = await this.adapter.evaluateTransaction(ctx, "ClientAccountBalance");
|
|
321
345
|
return Number(this.decode(serializedAccountBalance));
|
|
322
346
|
}
|
|
323
347
|
/**
|
|
@@ -332,7 +356,9 @@ export class FabricERC20ClientRepository extends FabricClientRepository {
|
|
|
332
356
|
* @throws {Error} If the transaction fails or the decoding process fails.
|
|
333
357
|
*/
|
|
334
358
|
async clientAccountID() {
|
|
335
|
-
const
|
|
359
|
+
const contextArgs = await Context.args("accountId", this.class, [], this.adapter, this._overrides || {});
|
|
360
|
+
const { ctx } = this.logCtx(contextArgs.args, this.clientAccountID);
|
|
361
|
+
const clientAccountID = await this.adapter.evaluateTransaction(ctx, "ClientAccountID");
|
|
336
362
|
return this.decode(clientAccountID);
|
|
337
363
|
}
|
|
338
364
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FabricERC20ClientRepository.js","sourceRoot":"","sources":["../../../../src/client/erc20/FabricERC20ClientRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,uCAAkC;AACnE,OAAO,EAAc,WAAW,EAAE,0CAAqC;AACvE,OAAO,EAAE,KAAK,EAAc,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,2CAAsC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"FabricERC20ClientRepository.js","sourceRoot":"","sources":["../../../../src/client/erc20/FabricERC20ClientRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,uCAAkC;AACnE,OAAO,EAAc,WAAW,EAAE,0CAAqC;AACvE,OAAO,EAAE,KAAK,EAAc,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,gBAAgB,EAAE,2CAAsC;AACjE,OAAO,EACL,OAAO,EAIP,QAAQ,GACT,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,aAAa,GAEd,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,MAAM,OAAO,2BAEX,SAAQ,sBAAsC;aAC/B,eAAU,GAAG,IAAI,gBAAgB,EAAE,AAAzB,CAA0B;aAKpC,YAAO,GAAG,IAAI,WAAW,CAAC,MAAM,CAAC,AAA1B,CAA2B;IAEjD;;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,iBAAiB,CAClB,CAAC;QAEF,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IACtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/client/types.ts"],"names":[],"mappings":""}
|
package/lib/esm/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.27";
|
|
2
2
|
export declare const PACKAGE_NAME = "@decaf-ts/for-fabric";
|
package/lib/esm/version.js
CHANGED
package/lib/version.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PACKAGE_NAME = exports.VERSION = void 0;
|
|
4
4
|
const decoration_1 = require("@decaf-ts/decoration");
|
|
5
|
-
exports.VERSION = "0.1.
|
|
5
|
+
exports.VERSION = "0.1.27";
|
|
6
6
|
exports.PACKAGE_NAME = "@decaf-ts/for-fabric";
|
|
7
7
|
decoration_1.Metadata.registerLibrary(exports.PACKAGE_NAME, exports.VERSION);
|
|
8
8
|
//# sourceMappingURL=version.js.map
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.27";
|
|
2
2
|
export declare const PACKAGE_NAME = "@decaf-ts/for-fabric";
|