Skip to content

Commit 2ba6041

Browse files
committed
exports
1 parent 283c799 commit 2ba6041

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//ACCOUNT
2+
export {
3+
type CreateSessionKeyOptions,
4+
createSessionKey,
5+
isCreateSessionKeySupported,
6+
} from "../../extensions/erc7702/account/createSessionKey.js";

packages/thirdweb/src/extensions/erc7702/account/sessionkey.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import { inAppWallet } from "src/wallets/in-app/web/in-app.js";
44
import type { Account } from "src/wallets/interfaces/wallet.js";
55
import { beforeAll, describe, expect, it } from "vitest";
66
import { TEST_CLIENT } from "../../../../test/src/test-clients.js";
7-
import {
8-
TEST_ACCOUNT_A,
9-
TEST_ACCOUNT_B,
10-
} from "../../../../test/src/test-wallets.js";
7+
import { TEST_ACCOUNT_A } from "../../../../test/src/test-wallets.js";
118
import { ZERO_ADDRESS } from "../../../constants/addresses.js";
129
import {
1310
getContract,

packages/thirdweb/src/extensions/erc7702/account/types.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
──────────────────────────────── */
44

55
/* ---------- UsageLimit ---------- */
6-
export interface UsageLimitInput {
6+
interface UsageLimitInput {
77
limitType: number;
88
limit: bigint;
99
period: bigint;
1010
}
1111

1212
/* ---------- Constraint ---------- */
13-
export interface ConstraintInput {
13+
interface ConstraintInput {
1414
condition: number;
1515
index: bigint;
1616
refValue: `0x${string}`;
@@ -33,16 +33,6 @@ export interface TransferSpecInput {
3333
valueLimit?: UsageLimitInput;
3434
}
3535

36-
/* ---------- SessionSpec ---------- */
37-
export interface SessionSpecInput {
38-
signer: `0x${string}`;
39-
isWildcard?: boolean;
40-
expiresAt?: bigint;
41-
callPolicies?: CallSpecInput[];
42-
transferPolicies?: TransferSpecInput[];
43-
uid: `0x${string}`;
44-
}
45-
4636
/* ────────────────────────────────
4737
EIP-712 structs
4838
──────────────────────────────── */

0 commit comments

Comments
 (0)