Skip to content

Instantly share code, notes, and snippets.

@Luke-Rogerson
Created January 22, 2024 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Luke-Rogerson/2b5474374638b59696b75355d565df7f to your computer and use it in GitHub Desktop.
Save Luke-Rogerson/2b5474374638b59696b75355d565df7f to your computer and use it in GitHub Desktop.
eip712.json
{
"domain_separator":{
"chainId":"137",
"name":"RePermit",
"verifyingContract":"0x4d415B58EA43988FfF7f50A3475718b0858fE0f1"
},
"message_types":{
"OrderInfo":[
{
"name":"reactor",
"type":"address"
},
{
"name":"swapper",
"type":"address"
},
{
"name":"nonce",
"type":"uint256"
},
{
"name":"deadline",
"type":"uint256"
},
{
"name":"additionalValidationContract",
"type":"address"
},
{
"name":"additionalValidationData",
"type":"bytes"
}
],
"PartialInput":[
{
"name":"token",
"type":"address"
},
{
"name":"amount",
"type":"uint256"
}
],
"PartialOrder":[
{
"name":"info",
"type":"OrderInfo"
},
{
"name":"exclusiveFiller",
"type":"address"
},
{
"name":"exclusivityOverrideBps",
"type":"uint256"
},
{
"name":"input",
"type":"PartialInput"
},
{
"name":"outputs",
"type":"PartialOutput[]"
}
],
"PartialOutput":[
{
"name":"token",
"type":"address"
},
{
"name":"amount",
"type":"uint256"
},
{
"name":"recipient",
"type":"address"
}
],
"RePermitWitnessTransferFrom":[
{
"name":"permitted",
"type":"TokenPermissions"
},
{
"name":"spender",
"type":"address"
},
{
"name":"nonce",
"type":"uint256"
},
{
"name":"deadline",
"type":"uint256"
},
{
"name":"witness",
"type":"PartialOrder"
}
],
"TokenPermissions":[
{
"name":"token",
"type":"address"
},
{
"name":"amount",
"type":"uint256"
}
]
},
"message_data":{
"deadline":"1709071200",
"nonce":"1000",
"permitted":{
"amount":"40000000000000000000",
"token":"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"
},
"spender":"0x0B94c1A3E11F8aaA25D27cAf8DD05818e6f2Ad97",
"witness":{
"exclusiveFiller":"0x1a08D64Fb4a7D0b6DA5606A1e4619c147C3fB95e",
"exclusivityOverrideBps":"0",
"info":{
"additionalValidationContract":"0x0000000000000000000000000000000000000000",
"additionalValidationData":"0x",
"deadline":"1709071200",
"nonce":"1000",
"reactor":"0x0B94c1A3E11F8aaA25D27cAf8DD05818e6f2Ad97",
"swapper":"0x8fd379246834eac74B8419FfdA202CF8051F7A03"
},
"input":{
"amount":"40000000000000000000",
"token":"0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270"
},
"outputs":[
{
"amount":"34600000",
"recipient":"0x8fd379246834eac74B8419FfdA202CF8051F7A03",
"token":"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment