@d13co/use-wallet 4.5.14 → 4.5.15
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -481,11 +481,11 @@ interface AlgoXEvmOptions {
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
/**
|
|
484
|
-
* Abstract base class for EVM-based wallets that use the
|
|
484
|
+
* Abstract base class for EVM-based wallets that use the xChain EVM system
|
|
485
485
|
* to derive Algorand addresses from EVM addresses.
|
|
486
486
|
*
|
|
487
487
|
* This class provides common functionality for:
|
|
488
|
-
* - Initializing the
|
|
488
|
+
* - Initializing the xChain EVM SDK
|
|
489
489
|
* - Deriving Algorand accounts from EVM addresses
|
|
490
490
|
* - Signing Algorand transactions using EVM signatures
|
|
491
491
|
* - Managing the mapping between EVM and Algorand addresses
|
|
@@ -503,7 +503,7 @@ declare abstract class AlgoXEvmBaseWallet extends BaseWallet {
|
|
|
503
503
|
protected store: Store<State>;
|
|
504
504
|
constructor(params: WalletConstructor<any>);
|
|
505
505
|
/**
|
|
506
|
-
* Default metadata for
|
|
506
|
+
* Default metadata for xChain EVM wallets.
|
|
507
507
|
* Subclasses MUST override this with their own metadata including isAlgoXEvm: "EVM"
|
|
508
508
|
*/
|
|
509
509
|
static defaultMetadata: AlgoXEvmMetadata;
|
|
@@ -530,7 +530,7 @@ declare abstract class AlgoXEvmBaseWallet extends BaseWallet {
|
|
|
530
530
|
*/
|
|
531
531
|
protected abstract signWithProvider(typedData: SignTypedDataParams, evmAddress: string): Promise<string>;
|
|
532
532
|
/**
|
|
533
|
-
* Initialize the
|
|
533
|
+
* Initialize the xChain EVM SDK for deriving Algorand addresses
|
|
534
534
|
*/
|
|
535
535
|
protected initializeEvmSdk(): Promise<AlgoXEvmSdk>;
|
|
536
536
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -481,11 +481,11 @@ interface AlgoXEvmOptions {
|
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
483
|
/**
|
|
484
|
-
* Abstract base class for EVM-based wallets that use the
|
|
484
|
+
* Abstract base class for EVM-based wallets that use the xChain EVM system
|
|
485
485
|
* to derive Algorand addresses from EVM addresses.
|
|
486
486
|
*
|
|
487
487
|
* This class provides common functionality for:
|
|
488
|
-
* - Initializing the
|
|
488
|
+
* - Initializing the xChain EVM SDK
|
|
489
489
|
* - Deriving Algorand accounts from EVM addresses
|
|
490
490
|
* - Signing Algorand transactions using EVM signatures
|
|
491
491
|
* - Managing the mapping between EVM and Algorand addresses
|
|
@@ -503,7 +503,7 @@ declare abstract class AlgoXEvmBaseWallet extends BaseWallet {
|
|
|
503
503
|
protected store: Store<State>;
|
|
504
504
|
constructor(params: WalletConstructor<any>);
|
|
505
505
|
/**
|
|
506
|
-
* Default metadata for
|
|
506
|
+
* Default metadata for xChain EVM wallets.
|
|
507
507
|
* Subclasses MUST override this with their own metadata including isAlgoXEvm: "EVM"
|
|
508
508
|
*/
|
|
509
509
|
static defaultMetadata: AlgoXEvmMetadata;
|
|
@@ -530,7 +530,7 @@ declare abstract class AlgoXEvmBaseWallet extends BaseWallet {
|
|
|
530
530
|
*/
|
|
531
531
|
protected abstract signWithProvider(typedData: SignTypedDataParams, evmAddress: string): Promise<string>;
|
|
532
532
|
/**
|
|
533
|
-
* Initialize the
|
|
533
|
+
* Initialize the xChain EVM SDK for deriving Algorand addresses
|
|
534
534
|
*/
|
|
535
535
|
protected initializeEvmSdk(): Promise<AlgoXEvmSdk>;
|
|
536
536
|
/**
|
package/dist/index.js
CHANGED
|
@@ -8608,16 +8608,16 @@ var AlgoXEvmBaseWallet = class extends BaseWallet {
|
|
|
8608
8608
|
this.store = params.store;
|
|
8609
8609
|
}
|
|
8610
8610
|
/**
|
|
8611
|
-
* Default metadata for
|
|
8611
|
+
* Default metadata for xChain EVM wallets.
|
|
8612
8612
|
* Subclasses MUST override this with their own metadata including isAlgoXEvm: "EVM"
|
|
8613
8613
|
*/
|
|
8614
8614
|
static defaultMetadata;
|
|
8615
8615
|
/**
|
|
8616
|
-
* Initialize the
|
|
8616
|
+
* Initialize the xChain EVM SDK for deriving Algorand addresses
|
|
8617
8617
|
*/
|
|
8618
8618
|
async initializeEvmSdk() {
|
|
8619
8619
|
if (!this.algoXEvmSdk) {
|
|
8620
|
-
this.logger.info("Initializing
|
|
8620
|
+
this.logger.info("Initializing xChain EVM SDK...");
|
|
8621
8621
|
if (!this.algorandClient) {
|
|
8622
8622
|
const { AlgorandClient } = await import("@algorandfoundation/algokit-utils");
|
|
8623
8623
|
const algodClient = this.getAlgodClient();
|
|
@@ -8627,7 +8627,7 @@ var AlgoXEvmBaseWallet = class extends BaseWallet {
|
|
|
8627
8627
|
}
|
|
8628
8628
|
const { AlgoXEvmSdk } = await import("algo-x-evm-sdk");
|
|
8629
8629
|
this.algoXEvmSdk = new AlgoXEvmSdk({ algorand: this.algorandClient });
|
|
8630
|
-
this.logger.info("
|
|
8630
|
+
this.logger.info("xChain EVM SDK initialized");
|
|
8631
8631
|
}
|
|
8632
8632
|
return this.algoXEvmSdk;
|
|
8633
8633
|
}
|