@@ -8,18 +8,18 @@ import {
8
8
InvokeContractV1Request as BesuInvokeContractV1Request ,
9
9
} from "@hyperledger/cactus-plugin-ledger-connector-besu" ;
10
10
import {
11
- IOdapPluginKeyPair ,
12
- PluginOdapGateway ,
13
- } from "@hyperledger/cactus-plugin-odap -hermes" ;
14
- import { SessionDataRollbackActionsPerformedEnum } from "@hyperledger/cactus-plugin-odap -hermes" ;
11
+ IKeyPair ,
12
+ PluginSatpGateway ,
13
+ } from "@hyperledger/cactus-plugin-satp -hermes" ;
14
+ import { SessionDataRollbackActionsPerformedEnum } from "@hyperledger/cactus-plugin-satp -hermes" ;
15
15
import { ClientHelper } from "./client-helper" ;
16
16
import { ServerHelper } from "./server-helper" ;
17
17
18
- export interface IBesuOdapGatewayConstructorOptions {
18
+ export interface IBesuSatpGatewayConstructorOptions {
19
19
name : string ;
20
20
dltIDs : string [ ] ;
21
21
instanceId : string ;
22
- keyPair ?: IOdapPluginKeyPair ;
22
+ keyPair ?: IKeyPair ;
23
23
backupGatewaysAllowed ?: string [ ] ;
24
24
25
25
ipfsPath ?: string ;
@@ -36,13 +36,13 @@ export interface IBesuOdapGatewayConstructorOptions {
36
36
knexConfig ?: Knex . Config ;
37
37
}
38
38
39
- export class BesuOdapGateway extends PluginOdapGateway {
39
+ export class BesuSatpGateway extends PluginSatpGateway {
40
40
public besuApi ?: BesuApi ;
41
41
public besuContractName ?: string ;
42
42
public besuWeb3SigningCredential ?: Web3SigningCredential ;
43
43
public besuKeychainId ?: string ;
44
44
45
- public constructor ( options : IBesuOdapGatewayConstructorOptions ) {
45
+ public constructor ( options : IBesuSatpGatewayConstructorOptions ) {
46
46
super ( {
47
47
name : options . name ,
48
48
dltIDs : options . dltIDs ,
@@ -58,7 +58,7 @@ export class BesuOdapGateway extends PluginOdapGateway {
58
58
}
59
59
60
60
private defineBesuConnection (
61
- options : IBesuOdapGatewayConstructorOptions ,
61
+ options : IBesuSatpGatewayConstructorOptions ,
62
62
) : void {
63
63
const fnTag = `${ this . className } #defineBesuConnection()` ;
64
64
@@ -124,7 +124,7 @@ export class BesuOdapGateway extends PluginOdapGateway {
124
124
125
125
let besuCreateAssetProof = "" ;
126
126
127
- await this . storeOdapLog ( {
127
+ await this . storeLog ( {
128
128
sessionID : sessionID ,
129
129
type : "exec" ,
130
130
operation : "create-asset" ,
@@ -175,14 +175,14 @@ export class BesuOdapGateway extends PluginOdapGateway {
175
175
`${ fnTag } , proof of the asset creation: ${ besuCreateAssetProof } ` ,
176
176
) ;
177
177
178
- await this . storeOdapProof ( {
178
+ await this . storeProof ( {
179
179
sessionID : sessionID ,
180
180
type : "proof" ,
181
181
operation : "create" ,
182
182
data : besuCreateAssetProof ,
183
183
} ) ;
184
184
185
- await this . storeOdapLog ( {
185
+ await this . storeLog ( {
186
186
sessionID : sessionID ,
187
187
type : "done" ,
188
188
operation : "create-asset" ,
@@ -207,7 +207,7 @@ export class BesuOdapGateway extends PluginOdapGateway {
207
207
208
208
let besuDeleteAssetProof = "" ;
209
209
210
- await this . storeOdapLog ( {
210
+ await this . storeLog ( {
211
211
sessionID : sessionID ,
212
212
type : "exec" ,
213
213
operation : "delete-asset" ,
@@ -254,14 +254,14 @@ export class BesuOdapGateway extends PluginOdapGateway {
254
254
`${ fnTag } , proof of the asset deletion: ${ besuDeleteAssetProof } ` ,
255
255
) ;
256
256
257
- await this . storeOdapProof ( {
257
+ await this . storeProof ( {
258
258
sessionID : sessionID ,
259
259
type : "proof" ,
260
260
operation : "delete" ,
261
261
data : besuDeleteAssetProof ,
262
262
} ) ;
263
263
264
- await this . storeOdapLog ( {
264
+ await this . storeLog ( {
265
265
sessionID : sessionID ,
266
266
type : "done" ,
267
267
operation : "delete-asset" ,
@@ -286,7 +286,7 @@ export class BesuOdapGateway extends PluginOdapGateway {
286
286
287
287
let besuLockAssetProof = "" ;
288
288
289
- await this . storeOdapLog ( {
289
+ await this . storeLog ( {
290
290
sessionID : sessionID ,
291
291
type : "exec" ,
292
292
operation : "lock-asset" ,
@@ -330,14 +330,14 @@ export class BesuOdapGateway extends PluginOdapGateway {
330
330
331
331
this . log . info ( `${ fnTag } , proof of the asset lock: ${ besuLockAssetProof } ` ) ;
332
332
333
- await this . storeOdapProof ( {
333
+ await this . storeProof ( {
334
334
sessionID : sessionID ,
335
335
type : "proof" ,
336
336
operation : "lock" ,
337
337
data : besuLockAssetProof ,
338
338
} ) ;
339
339
340
- await this . storeOdapLog ( {
340
+ await this . storeLog ( {
341
341
sessionID : sessionID ,
342
342
type : "done" ,
343
343
operation : "lock-asset" ,
@@ -362,7 +362,7 @@ export class BesuOdapGateway extends PluginOdapGateway {
362
362
363
363
let besuUnlockAssetProof = "" ;
364
364
365
- await this . storeOdapLog ( {
365
+ await this . storeLog ( {
366
366
sessionID : sessionID ,
367
367
type : "exec-rollback" ,
368
368
operation : "unlock-asset" ,
@@ -412,14 +412,14 @@ export class BesuOdapGateway extends PluginOdapGateway {
412
412
`${ fnTag } , proof of the asset unlock: ${ besuUnlockAssetProof } ` ,
413
413
) ;
414
414
415
- await this . storeOdapProof ( {
415
+ await this . storeProof ( {
416
416
sessionID : sessionID ,
417
417
type : "proof-rollback" ,
418
418
operation : "unlock" ,
419
419
data : besuUnlockAssetProof ,
420
420
} ) ;
421
421
422
- await this . storeOdapLog ( {
422
+ await this . storeLog ( {
423
423
sessionID : sessionID ,
424
424
type : "done-rollback" ,
425
425
operation : "unlock-asset" ,
@@ -450,7 +450,7 @@ export class BesuOdapGateway extends PluginOdapGateway {
450
450
451
451
let besuCreateAssetProof = "" ;
452
452
453
- await this . storeOdapLog ( {
453
+ await this . storeLog ( {
454
454
sessionID : sessionID ,
455
455
type : "exec-rollback" ,
456
456
operation : "create-asset" ,
@@ -504,14 +504,14 @@ export class BesuOdapGateway extends PluginOdapGateway {
504
504
`${ fnTag } , proof of the asset create: ${ besuCreateAssetProof } ` ,
505
505
) ;
506
506
507
- await this . storeOdapProof ( {
507
+ await this . storeProof ( {
508
508
sessionID : sessionID ,
509
509
type : "proof-rollback" ,
510
510
operation : "create" ,
511
511
data : besuCreateAssetProof ,
512
512
} ) ;
513
513
514
- await this . storeOdapLog ( {
514
+ await this . storeLog ( {
515
515
sessionID : sessionID ,
516
516
type : "done-rollback" ,
517
517
operation : "create-asset" ,
0 commit comments