@openzeppelin/ui-builder-adapter-stellar 1.8.1 → 1.8.2
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/index.cjs +16 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -15
- package/dist/index.js.map +1 -1
- package/dist/networks.cjs +2 -2
- package/dist/networks.cjs.map +1 -1
- package/dist/networks.js +2 -2
- package/dist/networks.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/getDefaultServiceConfig.test.ts +5 -5
- package/src/access-control/indexer-client.ts +2 -2
- package/src/configuration/network-services.ts +17 -14
- package/src/networks/mainnet.ts +1 -1
- package/src/networks/testnet.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3360,7 +3360,7 @@ var import_ui_types7 = require("@openzeppelin/ui-types");
|
|
|
3360
3360
|
var import_ui_utils20 = require("@openzeppelin/ui-utils");
|
|
3361
3361
|
var LOG_SYSTEM3 = "StellarIndexerClient";
|
|
3362
3362
|
function getUserIndexerEndpoints(networkId) {
|
|
3363
|
-
const svcCfg = import_ui_utils20.userNetworkServiceConfigService.get(networkId, "indexer");
|
|
3363
|
+
const svcCfg = import_ui_utils20.userNetworkServiceConfigService.get(networkId, "access-control-indexer");
|
|
3364
3364
|
if (!svcCfg || typeof svcCfg !== "object") {
|
|
3365
3365
|
return void 0;
|
|
3366
3366
|
}
|
|
@@ -3402,7 +3402,7 @@ var StellarIndexerClient = class {
|
|
|
3402
3402
|
this.networkConfig = networkConfig;
|
|
3403
3403
|
this.unsubscribeFromConfigChanges = import_ui_utils20.userNetworkServiceConfigService.subscribe(
|
|
3404
3404
|
networkConfig.id,
|
|
3405
|
-
"indexer",
|
|
3405
|
+
"access-control-indexer",
|
|
3406
3406
|
() => {
|
|
3407
3407
|
import_ui_utils20.logger.info(
|
|
3408
3408
|
LOG_SYSTEM3,
|
|
@@ -5785,7 +5785,7 @@ function getStellarDefaultServiceConfig(networkConfig, serviceId) {
|
|
|
5785
5785
|
return { sorobanRpcUrl: networkConfig.sorobanRpcUrl };
|
|
5786
5786
|
}
|
|
5787
5787
|
break;
|
|
5788
|
-
case "indexer":
|
|
5788
|
+
case "access-control-indexer":
|
|
5789
5789
|
if (networkConfig.indexerUri && networkConfig.indexerWsUri) {
|
|
5790
5790
|
return {
|
|
5791
5791
|
indexerUri: networkConfig.indexerUri,
|
|
@@ -5814,26 +5814,27 @@ function getStellarNetworkServiceForms(exclude = []) {
|
|
|
5814
5814
|
]
|
|
5815
5815
|
},
|
|
5816
5816
|
{
|
|
5817
|
-
id: "indexer",
|
|
5818
|
-
label: "Indexer",
|
|
5819
|
-
description: "Optional GraphQL indexer endpoint for historical access control data",
|
|
5817
|
+
id: "access-control-indexer",
|
|
5818
|
+
label: "Access Control Indexer",
|
|
5819
|
+
description: "Optional GraphQL indexer endpoint for historical access control data. Overrides the default indexer URL for this network.",
|
|
5820
5820
|
supportsConnectionTest: true,
|
|
5821
|
+
requiredFeature: "access_control_indexer",
|
|
5821
5822
|
fields: [
|
|
5822
5823
|
{
|
|
5823
|
-
id: "stellar-indexer-uri",
|
|
5824
|
+
id: "stellar-access-control-indexer-uri",
|
|
5824
5825
|
name: "indexerUri",
|
|
5825
5826
|
type: "text",
|
|
5826
|
-
label: "Indexer GraphQL
|
|
5827
|
+
label: "Access Control Indexer GraphQL Endpoint",
|
|
5827
5828
|
placeholder: "https://indexer.example.com/graphql",
|
|
5828
5829
|
validation: { required: false, pattern: "^https?://.+" },
|
|
5829
5830
|
width: "full",
|
|
5830
|
-
helperText: "Optional. Used for querying historical access control events."
|
|
5831
|
+
helperText: "Optional. Used for querying historical access control events and role discovery."
|
|
5831
5832
|
},
|
|
5832
5833
|
{
|
|
5833
|
-
id: "stellar-indexer-ws-uri",
|
|
5834
|
+
id: "stellar-access-control-indexer-ws-uri",
|
|
5834
5835
|
name: "indexerWsUri",
|
|
5835
5836
|
type: "text",
|
|
5836
|
-
label: "Indexer GraphQL WebSocket Endpoint",
|
|
5837
|
+
label: "Access Control Indexer GraphQL WebSocket Endpoint",
|
|
5837
5838
|
placeholder: "wss://indexer.example.com/graphql",
|
|
5838
5839
|
validation: { required: false, pattern: "^wss?://.+" },
|
|
5839
5840
|
width: "full",
|
|
@@ -5852,7 +5853,7 @@ async function validateStellarNetworkServiceConfig(serviceId, values) {
|
|
|
5852
5853
|
};
|
|
5853
5854
|
return validateStellarRpcEndpoint(cfg);
|
|
5854
5855
|
}
|
|
5855
|
-
if (serviceId === "indexer") {
|
|
5856
|
+
if (serviceId === "access-control-indexer") {
|
|
5856
5857
|
if (values.indexerUri !== void 0 && values.indexerUri !== null && values.indexerUri !== "") {
|
|
5857
5858
|
if (!(0, import_ui_utils24.isValidUrl)(String(values.indexerUri))) {
|
|
5858
5859
|
return false;
|
|
@@ -5875,7 +5876,7 @@ async function testStellarNetworkServiceConnection(serviceId, values) {
|
|
|
5875
5876
|
};
|
|
5876
5877
|
return testStellarRpcConnection(cfg);
|
|
5877
5878
|
}
|
|
5878
|
-
if (serviceId === "indexer") {
|
|
5879
|
+
if (serviceId === "access-control-indexer") {
|
|
5879
5880
|
const indexerUri = values.indexerUri;
|
|
5880
5881
|
if (!indexerUri || typeof indexerUri !== "string" || indexerUri.trim() === "") {
|
|
5881
5882
|
return { success: true };
|
|
@@ -8600,7 +8601,7 @@ var stellarPublic = {
|
|
|
8600
8601
|
networkPassphrase: "Public Global Stellar Network ; September 2015",
|
|
8601
8602
|
explorerUrl: "https://stellar.expert/explorer/public",
|
|
8602
8603
|
iconComponent: import_react12.NetworkStellar,
|
|
8603
|
-
accessControlIndexerUrl: "https://openzeppelin-stellar-mainnet.graphql.subquery.network
|
|
8604
|
+
accessControlIndexerUrl: "https://openzeppelin-stellar-mainnet.graphql.subquery.network"
|
|
8604
8605
|
};
|
|
8605
8606
|
|
|
8606
8607
|
// src/networks/testnet.ts
|
|
@@ -8618,7 +8619,7 @@ var stellarTestnet = {
|
|
|
8618
8619
|
networkPassphrase: "Test SDF Network ; September 2015",
|
|
8619
8620
|
explorerUrl: "https://stellar.expert/explorer/testnet",
|
|
8620
8621
|
iconComponent: import_react13.NetworkStellar,
|
|
8621
|
-
accessControlIndexerUrl: "https://
|
|
8622
|
+
accessControlIndexerUrl: "https://openzeppelin-stellar-testnet.graphql.subquery.network"
|
|
8622
8623
|
};
|
|
8623
8624
|
|
|
8624
8625
|
// src/networks/index.ts
|