@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 +12 -16
- package/dist/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +538 -111
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +183 -103
- package/dist/index.d.ts +183 -103
- package/dist/index.js +478 -56
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
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
|
-
|
|
454
|
-
'
|
|
455
|
-
'
|
|
456
|
-
'
|
|
457
|
-
|
|
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
|
-
|
|
653
|
-
'
|
|
654
|
-
'
|
|
655
|
-
'
|
|
656
|
-
|
|
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', {
|
package/dist/iframe/index.html
CHANGED
|
@@ -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.
|
|
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>
|
package/dist/iframe/main.js
CHANGED
|
@@ -4399,7 +4399,7 @@ var SigningManager = class extends TokenRefreshApiClient {
|
|
|
4399
4399
|
};
|
|
4400
4400
|
|
|
4401
4401
|
// src/iframe/main.ts
|
|
4402
|
-
var IFRAME_VERSION = "0.
|
|
4402
|
+
var IFRAME_VERSION = "0.2.0";
|
|
4403
4403
|
var IframeWallet = class {
|
|
4404
4404
|
constructor() {
|
|
4405
4405
|
console.log("=".repeat(60));
|