@megaeth-labs/wallet-sdk 0.1.20 → 0.1.22
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 +0 -4
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -268,10 +268,6 @@ import { parseEther } from 'viem';
|
|
|
268
268
|
const result = await mega.grantPermissions({
|
|
269
269
|
permissions: {
|
|
270
270
|
expiry: 86400, // Expiry in seconds (24 hours)
|
|
271
|
-
feeToken: {
|
|
272
|
-
limit: parseEther('0.01').toString(), // Max fee allowed per transaction
|
|
273
|
-
symbol: 'ETH', // Optional: Fee token symbol
|
|
274
|
-
},
|
|
275
271
|
permissions: {
|
|
276
272
|
// Specific contract calls allowed
|
|
277
273
|
calls: [
|
package/dist/index.d.cts
CHANGED
|
@@ -127,7 +127,8 @@ interface RemoteAPI {
|
|
|
127
127
|
interface Permission {
|
|
128
128
|
id?: string;
|
|
129
129
|
expiry: number;
|
|
130
|
-
|
|
130
|
+
/** @deprecated No longer used — the gas token is taken from the granted session permissions */
|
|
131
|
+
feeToken?: {
|
|
131
132
|
limit: string;
|
|
132
133
|
symbol?: string;
|
|
133
134
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -127,7 +127,8 @@ interface RemoteAPI {
|
|
|
127
127
|
interface Permission {
|
|
128
128
|
id?: string;
|
|
129
129
|
expiry: number;
|
|
130
|
-
|
|
130
|
+
/** @deprecated No longer used — the gas token is taken from the granted session permissions */
|
|
131
|
+
feeToken?: {
|
|
131
132
|
limit: string;
|
|
132
133
|
symbol?: string;
|
|
133
134
|
};
|