Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/connector-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
}
};
const [balances, setBalances] = useState<BalanceSummary | null>(null);
const [feeTokens, setFeeTokens] = useState<any | null>(null);

Check warning on line 130 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
const [copied, setCopied] = useState(false);

// Reset local session state every time a new rid is opened.
Expand Down Expand Up @@ -158,7 +158,7 @@
} catch {
setFeeTokens(null);
}
} catch (e: any) {

Check warning on line 161 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
setError(e?.message || String(e));
}
})();
Expand Down Expand Up @@ -189,7 +189,7 @@
// NOTE: demo-dapp-v3 does NOT include an explicit permission for the Sessions module.
// The Sessions module's internal `incrementUsageLimit` call (when present) is handled by the session system
// itself and should not require an explicit Permission{target,rules} entry.
const basePermissions: any[] = [{ target: VALUE_FORWARDER, rules: [] }];

Check warning on line 192 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

const params = new URLSearchParams(window.location.search);

Expand All @@ -198,7 +198,7 @@
const erc20To = params.get('erc20To');
const erc20Amount = params.get('erc20Amount');

const oneOffErc20Permissions: any[] =

Check warning on line 201 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
erc20 && erc20To && erc20Amount
? (() => {
const tokenAddr = erc20.toLowerCase() === 'usdc' ? USDC : erc20;
Expand All @@ -209,7 +209,7 @@
const valueLimit = BigInt(i || '0') * 10n ** BigInt(decimals) + BigInt(f || '0');

return [
Utils.PermissionBuilder.for(tokenAddr as any)

Check warning on line 212 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
.forFunction('function transfer(address to, uint256 value)')
.withUintNParam(
'value',
Expand All @@ -220,7 +220,7 @@
)
.withAddressParam(
'to',
erc20To as any,

Check warning on line 223 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
Permission.ParameterOperation.EQUAL,
false
)
Expand All @@ -243,10 +243,10 @@
// troubleshooting when the relayer selects a different USDC variant for fee payment.
const USDC_E_POLYGON = '0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174';

const openTokenPermissions: any[] = [];

Check warning on line 246 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

// Generic ERC20 limits via token-directory: tokenLimits=USDC:50,WETH:0.1
const dynamicTokenPermissions: any[] = [];

Check warning on line 249 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
if (tokenLimitsRaw) {
const parts = tokenLimitsRaw
.split(',')
Expand All @@ -260,7 +260,7 @@
const decimals = td.decimals;
const valueLimit = BigInt(Math.floor(parseFloat(amt) * 10 ** decimals));
dynamicTokenPermissions.push(
Utils.PermissionBuilder.for(td.address as any)

Check warning on line 263 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
.forFunction('function transfer(address to, uint256 value)')
.withUintNParam(
'value',
Expand All @@ -278,7 +278,7 @@
const valueLimit = BigInt(parseFloat(usdcLimit) * 1e6);
// Native USDC
openTokenPermissions.push(
Utils.PermissionBuilder.for(USDC as any)

Check warning on line 281 in packages/connector-ui/src/App.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
.forFunction('function transfer(address to, uint256 value)')
.withUintNParam(
'value',
Expand Down Expand Up @@ -383,7 +383,7 @@
chainId,
// Native spend limit (chain native token)
valueLimit: polValueLimit,
deadline: BigInt(Math.floor(Date.now() / 1000) + 60 * 60 * 24),
deadline: BigInt(Math.floor(Date.now() / 1000) + 60 * 60 * 24 * 183),
permissions: [
...basePermissions,
...contractWhitelistPermissions,
Expand Down
Loading