@openzeppelin/ui-builder-adapter-stellar 1.3.0 → 1.4.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/dist/index.cjs CHANGED
@@ -5660,6 +5660,24 @@ async function testWithFallbackMethod(rpcConfig, signal, startTime) {
5660
5660
  }
5661
5661
 
5662
5662
  // src/configuration/network-services.ts
5663
+ function getStellarDefaultServiceConfig(networkConfig, serviceId) {
5664
+ switch (serviceId) {
5665
+ case "rpc":
5666
+ if (networkConfig.sorobanRpcUrl) {
5667
+ return { sorobanRpcUrl: networkConfig.sorobanRpcUrl };
5668
+ }
5669
+ break;
5670
+ case "indexer":
5671
+ if (networkConfig.indexerUri && networkConfig.indexerWsUri) {
5672
+ return {
5673
+ indexerUri: networkConfig.indexerUri,
5674
+ indexerWsUri: networkConfig.indexerWsUri
5675
+ };
5676
+ }
5677
+ break;
5678
+ }
5679
+ return null;
5680
+ }
5663
5681
  function getStellarNetworkServiceForms(exclude = []) {
5664
5682
  const forms = [
5665
5683
  {
@@ -8017,6 +8035,12 @@ var StellarAdapter = class {
8017
8035
  async testNetworkServiceConnection(serviceId, values) {
8018
8036
  return testStellarNetworkServiceConnection(serviceId, values);
8019
8037
  }
8038
+ /**
8039
+ * @inheritdoc
8040
+ */
8041
+ getDefaultServiceConfig(serviceId) {
8042
+ return getStellarDefaultServiceConfig(this.networkConfig, serviceId);
8043
+ }
8020
8044
  /**
8021
8045
  * NOTE about artifact inputs (single input with auto-detection):
8022
8046
  *