@halliday-sdk/payments 3.0.1 → 3.1.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/dist/paymentsApiClient/index.cjs.min.js +1 -1
- package/dist/paymentsApiClient/index.cjs.min.js.map +1 -1
- package/dist/paymentsApiClient/index.d.ts +15 -12
- package/dist/paymentsApiClient/index.esm.min.js +1 -1
- package/dist/paymentsApiClient/index.esm.min.js.map +1 -1
- package/dist/paymentsWidget/ethers/index.cjs.min.js +1 -1
- package/dist/paymentsWidget/ethers/index.cjs.min.js.map +1 -1
- package/dist/paymentsWidget/ethers/index.d.ts +5 -12
- package/dist/paymentsWidget/ethers/index.esm.min.js +1 -1
- package/dist/paymentsWidget/ethers/index.esm.min.js.map +1 -1
- package/dist/paymentsWidget/ethers/index.umd.min.js +1 -1
- package/dist/paymentsWidget/ethers/index.umd.min.js.map +1 -1
- package/dist/paymentsWidget/index.cjs.min.js +1 -1
- package/dist/paymentsWidget/index.cjs.min.js.map +1 -1
- package/dist/paymentsWidget/index.d.ts +12 -39
- package/dist/paymentsWidget/index.esm.min.js +1 -1
- package/dist/paymentsWidget/index.esm.min.js.map +1 -1
- package/dist/paymentsWidget/index.umd.min.js +1 -1
- package/dist/paymentsWidget/index.umd.min.js.map +1 -1
- package/dist/paymentsWidget/viem/index.cjs.min.js +1 -1
- package/dist/paymentsWidget/viem/index.cjs.min.js.map +1 -1
- package/dist/paymentsWidget/viem/index.d.ts +5 -12
- package/dist/paymentsWidget/viem/index.esm.min.js +1 -1
- package/dist/paymentsWidget/viem/index.esm.min.js.map +1 -1
- package/dist/paymentsWidget/viem/index.umd.min.js +1 -1
- package/dist/paymentsWidget/viem/index.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -101,9 +101,9 @@ type SignTypedData = (input: {
|
|
|
101
101
|
type SendTransaction = (transaction: TransactionRequest, chainConfig: EVMChainConfig) => Promise<TransactionReceipt>;
|
|
102
102
|
type WalletActionsType = {
|
|
103
103
|
getAddress: () => Promise<Address>;
|
|
104
|
-
signMessage
|
|
105
|
-
sendTransaction
|
|
106
|
-
signTypedData
|
|
104
|
+
signMessage: SignMessage;
|
|
105
|
+
sendTransaction: SendTransaction;
|
|
106
|
+
signTypedData: SignTypedData;
|
|
107
107
|
};
|
|
108
108
|
type StatusCallback = (input: {
|
|
109
109
|
type: string;
|
|
@@ -140,13 +140,7 @@ declare const PaymentsWidgetSDKParamsWithoutRolesAndFunctions: z.ZodObject<{
|
|
|
140
140
|
inter: "inter";
|
|
141
141
|
}>>;
|
|
142
142
|
headerTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
143
|
-
userWalletFunderDisplay: z.ZodOptional<z.ZodEnum<{
|
|
144
|
-
SHOW: "SHOW";
|
|
145
|
-
HIDE: "HIDE";
|
|
146
|
-
}>>;
|
|
147
143
|
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
148
|
-
onReady: z.ZodOptional<z.ZodAny>;
|
|
149
|
-
onError: z.ZodOptional<z.ZodAny>;
|
|
150
144
|
}, z.core.$strip>;
|
|
151
145
|
declare const PaymentsWidgetSDKParams: z.ZodObject<{
|
|
152
146
|
apiKey: z.ZodString;
|
|
@@ -179,48 +173,33 @@ declare const PaymentsWidgetSDKParams: z.ZodObject<{
|
|
|
179
173
|
inter: "inter";
|
|
180
174
|
}>>;
|
|
181
175
|
headerTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
HIDE: "HIDE";
|
|
185
|
-
}>>;
|
|
186
|
-
statusCallback: z.ZodOptional<z.ZodAny>;
|
|
187
|
-
owner: z.ZodOptional<z.ZodObject<{
|
|
188
|
-
address: z.ZodString;
|
|
189
|
-
signMessage: z.ZodOptional<z.ZodAny>;
|
|
190
|
-
sendTransaction: z.ZodOptional<z.ZodAny>;
|
|
191
|
-
signTypedData: z.ZodOptional<z.ZodAny>;
|
|
192
|
-
}, z.core.$strip>>;
|
|
176
|
+
onStatus: z.ZodOptional<z.ZodAny>;
|
|
177
|
+
onConnectUserWallet: z.ZodOptional<z.ZodAny>;
|
|
193
178
|
funder: z.ZodOptional<z.ZodObject<{
|
|
194
|
-
|
|
179
|
+
getAddress: z.ZodAny;
|
|
195
180
|
signMessage: z.ZodOptional<z.ZodAny>;
|
|
196
181
|
sendTransaction: z.ZodOptional<z.ZodAny>;
|
|
197
182
|
signTypedData: z.ZodOptional<z.ZodAny>;
|
|
198
183
|
}, z.core.$strip>>;
|
|
199
184
|
userWallet: z.ZodOptional<z.ZodObject<{
|
|
200
|
-
|
|
185
|
+
getAddress: z.ZodAny;
|
|
201
186
|
signMessage: z.ZodOptional<z.ZodAny>;
|
|
202
187
|
sendTransaction: z.ZodOptional<z.ZodAny>;
|
|
203
188
|
signTypedData: z.ZodOptional<z.ZodAny>;
|
|
204
|
-
connect: z.ZodOptional<z.ZodAny>;
|
|
205
189
|
}, z.core.$strip>>;
|
|
206
190
|
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
207
191
|
onReady: z.ZodOptional<z.ZodAny>;
|
|
208
192
|
onError: z.ZodOptional<z.ZodAny>;
|
|
209
193
|
}, z.core.$strip>;
|
|
210
194
|
type PaymentsWidgetSDKParams = z.input<typeof PaymentsWidgetSDKParamsWithoutRolesAndFunctions> & {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
funder?: Omit<WalletActionsType, "getAddress"> & {
|
|
215
|
-
address: Address;
|
|
216
|
-
};
|
|
217
|
-
userWallet: Omit<WalletActionsType, "getAddress"> & {
|
|
218
|
-
address: Address;
|
|
219
|
-
connect?: () => void;
|
|
195
|
+
funder?: Omit<WalletActionsType, "signTypedData" | "signMessage">;
|
|
196
|
+
userWallet?: Omit<WalletActionsType, "sendTransaction"> & {
|
|
197
|
+
sendTransaction?: SendTransaction;
|
|
220
198
|
};
|
|
221
|
-
|
|
199
|
+
onStatus?: StatusCallback;
|
|
222
200
|
onReady?: () => void;
|
|
223
201
|
onError?: (error: Error) => void;
|
|
202
|
+
onConnectUserWallet?: () => void;
|
|
224
203
|
};
|
|
225
204
|
declare const AppMode: z.ZodEnum<{
|
|
226
205
|
FULL: "FULL";
|
|
@@ -284,13 +263,7 @@ declare const PaymentsWidgetQueryParams: z.ZodObject<{
|
|
|
284
263
|
inter: "inter";
|
|
285
264
|
}>>;
|
|
286
265
|
headerTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
287
|
-
userWalletFunderDisplay: z.ZodOptional<z.ZodEnum<{
|
|
288
|
-
SHOW: "SHOW";
|
|
289
|
-
HIDE: "HIDE";
|
|
290
|
-
}>>;
|
|
291
266
|
destinationAddress: z.ZodOptional<z.ZodString>;
|
|
292
|
-
onReady: z.ZodOptional<z.ZodAny>;
|
|
293
|
-
onError: z.ZodOptional<z.ZodAny>;
|
|
294
267
|
}, z.core.$strip>;
|
|
295
268
|
type PaymentsWidgetQueryParams = z.infer<typeof PaymentsWidgetQueryParams>;
|
|
296
269
|
declare enum MessageType {
|