@twin.org/engine 0.0.1-next.32 → 0.0.1-next.33
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/dist/cjs/index.cjs
CHANGED
|
@@ -501,6 +501,20 @@ function configureFaucetConnectors(coreConfig, envVars) {
|
|
|
501
501
|
}
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
|
+
else if (envVars.faucetConnector === engineTypes.FaucetConnectorType.IotaRebased) {
|
|
505
|
+
coreConfig.types.faucetConnector.push({
|
|
506
|
+
type: engineTypes.FaucetConnectorType.IotaRebased,
|
|
507
|
+
options: {
|
|
508
|
+
config: {
|
|
509
|
+
endpoint: envVars.iotaRebasedFaucetEndpoint ?? "",
|
|
510
|
+
clientOptions: {
|
|
511
|
+
url: envVars.iotaRebasedNodeEndpoint ?? ""
|
|
512
|
+
},
|
|
513
|
+
network: envVars.iotaRebasedNetwork ?? ""
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
}
|
|
504
518
|
}
|
|
505
519
|
/**
|
|
506
520
|
* Configures the wallet connectors for the core.
|
|
@@ -528,6 +542,19 @@ function configureWalletConnectors(coreConfig, envVars) {
|
|
|
528
542
|
}
|
|
529
543
|
});
|
|
530
544
|
}
|
|
545
|
+
else if (envVars.walletConnector === engineTypes.WalletConnectorType.IotaRebased) {
|
|
546
|
+
coreConfig.types.walletConnector.push({
|
|
547
|
+
type: engineTypes.WalletConnectorType.IotaRebased,
|
|
548
|
+
options: {
|
|
549
|
+
config: {
|
|
550
|
+
clientOptions: {
|
|
551
|
+
url: envVars.iotaRebasedNodeEndpoint ?? ""
|
|
552
|
+
},
|
|
553
|
+
network: envVars.iotaRebasedNetwork ?? ""
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
}
|
|
531
558
|
}
|
|
532
559
|
/**
|
|
533
560
|
* Configures the NFT connectors for the core.
|
|
@@ -555,6 +582,19 @@ function configureNftConnectors(coreConfig, envVars) {
|
|
|
555
582
|
}
|
|
556
583
|
});
|
|
557
584
|
}
|
|
585
|
+
else if (envVars.nftConnector === engineTypes.NftConnectorType.IotaRebased) {
|
|
586
|
+
coreConfig.types.nftConnector.push({
|
|
587
|
+
type: engineTypes.NftConnectorType.IotaRebased,
|
|
588
|
+
options: {
|
|
589
|
+
config: {
|
|
590
|
+
clientOptions: {
|
|
591
|
+
url: envVars.iotaRebasedNodeEndpoint ?? ""
|
|
592
|
+
},
|
|
593
|
+
network: envVars.iotaRebasedNetwork ?? ""
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
}
|
|
558
598
|
if (coreConfig.types.nftConnector.length > 0) {
|
|
559
599
|
coreConfig.types.nftComponent ??= [];
|
|
560
600
|
coreConfig.types.nftComponent.push({ type: engineTypes.NftComponentType.Service });
|
|
@@ -662,14 +702,9 @@ function configureIdentityProfileConnectors(coreConfig, envVars) {
|
|
|
662
702
|
*/
|
|
663
703
|
function configureAttestationConnectors(coreConfig, envVars) {
|
|
664
704
|
coreConfig.types.attestationConnector ??= [];
|
|
665
|
-
if (envVars.attestationConnector === engineTypes.AttestationConnectorType.
|
|
666
|
-
coreConfig.types.attestationConnector.push({
|
|
667
|
-
type: engineTypes.AttestationConnectorType.EntityStorage
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
else if (envVars.attestationConnector === engineTypes.AttestationConnectorType.Iota) {
|
|
705
|
+
if (envVars.attestationConnector === engineTypes.AttestationConnectorType.Nft) {
|
|
671
706
|
coreConfig.types.attestationConnector.push({
|
|
672
|
-
type: engineTypes.AttestationConnectorType.
|
|
707
|
+
type: engineTypes.AttestationConnectorType.Nft
|
|
673
708
|
});
|
|
674
709
|
}
|
|
675
710
|
if (coreConfig.types.attestationConnector.length > 0) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -499,6 +499,20 @@ function configureFaucetConnectors(coreConfig, envVars) {
|
|
|
499
499
|
}
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
|
+
else if (envVars.faucetConnector === FaucetConnectorType.IotaRebased) {
|
|
503
|
+
coreConfig.types.faucetConnector.push({
|
|
504
|
+
type: FaucetConnectorType.IotaRebased,
|
|
505
|
+
options: {
|
|
506
|
+
config: {
|
|
507
|
+
endpoint: envVars.iotaRebasedFaucetEndpoint ?? "",
|
|
508
|
+
clientOptions: {
|
|
509
|
+
url: envVars.iotaRebasedNodeEndpoint ?? ""
|
|
510
|
+
},
|
|
511
|
+
network: envVars.iotaRebasedNetwork ?? ""
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
}
|
|
502
516
|
}
|
|
503
517
|
/**
|
|
504
518
|
* Configures the wallet connectors for the core.
|
|
@@ -526,6 +540,19 @@ function configureWalletConnectors(coreConfig, envVars) {
|
|
|
526
540
|
}
|
|
527
541
|
});
|
|
528
542
|
}
|
|
543
|
+
else if (envVars.walletConnector === WalletConnectorType.IotaRebased) {
|
|
544
|
+
coreConfig.types.walletConnector.push({
|
|
545
|
+
type: WalletConnectorType.IotaRebased,
|
|
546
|
+
options: {
|
|
547
|
+
config: {
|
|
548
|
+
clientOptions: {
|
|
549
|
+
url: envVars.iotaRebasedNodeEndpoint ?? ""
|
|
550
|
+
},
|
|
551
|
+
network: envVars.iotaRebasedNetwork ?? ""
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
});
|
|
555
|
+
}
|
|
529
556
|
}
|
|
530
557
|
/**
|
|
531
558
|
* Configures the NFT connectors for the core.
|
|
@@ -553,6 +580,19 @@ function configureNftConnectors(coreConfig, envVars) {
|
|
|
553
580
|
}
|
|
554
581
|
});
|
|
555
582
|
}
|
|
583
|
+
else if (envVars.nftConnector === NftConnectorType.IotaRebased) {
|
|
584
|
+
coreConfig.types.nftConnector.push({
|
|
585
|
+
type: NftConnectorType.IotaRebased,
|
|
586
|
+
options: {
|
|
587
|
+
config: {
|
|
588
|
+
clientOptions: {
|
|
589
|
+
url: envVars.iotaRebasedNodeEndpoint ?? ""
|
|
590
|
+
},
|
|
591
|
+
network: envVars.iotaRebasedNetwork ?? ""
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
});
|
|
595
|
+
}
|
|
556
596
|
if (coreConfig.types.nftConnector.length > 0) {
|
|
557
597
|
coreConfig.types.nftComponent ??= [];
|
|
558
598
|
coreConfig.types.nftComponent.push({ type: NftComponentType.Service });
|
|
@@ -660,14 +700,9 @@ function configureIdentityProfileConnectors(coreConfig, envVars) {
|
|
|
660
700
|
*/
|
|
661
701
|
function configureAttestationConnectors(coreConfig, envVars) {
|
|
662
702
|
coreConfig.types.attestationConnector ??= [];
|
|
663
|
-
if (envVars.attestationConnector === AttestationConnectorType.
|
|
664
|
-
coreConfig.types.attestationConnector.push({
|
|
665
|
-
type: AttestationConnectorType.EntityStorage
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
else if (envVars.attestationConnector === AttestationConnectorType.Iota) {
|
|
703
|
+
if (envVars.attestationConnector === AttestationConnectorType.Nft) {
|
|
669
704
|
coreConfig.types.attestationConnector.push({
|
|
670
|
-
type: AttestationConnectorType.
|
|
705
|
+
type: AttestationConnectorType.Nft
|
|
671
706
|
});
|
|
672
707
|
}
|
|
673
708
|
if (coreConfig.types.attestationConnector.length > 0) {
|
|
@@ -258,6 +258,18 @@ export interface IEngineEnvironmentVariables {
|
|
|
258
258
|
* IOTA Node Endpoint.
|
|
259
259
|
*/
|
|
260
260
|
iotaNodeEndpoint?: string;
|
|
261
|
+
/**
|
|
262
|
+
* IOTA Rebased Faucet Endpoint.
|
|
263
|
+
*/
|
|
264
|
+
iotaRebasedFaucetEndpoint?: string;
|
|
265
|
+
/**
|
|
266
|
+
* IOTA Rebased Node Endpoint.
|
|
267
|
+
*/
|
|
268
|
+
iotaRebasedNodeEndpoint?: string;
|
|
269
|
+
/**
|
|
270
|
+
* IOTA Rebased network.
|
|
271
|
+
*/
|
|
272
|
+
iotaRebasedNetwork?: string;
|
|
261
273
|
/**
|
|
262
274
|
* IOTA Bech32 HRP
|
|
263
275
|
*/
|
package/docs/changelog.md
CHANGED
|
@@ -516,6 +516,30 @@ IOTA Node Endpoint.
|
|
|
516
516
|
|
|
517
517
|
***
|
|
518
518
|
|
|
519
|
+
### iotaRebasedFaucetEndpoint?
|
|
520
|
+
|
|
521
|
+
> `optional` **iotaRebasedFaucetEndpoint**: `string`
|
|
522
|
+
|
|
523
|
+
IOTA Rebased Faucet Endpoint.
|
|
524
|
+
|
|
525
|
+
***
|
|
526
|
+
|
|
527
|
+
### iotaRebasedNodeEndpoint?
|
|
528
|
+
|
|
529
|
+
> `optional` **iotaRebasedNodeEndpoint**: `string`
|
|
530
|
+
|
|
531
|
+
IOTA Rebased Node Endpoint.
|
|
532
|
+
|
|
533
|
+
***
|
|
534
|
+
|
|
535
|
+
### iotaRebasedNetwork?
|
|
536
|
+
|
|
537
|
+
> `optional` **iotaRebasedNetwork**: `string`
|
|
538
|
+
|
|
539
|
+
IOTA Rebased network.
|
|
540
|
+
|
|
541
|
+
***
|
|
542
|
+
|
|
519
543
|
### iotaBech32Hrp?
|
|
520
544
|
|
|
521
545
|
> `optional` **iotaBech32Hrp**: `string`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.33",
|
|
4
4
|
"description": "Engine implementation.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/engine-core": "0.0.1-next.
|
|
19
|
-
"@twin.org/engine-types": "0.0.1-next.
|
|
18
|
+
"@twin.org/engine-core": "0.0.1-next.33",
|
|
19
|
+
"@twin.org/engine-types": "0.0.1-next.33"
|
|
20
20
|
},
|
|
21
21
|
"main": "./dist/cjs/index.cjs",
|
|
22
22
|
"module": "./dist/esm/index.mjs",
|