@embarkai/ui-kit 0.1.5 → 0.2.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/README.md CHANGED
@@ -449,14 +449,12 @@ function DirectTransactionExample() {
449
449
 
450
450
  try {
451
451
  // Send transaction directly with full control
452
- const userOpHash = await sendUserOperation(
453
- session, // Required: session from useAccountSession
454
- '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb', // to address
455
- '1000000000000000000', // value in wei (1 ETH)
456
- '0x', // data (optional contract call)
457
- 'standard', // fee type: 'economy' | 'standard' | 'fast'
458
- 'v0.7' // EntryPoint version
459
- )
452
+ const userOpHash = await sendUserOperation(session, {
453
+ to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
454
+ value: '1000000000000000000', // 1 ETH in wei
455
+ data: '0x', // optional contract call
456
+ feeType: 'standard', // (Optional) 'economy' | 'standard' | 'fast'
457
+ })
460
458
 
461
459
  console.log('Transaction submitted:', userOpHash)
462
460
  } catch (error) {
@@ -648,14 +646,12 @@ function BackendSubmissionExample() {
648
646
  if (!session) return
649
647
 
650
648
  // Prepare and sign UserOp without sending to bundler
651
- const { userOp, userOpHash } = await prepareUserOperation(
652
- session,
653
- '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb', // to
654
- '1000000000000000000', // 1 ETH in wei
655
- '0x', // data
656
- 'standard', // fee type: 'economy' | 'standard' | 'fast'
657
- 'v0.7' // EntryPoint version
658
- )
649
+ const { userOp, userOpHash } = await prepareUserOperation(session, {
650
+ to: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb',
651
+ value: '1000000000000000000', // 1 ETH in wei
652
+ data: '0x',
653
+ feeType: 'standard', // (Optional) 'economy' | 'standard' | 'fast'
654
+ })
659
655
 
660
656
  // Send to backend for validation and submission
661
657
  await fetch('/api/submit-transaction', {
@@ -15,7 +15,7 @@
15
15
  <meta http-equiv="X-Content-Type-Options" content="nosniff" />
16
16
  <meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
17
17
 
18
- <title>EmbarkAI Secure Wallet - iframe version 0.1.5</title>
18
+ <title>EmbarkAI Secure Wallet - iframe version 0.2.0</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -4399,7 +4399,7 @@ var SigningManager = class extends TokenRefreshApiClient {
4399
4399
  };
4400
4400
 
4401
4401
  // src/iframe/main.ts
4402
- var IFRAME_VERSION = "0.1.5";
4402
+ var IFRAME_VERSION = "0.2.0";
4403
4403
  var IframeWallet = class {
4404
4404
  constructor() {
4405
4405
  console.log("=".repeat(60));