-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathEIP712Types.sol
More file actions
101 lines (90 loc) · 1.78 KB
/
EIP712Types.sol
File metadata and controls
101 lines (90 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// SPDX-License-Identifier: UNLICENSED
// Copyright (c) 2025 Aave Labs
pragma solidity ^0.8.20;
/// @title EIP712Types library
/// @author Aave Labs
/// @notice Defines type structs used in EIP712-typed signatures.
library EIP712Types {
struct SetUserPositionManager {
address positionManager;
address user;
bool approve;
uint256 nonce;
uint256 deadline;
}
struct Permit {
address owner;
address spender;
uint256 value;
uint256 nonce;
uint256 deadline;
}
struct Supply {
address spoke;
uint256 reserveId;
uint256 amount;
address onBehalfOf;
uint256 nonce;
uint256 deadline;
}
struct Withdraw {
address spoke;
uint256 reserveId;
uint256 amount;
address onBehalfOf;
uint256 nonce;
uint256 deadline;
}
struct Borrow {
address spoke;
uint256 reserveId;
uint256 amount;
address onBehalfOf;
uint256 nonce;
uint256 deadline;
}
struct Repay {
address spoke;
uint256 reserveId;
uint256 amount;
address onBehalfOf;
uint256 nonce;
uint256 deadline;
}
struct SetUsingAsCollateral {
address spoke;
uint256 reserveId;
bool useAsCollateral;
address onBehalfOf;
uint256 nonce;
uint256 deadline;
}
struct UpdateUserRiskPremium {
address spoke;
address user;
uint256 nonce;
uint256 deadline;
}
struct UpdateUserDynamicConfig {
address spoke;
address user;
uint256 nonce;
uint256 deadline;
}
struct WithdrawPermit {
address owner;
address spender;
uint256 reserveId;
uint256 amount;
uint256 nonce;
uint256 deadline;
}
struct CreditDelegation {
address owner;
address spender;
uint256 reserveId;
uint256 amount;
uint256 nonce;
uint256 deadline;
}
}