Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add permit support for single transaction join #69

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
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
120 changes: 84 additions & 36 deletions abi/Constants.sol/Constants.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,28 @@
},
"ast": {
"absolutePath": "src/contracts/Constants.sol",
"id": 23508,
"id": 23630,
"exportedSymbols": {
"MAX_NUMBER_OF_PURCHASED_ITEMS": [
23507
23626
],
"MAX_UNRESPONSIVE_TIME": [
23629
],
"SAFETY_MAX_REFERRAL_RATE": [
23504
23623
],
"SAFETY_TIME_RANGE": [
23501
23620
]
},
"nodeType": "SourceUnit",
"src": "36:452:26",
"src": "36:783:28",
"nodes": [
{
"id": 23498,
"id": 23617,
"nodeType": "PragmaDirective",
"src": "36:24:26",
"src": "36:24:28",
"nodes": [],
"literals": [
"solidity",
Expand All @@ -38,86 +41,86 @@
]
},
{
"id": 23501,
"id": 23620,
"nodeType": "VariableDeclaration",
"src": "211:46:26",
"src": "297:47:28",
"nodes": [],
"constant": true,
"mutability": "constant",
"name": "SAFETY_TIME_RANGE",
"nameLocation": "228:17:26",
"scope": 23508,
"nameLocation": "314:17:28",
"scope": 23630,
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 23499,
"id": 23618,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "211:7:26",
"src": "297:7:28",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"hexValue": "31",
"id": 23500,
"hexValue": "3130",
"id": 23619,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "248:9:26",
"src": "334:10:28",
"subdenomination": "minutes",
"typeDescriptions": {
"typeIdentifier": "t_rational_60_by_1",
"typeString": "int_const 60"
"typeIdentifier": "t_rational_600_by_1",
"typeString": "int_const 600"
},
"value": "1"
"value": "10"
},
"visibility": "internal"
},
{
"id": 23504,
"id": 23623,
"nodeType": "VariableDeclaration",
"src": "319:46:26",
"src": "406:46:28",
"nodes": [],
"constant": true,
"mutability": "constant",
"name": "SAFETY_MAX_REFERRAL_RATE",
"nameLocation": "336:24:26",
"scope": 23508,
"nameLocation": "423:24:28",
"scope": 23630,
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 23502,
"id": 23621,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "319:7:26",
"src": "406:7:28",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"hexValue": "3530",
"id": 23503,
"id": 23622,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "363:2:26",
"src": "450:2:28",
"typeDescriptions": {
"typeIdentifier": "t_rational_50_by_1",
"typeString": "int_const 50"
Expand All @@ -127,51 +130,96 @@
"visibility": "internal"
},
{
"id": 23507,
"id": 23626,
"nodeType": "VariableDeclaration",
"src": "434:52:26",
"src": "521:52:28",
"nodes": [],
"constant": true,
"mutability": "constant",
"name": "MAX_NUMBER_OF_PURCHASED_ITEMS",
"nameLocation": "451:29:26",
"scope": 23508,
"nameLocation": "538:29:28",
"scope": 23630,
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 23505,
"id": 23624,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "434:7:26",
"src": "521:7:28",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"hexValue": "323030",
"id": 23506,
"id": 23625,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "483:3:26",
"src": "570:3:28",
"typeDescriptions": {
"typeIdentifier": "t_rational_200_by_1",
"typeString": "int_const 200"
},
"value": "200"
},
"visibility": "internal"
},
{
"id": 23629,
"nodeType": "VariableDeclaration",
"src": "770:48:28",
"nodes": [],
"constant": true,
"mutability": "constant",
"name": "MAX_UNRESPONSIVE_TIME",
"nameLocation": "787:21:28",
"scope": 23630,
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 23627,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "770:7:28",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": {
"hexValue": "3330",
"id": 23628,
"isConstant": false,
"isLValue": false,
"isPure": true,
"kind": "number",
"lValueRequested": false,
"nodeType": "Literal",
"src": "811:7:28",
"subdenomination": "days",
"typeDescriptions": {
"typeIdentifier": "t_rational_2592000_by_1",
"typeString": "int_const 2592000"
},
"value": "30"
},
"visibility": "internal"
}
],
"license": "GPL-3.0"
},
"id": 26
"id": 28
}
Loading