@@ -65,93 +65,99 @@ describe('all', () => {
6565 createPaymentManagerFlowTest ( ctx , ( ) => ctx . aliceEoaAuthContext ) ( ) ) ;
6666 it ( 'paymentDelegationFlow' , ( ) =>
6767 createPaymentDelegationFlowTest ( ctx , ( ) => ctx . aliceEoaAuthContext ) ( ) ) ;
68- } ) ;
6968
70- describe ( 'integrations' , ( ) => {
71- describe ( 'pkp viem account' , ( ) => {
72- it ( 'sign message' , ( ) =>
73- createViemSignMessageTest ( ctx , ( ) => ctx . aliceEoaAuthContext ) ( ) ) ;
74- it ( 'sign transaction' , ( ) =>
75- createViemSignTransactionTest ( ctx , ( ) => ctx . aliceEoaAuthContext ) ( ) ) ;
76- it ( 'sign typed data' , ( ) =>
77- createViemSignTypedDataTest ( ctx , ( ) => ctx . aliceEoaAuthContext ) ( ) ) ;
69+ describe ( 'integrations' , ( ) => {
70+ describe ( 'pkp viem account' , ( ) => {
71+ it ( 'sign message' , ( ) =>
72+ createViemSignMessageTest ( ctx , ( ) => ctx . aliceEoaAuthContext ) ( ) ) ;
73+ it ( 'sign transaction' , ( ) =>
74+ createViemSignTransactionTest (
75+ ctx ,
76+ ( ) => ctx . aliceEoaAuthContext
77+ ) ( ) ) ;
78+ it ( 'sign typed data' , ( ) =>
79+ createViemSignTypedDataTest ( ctx , ( ) => ctx . aliceEoaAuthContext ) ( ) ) ;
80+ } ) ;
7881 } ) ;
7982 } ) ;
80- } ) ;
8183
82- describe ( 'PKP Auth' , ( ) => {
83- console . log ( '🔐 Testing using Programmable Key Pair authentication' ) ;
84+ describe ( 'PKP Auth' , ( ) => {
85+ console . log ( '🔐 Testing using Programmable Key Pair authentication' ) ;
8486
85- describe ( 'endpoints' , ( ) => {
86- it ( 'pkpSign' , ( ) =>
87- createPkpSignTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
88- it ( 'executeJs' , ( ) =>
89- createExecuteJsTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
90- it ( 'viewPKPsByAddress' , ( ) =>
91- createViewPKPsByAddressTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
92- it ( 'viewPKPsByAuthData' , ( ) =>
93- createViewPKPsByAuthDataTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
94- it ( 'pkpEncryptDecrypt' , ( ) =>
95- createPkpEncryptDecryptTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
96- it ( 'encryptDecryptFlow' , ( ) =>
97- createEncryptDecryptFlowTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
98- it ( 'pkpPermissionsManagerFlow' , ( ) =>
99- createPkpPermissionsManagerFlowTest (
100- ctx ,
101- ( ) => ctx . alicePkpAuthContext
102- ) ( ) ) ;
103- } ) ;
87+ describe ( 'endpoints' , ( ) => {
88+ it ( 'pkpSign' , ( ) =>
89+ createPkpSignTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
90+ it ( 'executeJs' , ( ) =>
91+ createExecuteJsTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
92+ it ( 'viewPKPsByAddress' , ( ) =>
93+ createViewPKPsByAddressTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
94+ it ( 'viewPKPsByAuthData' , ( ) =>
95+ createViewPKPsByAuthDataTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
96+ it ( 'pkpEncryptDecrypt' , ( ) =>
97+ createPkpEncryptDecryptTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
98+ it ( 'encryptDecryptFlow' , ( ) =>
99+ createEncryptDecryptFlowTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
100+ it ( 'pkpPermissionsManagerFlow' , ( ) =>
101+ createPkpPermissionsManagerFlowTest (
102+ ctx ,
103+ ( ) => ctx . alicePkpAuthContext
104+ ) ( ) ) ;
105+ } ) ;
104106
105- describe ( 'integrations' , ( ) => {
106- describe ( 'pkp viem account' , ( ) => {
107- it ( 'sign message' , ( ) =>
108- createViemSignMessageTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
109- it ( 'sign transaction' , ( ) =>
110- createViemSignTransactionTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
111- it ( 'sign typed data' , ( ) =>
112- createViemSignTypedDataTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
107+ describe ( 'integrations' , ( ) => {
108+ describe ( 'pkp viem account' , ( ) => {
109+ it ( 'sign message' , ( ) =>
110+ createViemSignMessageTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
111+ it ( 'sign transaction' , ( ) =>
112+ createViemSignTransactionTest (
113+ ctx ,
114+ ( ) => ctx . alicePkpAuthContext
115+ ) ( ) ) ;
116+ it ( 'sign typed data' , ( ) =>
117+ createViemSignTypedDataTest ( ctx , ( ) => ctx . alicePkpAuthContext ) ( ) ) ;
118+ } ) ;
113119 } ) ;
114120 } ) ;
115- } ) ;
116121
117- describe ( 'Custom Auth' , ( ) => {
118- console . log ( '🔐 Testing using Custom authentication method' ) ;
122+ describe ( 'Custom Auth' , ( ) => {
123+ console . log ( '🔐 Testing using Custom authentication method' ) ;
119124
120- describe ( 'endpoints' , ( ) => {
121- it ( 'pkpSign' , ( ) =>
122- createPkpSignTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
123- it ( 'executeJs' , ( ) =>
124- createExecuteJsTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
125- it ( 'viewPKPsByAddress' , ( ) =>
126- createViewPKPsByAddressTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
127- it ( 'viewPKPsByAuthData' , ( ) =>
128- createViewPKPsByAuthDataTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
129- it ( 'pkpEncryptDecrypt' , ( ) =>
130- createPkpEncryptDecryptTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
131- it ( 'encryptDecryptFlow' , ( ) =>
132- createEncryptDecryptFlowTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
133- it ( 'pkpPermissionsManagerFlow' , ( ) =>
134- createPkpPermissionsManagerFlowTest (
135- ctx ,
136- ( ) => aliceCustomAuthContext
137- ) ( ) ) ;
138- } ) ;
125+ describe ( 'endpoints' , ( ) => {
126+ it ( 'pkpSign' , ( ) =>
127+ createPkpSignTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
128+ it ( 'executeJs' , ( ) =>
129+ createExecuteJsTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
130+ it ( 'viewPKPsByAddress' , ( ) =>
131+ createViewPKPsByAddressTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
132+ it ( 'viewPKPsByAuthData' , ( ) =>
133+ createViewPKPsByAuthDataTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
134+ it ( 'pkpEncryptDecrypt' , ( ) =>
135+ createPkpEncryptDecryptTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
136+ it ( 'encryptDecryptFlow' , ( ) =>
137+ createEncryptDecryptFlowTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
138+ it ( 'pkpPermissionsManagerFlow' , ( ) =>
139+ createPkpPermissionsManagerFlowTest (
140+ ctx ,
141+ ( ) => aliceCustomAuthContext
142+ ) ( ) ) ;
143+ } ) ;
139144
140- describe ( 'integrations' , ( ) => {
141- describe ( 'pkp viem account' , ( ) => {
142- it ( 'sign message' , ( ) =>
143- createViemSignMessageTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
144- it ( 'sign transaction' , ( ) =>
145- createViemSignTransactionTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
146- it ( 'sign typed data' , ( ) =>
147- createViemSignTypedDataTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
145+ describe ( 'integrations' , ( ) => {
146+ describe ( 'pkp viem account' , ( ) => {
147+ it ( 'sign message' , ( ) =>
148+ createViemSignMessageTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
149+ it ( 'sign transaction' , ( ) =>
150+ createViemSignTransactionTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
151+ it ( 'sign typed data' , ( ) =>
152+ createViemSignTypedDataTest ( ctx , ( ) => aliceCustomAuthContext ) ( ) ) ;
153+ } ) ;
148154 } ) ;
149155 } ) ;
150- } ) ;
151156
152- describe ( 'EOA Native' , ( ) => {
153- console . log ( '🔐 Testing EOA native authentication and PKP minting' ) ;
157+ describe ( 'EOA Native' , ( ) => {
158+ console . log ( '🔐 Testing EOA native authentication and PKP minting' ) ;
154159
155- it ( 'eoaNativeAuthFlow' , ( ) => createEoaNativeAuthFlowTest ( ctx ) ( ) ) ;
160+ it ( 'eoaNativeAuthFlow' , ( ) => createEoaNativeAuthFlowTest ( ctx ) ( ) ) ;
161+ } ) ;
156162 } ) ;
157163} ) ;
0 commit comments