Skip to content

Commit

Permalink
feat(tangle-dapp): Use TX relayer for EVM accounts with no balance (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yurixander authored Jan 31, 2025
1 parent d6813c4 commit 5ef6c42
Show file tree
Hide file tree
Showing 138 changed files with 1,334 additions and 4,783 deletions.
37 changes: 37 additions & 0 deletions apps/tangle-dapp/src/abi/callPermit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { AbiFunction } from 'viem';

const CALL_PERMIT_PRECOMPILE_ABI = [
{
inputs: [
{ internalType: 'address', name: 'from', type: 'address' },
{ internalType: 'address', name: 'to', type: 'address' },
{ internalType: 'uint256', name: 'value', type: 'uint256' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
{ internalType: 'uint64', name: 'gaslimit', type: 'uint64' },
{ internalType: 'uint256', name: 'deadline', type: 'uint256' },
{ internalType: 'uint8', name: 'v', type: 'uint8' },
{ internalType: 'bytes32', name: 'r', type: 'bytes32' },
{ internalType: 'bytes32', name: 's', type: 'bytes32' },
],
name: 'dispatch',
outputs: [{ internalType: 'bytes', name: 'output', type: 'bytes' }],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: 'owner', type: 'address' }],
name: 'nonces',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'DOMAIN_SEPARATOR',
outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
stateMutability: 'view',
type: 'function',
},
] as const satisfies AbiFunction[];

export default CALL_PERMIT_PRECOMPILE_ABI;
Loading

0 comments on commit 5ef6c42

Please sign in to comment.