@openzeppelin/ui-builder-adapter-stellar 0.16.0 → 1.1.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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WalletConnectionStatus, ContractAdapter, StellarNetworkConfig, UiKitConfiguration, NetworkServiceForm, FormFieldType, ContractSchema, FieldType, FunctionParameter, ExecutionConfig, TxStatus, TransactionStatusUpdate, ContractFunction, Connector, ExecutionMethodDetail, AvailableUiKit, NativeConfigLoader, EcosystemWalletComponents, EcosystemReactUiProviderProps, EcosystemSpecificReactHooks, RelayerDetails, RelayerDetailsRich, UserRpcProviderConfig, AdapterConfig } from '@openzeppelin/ui-builder-types';
2
+ import { WalletConnectionStatus, ContractAdapter, StellarNetworkConfig, UiKitConfiguration, NetworkServiceForm, FormFieldType, ContractSchema, FieldType, FunctionParameter, ExecutionConfig, TxStatus, TransactionStatusUpdate, ContractFunction, Connector, ExecutionMethodDetail, AvailableUiKit, NativeConfigLoader, EcosystemWalletComponents, EcosystemReactUiProviderProps, EcosystemSpecificReactHooks, RelayerDetails, RelayerDetailsRich, UserRpcProviderConfig, AccessControlService, AdapterConfig } from '@openzeppelin/ui-builder-types';
3
3
 
4
4
  /**
5
5
  * Stellar-specific wallet connection status extending the base interface.
@@ -17,6 +17,7 @@ interface StellarWalletConnectionStatus extends WalletConnectionStatus {
17
17
  declare class StellarAdapter implements ContractAdapter {
18
18
  readonly networkConfig: StellarNetworkConfig;
19
19
  readonly initialAppServiceKitName: UiKitConfiguration['kitName'];
20
+ private readonly accessControlService;
20
21
  constructor(networkConfig: StellarNetworkConfig);
21
22
  /**
22
23
  * @inheritdoc
@@ -156,6 +157,10 @@ declare class StellarAdapter implements ContractAdapter {
156
157
  * @inheritdoc
157
158
  */
158
159
  getExplorerTxUrl?(txHash: string): string | null;
160
+ /**
161
+ * @inheritdoc
162
+ */
163
+ getCurrentBlock(): Promise<number>;
159
164
  /**
160
165
  * @inheritdoc
161
166
  */
@@ -217,6 +222,10 @@ declare class StellarAdapter implements ContractAdapter {
217
222
  * @inheritdoc
218
223
  */
219
224
  getUiLabels(): Record<string, string> | undefined;
225
+ /**
226
+ * @inheritdoc
227
+ */
228
+ getAccessControlService(): AccessControlService;
220
229
  }
221
230
 
222
231
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WalletConnectionStatus, ContractAdapter, StellarNetworkConfig, UiKitConfiguration, NetworkServiceForm, FormFieldType, ContractSchema, FieldType, FunctionParameter, ExecutionConfig, TxStatus, TransactionStatusUpdate, ContractFunction, Connector, ExecutionMethodDetail, AvailableUiKit, NativeConfigLoader, EcosystemWalletComponents, EcosystemReactUiProviderProps, EcosystemSpecificReactHooks, RelayerDetails, RelayerDetailsRich, UserRpcProviderConfig, AdapterConfig } from '@openzeppelin/ui-builder-types';
2
+ import { WalletConnectionStatus, ContractAdapter, StellarNetworkConfig, UiKitConfiguration, NetworkServiceForm, FormFieldType, ContractSchema, FieldType, FunctionParameter, ExecutionConfig, TxStatus, TransactionStatusUpdate, ContractFunction, Connector, ExecutionMethodDetail, AvailableUiKit, NativeConfigLoader, EcosystemWalletComponents, EcosystemReactUiProviderProps, EcosystemSpecificReactHooks, RelayerDetails, RelayerDetailsRich, UserRpcProviderConfig, AccessControlService, AdapterConfig } from '@openzeppelin/ui-builder-types';
3
3
 
4
4
  /**
5
5
  * Stellar-specific wallet connection status extending the base interface.
@@ -17,6 +17,7 @@ interface StellarWalletConnectionStatus extends WalletConnectionStatus {
17
17
  declare class StellarAdapter implements ContractAdapter {
18
18
  readonly networkConfig: StellarNetworkConfig;
19
19
  readonly initialAppServiceKitName: UiKitConfiguration['kitName'];
20
+ private readonly accessControlService;
20
21
  constructor(networkConfig: StellarNetworkConfig);
21
22
  /**
22
23
  * @inheritdoc
@@ -156,6 +157,10 @@ declare class StellarAdapter implements ContractAdapter {
156
157
  * @inheritdoc
157
158
  */
158
159
  getExplorerTxUrl?(txHash: string): string | null;
160
+ /**
161
+ * @inheritdoc
162
+ */
163
+ getCurrentBlock(): Promise<number>;
159
164
  /**
160
165
  * @inheritdoc
161
166
  */
@@ -217,6 +222,10 @@ declare class StellarAdapter implements ContractAdapter {
217
222
  * @inheritdoc
218
223
  */
219
224
  getUiLabels(): Record<string, string> | undefined;
225
+ /**
226
+ * @inheritdoc
227
+ */
228
+ getAccessControlService(): AccessControlService;
220
229
  }
221
230
 
222
231
  /**