@keelcodes/sdk 2.7.1 → 2.7.2
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/wallet/types.d.ts +19 -0
- package/package.json +1 -1
package/dist/wallet/types.d.ts
CHANGED
|
@@ -102,6 +102,12 @@ export interface PaymasterInfo {
|
|
|
102
102
|
ttlSec: number;
|
|
103
103
|
maxTtlSec: number;
|
|
104
104
|
perSenderPerDay: number;
|
|
105
|
+
/** 每链每日签发总额(wei),跨 sender 共享。 */
|
|
106
|
+
dailyBudgetWeiByChain?: Record<string, string>;
|
|
107
|
+
/** voucher 允许的 preVerificationGas + verificationGasLimit 上限。 */
|
|
108
|
+
maxPreVerifyPlusVerifyGas?: string;
|
|
109
|
+
/** maxFeePerGas ≤ 链上 gasPrice × 该倍数。 */
|
|
110
|
+
gasPriceMultiplier?: string;
|
|
105
111
|
/** 固定意图:只赞助 `approve(paymaster, amount)`。 */
|
|
106
112
|
intent: string;
|
|
107
113
|
};
|
|
@@ -121,6 +127,19 @@ export interface PaymasterVoucherParams {
|
|
|
121
127
|
/** Unix 秒;缺省按服务端 TTL。 */
|
|
122
128
|
validUntil?: number;
|
|
123
129
|
chainId?: number;
|
|
130
|
+
/**
|
|
131
|
+
* 待赞助 UserOp 的 gas 字段(必填)。服务端据此校验
|
|
132
|
+
* preVerificationGas + verificationGasLimit 上限与 maxFeePerGas ≤ gasPrice×N。
|
|
133
|
+
*/
|
|
134
|
+
gas: PaymasterVoucherGas;
|
|
135
|
+
}
|
|
136
|
+
export interface PaymasterVoucherGas {
|
|
137
|
+
preVerificationGas: string | bigint;
|
|
138
|
+
verificationGasLimit: string | bigint;
|
|
139
|
+
callGasLimit: string | bigint;
|
|
140
|
+
paymasterVerificationGasLimit: string | bigint;
|
|
141
|
+
paymasterPostOpGasLimit: string | bigint;
|
|
142
|
+
maxFeePerGas: string | bigint;
|
|
124
143
|
}
|
|
125
144
|
export interface PaymasterVoucher {
|
|
126
145
|
chainId: number;
|
package/package.json
CHANGED