[add] Python client packaging first draft
This commit is contained in:
44
tests/ragger/eip712_input_files/00-simple_mail-data.json
Normal file
44
tests/ragger/eip712_input_files/00-simple_mail-data.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Simple Mail",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"contents": "Hello, Bob!",
|
||||
"from": {
|
||||
"name": "Cow",
|
||||
"wallets": [
|
||||
"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
|
||||
"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF"
|
||||
]
|
||||
},
|
||||
"to": {
|
||||
"name": "Bob",
|
||||
"wallets": [
|
||||
"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
|
||||
"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57",
|
||||
"0xB0B0b0b0b0b0B000000000000000000000000000"
|
||||
]
|
||||
}
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Mail": [
|
||||
{ "name": "from", "type": "Person" },
|
||||
{ "name": "to", "type": "Person" },
|
||||
{ "name": "contents", "type": "string" }
|
||||
],
|
||||
"Person": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "wallets", "type": "address[]" }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "Test JSON",
|
||||
"fields": {
|
||||
"from.name": "From",
|
||||
"to.name" : "To"
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/00-simple_mail.ini
Normal file
4
tests/ragger/eip712_input_files/00-simple_mail.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1b
|
||||
r = 23599abd6c4b631e42770c112b5955907fe91339f1ea1e102f7682262ca178b9
|
||||
s = 29fc94518588165114b4c4acb4d73e6d028dfb051d90e517b3b4746e04eb0f5f
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Addresses Array Mail",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"contents": "Hello, Bob!",
|
||||
"from": "0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
|
||||
"to": [
|
||||
"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57",
|
||||
"0xb1a22cc48f6784f629a994917cd6474923630c48"
|
||||
],
|
||||
"id": 7
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Mail": [
|
||||
{ "name": "from", "type": "address" },
|
||||
{ "name": "to", "type": "address[]" },
|
||||
{ "name": "contents", "type": "string" }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1c
|
||||
r = 3f084a471e6158bce792287500d62d40061acc1864180ed2da7a704bf3aced0f
|
||||
s = 3b799ced9e48cda152b4b9a4b7f45e3119dc7acdf16710a73800b4e336fa1b40
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Recipients Array Mail",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"contents": "Hello, Bob!",
|
||||
"from": {
|
||||
"name": "Cow",
|
||||
"wallets": [
|
||||
"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
|
||||
"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF"
|
||||
]
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"name": "Alice",
|
||||
"wallets": [
|
||||
"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
|
||||
"0xB0B0b0b0b0b0B000000000000000000000000000"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Bob",
|
||||
"wallets": [
|
||||
"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Group": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "members", "type": "Person[]" }
|
||||
],
|
||||
"Mail": [
|
||||
{ "name": "from", "type": "Person" },
|
||||
{ "name": "to", "type": "Person[]" },
|
||||
{ "name": "contents", "type": "string" }
|
||||
],
|
||||
"Person": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "wallets", "type": "address[]" }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1b
|
||||
r = 49dd2aa96d7494e0cd9111f19f87ac50194e4bbc61ea9f4bb86d674da0ae7721
|
||||
s = 7a12ddd9083b4caaabd2fb80df6de1d5d926c0e8a73bf371a45e231d409d79d6
|
||||
50
tests/ragger/eip712_input_files/03-long_string-data.json
Normal file
50
tests/ragger/eip712_input_files/03-long_string-data.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Long String Mail",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"contents": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam fermentum interdum tortor, nec elementum enim dignissim ac. Proin at leo sit amet nisl ultrices mollis quis a nunc. Aliquam lobortis a libero non lobortis. Morbi elementum eleifend ante et malesuada. Proin eget fermentum risus. Vestibulum cursus dignissim mollis. In viverra, mi ac accumsan elementum, tellus metus dictum nisi, vel tincidunt odio erat in odio. Aenean nec lorem auctor, tempor ante eget, aliquet purus. Donec fringilla felis iaculis, venenatis ligula egestas, dignissim orci. Aliquam id rhoncus ante, cursus consectetur mauris. Nunc porttitor urna urna, et tristique eros maximus vestibulum. Curabitur pretium a est non porttitor. Cras mollis efficitur sem ut porta. Proin commodo volutpat iaculis. Maecenas ut nulla mi. Aenean ultrices sollicitudin enim, non luctus magna efficitur et. Sed varius sem odio, in sodales erat porta in. Nunc blandit finibus maximus. Mauris nunc tellus, interdum non laoreet sed, aliquet non.",
|
||||
"from": {
|
||||
"name": "Cow",
|
||||
"wallets": [
|
||||
"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
|
||||
"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF"
|
||||
]
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"name": "Bob",
|
||||
"wallets": [
|
||||
"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
|
||||
"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57",
|
||||
"0xB0B0b0b0b0b0B000000000000000000000000000"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Group": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "members", "type": "Person[]" }
|
||||
],
|
||||
"Mail": [
|
||||
{ "name": "from", "type": "Person" },
|
||||
{ "name": "to", "type": "Person[]" },
|
||||
{ "name": "contents", "type": "string" }
|
||||
],
|
||||
"Person": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "wallets", "type": "address[]" }
|
||||
]
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/03-long_string.ini
Normal file
4
tests/ragger/eip712_input_files/03-long_string.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1c
|
||||
r = b23ffac2cb350fd6e7d06ec4b981fe016d33426d753c870e7e753797cc43bb1f
|
||||
s = 37948a656fa3403e21956ef10c8d3152f7ce22cc252d958c9f9249435090f426
|
||||
50
tests/ragger/eip712_input_files/04-long_bytes-data.json
Normal file
50
tests/ragger/eip712_input_files/04-long_bytes-data.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Long Bytes Mail",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"contents": "0x11223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900112233445566778899001122334455667788990011223344556677889900",
|
||||
"from": {
|
||||
"name": "Cow",
|
||||
"wallets": [
|
||||
"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
|
||||
"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF"
|
||||
]
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"name": "Bob",
|
||||
"wallets": [
|
||||
"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
|
||||
"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57",
|
||||
"0xB0B0b0b0b0b0B000000000000000000000000000"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Group": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "members", "type": "Person[]" }
|
||||
],
|
||||
"Mail": [
|
||||
{ "name": "from", "type": "Person" },
|
||||
{ "name": "to", "type": "Person[]" },
|
||||
{ "name": "contents", "type": "bytes" }
|
||||
],
|
||||
"Person": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "wallets", "type": "address[]" }
|
||||
]
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/04-long_bytes.ini
Normal file
4
tests/ragger/eip712_input_files/04-long_bytes.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1b
|
||||
r = db18ea1b9757773385138d0802fb2f8107c3e45882962b8e0c6789eccdbfab05
|
||||
s = 3d66d4dee47916fb7fec39a538ad8d5e94fbc92f99327410716180ab07591218
|
||||
45
tests/ragger/eip712_input_files/05-signed_ints-data.json
Normal file
45
tests/ragger/eip712_input_files/05-signed_ints-data.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Signed Ints test",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"neg256" : "-256",
|
||||
"pos256" : "256",
|
||||
"neg128" : "-128",
|
||||
"pos128" : "128",
|
||||
"neg64" : "-64",
|
||||
"pos64" : "64",
|
||||
"neg32" : "-32",
|
||||
"pos32" : "32",
|
||||
"neg16" : "-16",
|
||||
"pos16" : "16",
|
||||
"neg8" : "-8",
|
||||
"pos8" : "8"
|
||||
},
|
||||
"primaryType": "Test",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Test": [
|
||||
{ "name": "neg256", "type": "int256" },
|
||||
{ "name": "pos256", "type": "int256" },
|
||||
{ "name": "neg128", "type": "int128" },
|
||||
{ "name": "pos128", "type": "int128" },
|
||||
{ "name": "neg64", "type": "int64" },
|
||||
{ "name": "pos64", "type": "int64" },
|
||||
{ "name": "neg32", "type": "int32" },
|
||||
{ "name": "pos32", "type": "int32" },
|
||||
{ "name": "neg16", "type": "int16" },
|
||||
{ "name": "pos16", "type": "int16" },
|
||||
{ "name": "neg8", "type": "int8" },
|
||||
{ "name": "pos8", "type": "int8" }
|
||||
]
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/05-signed_ints.ini
Normal file
4
tests/ragger/eip712_input_files/05-signed_ints.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1c
|
||||
r = 50fb2861367daf3b5b73cac277e698b27bf7627a462fade1acb5a2ef285ba8ae
|
||||
s = 131a62515a0a5c4b35c5cb672b46f562151c45508d8efcdf78c4608bc14c5f30
|
||||
25
tests/ragger/eip712_input_files/06-boolean-data.json
Normal file
25
tests/ragger/eip712_input_files/06-boolean-data.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Boolean test",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"Bueno" : true,
|
||||
"NoBueno": false
|
||||
},
|
||||
"primaryType": "Test",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Test": [
|
||||
{ "name": "Bueno", "type": "bool" },
|
||||
{ "name": "NoBueno", "type": "bool" }
|
||||
]
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/06-boolean.ini
Normal file
4
tests/ragger/eip712_input_files/06-boolean.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1c
|
||||
r = 929681d77ed88cd1adef57185a0cd7b3a268aca5d4122b8c0acfd2ce4c0afb18
|
||||
s = 5afe8e3004c182b6b02fe7559c26f20f4133ad9b17223658ccd9061b33b021cf
|
||||
31
tests/ragger/eip712_input_files/07-fixed_bytes-data.json
Normal file
31
tests/ragger/eip712_input_files/07-fixed_bytes-data.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Fixed bytes test",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"val1": "0xae",
|
||||
"val4": "0x973bb640",
|
||||
"val8": "0xac3608fa074a22a0",
|
||||
"val16": "0x24e62129cc3ed3df6f8f3cd1e95b812a",
|
||||
"val32": "0xb5d679d10bf948280080e802ce9fde218b0f8c442c47bf4ab05657d8da04d1da"
|
||||
},
|
||||
"primaryType": "Test",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Test": [
|
||||
{ "name": "val1", "type": "bytes1" },
|
||||
{ "name": "val4", "type": "bytes4" },
|
||||
{ "name": "val8", "type": "bytes8" },
|
||||
{ "name": "val16", "type": "bytes16" },
|
||||
{ "name": "val32", "type": "bytes32" }
|
||||
]
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/07-fixed_bytes.ini
Normal file
4
tests/ragger/eip712_input_files/07-fixed_bytes.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1b
|
||||
r = e021d88afc50079b0341b01193c4687c47b85bcd6749fe69e0b87521d65a1847
|
||||
s = 5b7670d2a67c781a11164920403db0f7707161e81d88226cdbf91298390dfeda
|
||||
153
tests/ragger/eip712_input_files/08-opensea-data.json
Normal file
153
tests/ragger/eip712_input_files/08-opensea-data.json
Normal file
@@ -0,0 +1,153 @@
|
||||
{
|
||||
"domain" : {
|
||||
"chainId" : 1,
|
||||
"name" : "Wyvern Exchange Contract",
|
||||
"verifyingContract" : "0x7f268357a8c2552623316e2562d90e642bb538e5",
|
||||
"version" : "2.3"
|
||||
},
|
||||
"message" : {
|
||||
"basePrice" : "2000000000000000000",
|
||||
"calldata" : "0x96809f90000000000000000000000000112f0732e59e7600768dfc35ba744b89f2356cd80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5ebdf2657ffc1fadfd73cf0a8cde95d50b62d3df8c0000000000000700000000320000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000000",
|
||||
"exchange" : "0x7f268357a8c2552623316e2562d90e642bb538e5",
|
||||
"expirationTime" : "1646089435",
|
||||
"extra" : "0",
|
||||
"feeMethod" : 1,
|
||||
"feeRecipient" : "0x5b3256965e7c3cf26e11fcaf296dfc8807c01073",
|
||||
"howToCall" : 1,
|
||||
"listingTime" : "1645484541",
|
||||
"maker" : "0x112f0732e59e7600768dfc35ba744b89f2356cd8",
|
||||
"makerProtocolFee" : "0",
|
||||
"makerRelayerFee" : "1250",
|
||||
"nonce" : 0,
|
||||
"paymentToken" : "0x0000000000000000000000000000000000000000",
|
||||
"replacementPattern" : "0x000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
||||
"saleKind" : 0,
|
||||
"salt" : "21014297276898013168171430966355369260039074692095359200549020767078729356431",
|
||||
"side" : 1,
|
||||
"staticExtradata" : "0x",
|
||||
"staticTarget" : "0x0000000000000000000000000000000000000000",
|
||||
"taker" : "0x0000000000000000000000000000000000000000",
|
||||
"takerProtocolFee" : "0",
|
||||
"takerRelayerFee" : "0",
|
||||
"target" : "0xbaf2127b49fc93cbca6269fade0f7f31df4c88a7"
|
||||
},
|
||||
"primaryType" : "Order",
|
||||
"types" : {
|
||||
"EIP712Domain" : [
|
||||
{
|
||||
"name" : "name",
|
||||
"type" : "string"
|
||||
},
|
||||
{
|
||||
"name" : "version",
|
||||
"type" : "string"
|
||||
},
|
||||
{
|
||||
"name" : "chainId",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "verifyingContract",
|
||||
"type" : "address"
|
||||
}
|
||||
],
|
||||
"Order" : [
|
||||
{
|
||||
"name" : "exchange",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"name" : "maker",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"name" : "taker",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"name" : "makerRelayerFee",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "takerRelayerFee",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "makerProtocolFee",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "takerProtocolFee",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "feeRecipient",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"name" : "feeMethod",
|
||||
"type" : "uint8"
|
||||
},
|
||||
{
|
||||
"name" : "side",
|
||||
"type" : "uint8"
|
||||
},
|
||||
{
|
||||
"name" : "saleKind",
|
||||
"type" : "uint8"
|
||||
},
|
||||
{
|
||||
"name" : "target",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"name" : "howToCall",
|
||||
"type" : "uint8"
|
||||
},
|
||||
{
|
||||
"name" : "calldata",
|
||||
"type" : "bytes"
|
||||
},
|
||||
{
|
||||
"name" : "replacementPattern",
|
||||
"type" : "bytes"
|
||||
},
|
||||
{
|
||||
"name" : "staticTarget",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"name" : "staticExtradata",
|
||||
"type" : "bytes"
|
||||
},
|
||||
{
|
||||
"name" : "paymentToken",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"name" : "basePrice",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "extra",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "listingTime",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "expirationTime",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "salt",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "nonce",
|
||||
"type" : "uint256"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
9
tests/ragger/eip712_input_files/08-opensea-filter.json
Normal file
9
tests/ragger/eip712_input_files/08-opensea-filter.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "OpenSea",
|
||||
"fields": {
|
||||
"maker": "Maker",
|
||||
"taker": "Taker",
|
||||
"basePrice": "Base Price",
|
||||
"expirationTime": "Expiration Time"
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/08-opensea.ini
Normal file
4
tests/ragger/eip712_input_files/08-opensea.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1b
|
||||
r = 1539547ae7cf8ebcd3eabfb57cd2b1fb7775ce757c3f4a307c7425d35b7bfff7
|
||||
s = 47248cb61e554c1f90af6331d9c9e51cbb8655667514194f509abe097a032319
|
||||
110
tests/ragger/eip712_input_files/09-rarible-data.json
Normal file
110
tests/ragger/eip712_input_files/09-rarible-data.json
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"domain" : {
|
||||
"chainId" : 1,
|
||||
"name" : "Exchange",
|
||||
"verifyingContract" : "0x9757f2d2b135150bbeb65308d4a91804107cd8d6",
|
||||
"version" : "2"
|
||||
},
|
||||
"message" : {
|
||||
"data" : "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000001cf0df2a5a20cd61d68d4489eebbf85b8d39e18a00000000000000000000000000000000000000000000000000000000000000fa",
|
||||
"dataType" : "0x23d235ef",
|
||||
"end" : 0,
|
||||
"makeAsset" : {
|
||||
"assetType" : {
|
||||
"assetClass" : "0x973bb640",
|
||||
"data" : "0x000000000000000000000000495f947276749ce646f68ac8c248420045cb7b5ebdf2657ffc1fadfd73cf0a8cde95d50b62d3df8c000000000000070000000032"
|
||||
},
|
||||
"value" : "1"
|
||||
},
|
||||
"maker" : "0x112f0732e59e7600768dfc35ba744b89f2356cd8",
|
||||
"salt" : "0xdbf0f98bc1746711579dcce549a4cc4e866fb71bf2e185bfefbb7d32f325972e",
|
||||
"start" : 0,
|
||||
"takeAsset" : {
|
||||
"assetType" : {
|
||||
"assetClass" : "0xaaaebeba",
|
||||
"data" : "0x"
|
||||
},
|
||||
"value" : "2000000000000000000"
|
||||
},
|
||||
"taker" : "0x0000000000000000000000000000000000000000"
|
||||
},
|
||||
"primaryType" : "Order",
|
||||
"types" : {
|
||||
"Asset" : [
|
||||
{
|
||||
"name" : "assetType",
|
||||
"type" : "AssetType"
|
||||
},
|
||||
{
|
||||
"name" : "value",
|
||||
"type" : "uint256"
|
||||
}
|
||||
],
|
||||
"AssetType" : [
|
||||
{
|
||||
"name" : "assetClass",
|
||||
"type" : "bytes4"
|
||||
},
|
||||
{
|
||||
"name" : "data",
|
||||
"type" : "bytes"
|
||||
}
|
||||
],
|
||||
"EIP712Domain" : [
|
||||
{
|
||||
"name" : "name",
|
||||
"type" : "string"
|
||||
},
|
||||
{
|
||||
"name" : "version",
|
||||
"type" : "string"
|
||||
},
|
||||
{
|
||||
"name" : "chainId",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "verifyingContract",
|
||||
"type" : "address"
|
||||
}
|
||||
],
|
||||
"Order" : [
|
||||
{
|
||||
"name" : "maker",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"name" : "makeAsset",
|
||||
"type" : "Asset"
|
||||
},
|
||||
{
|
||||
"name" : "taker",
|
||||
"type" : "address"
|
||||
},
|
||||
{
|
||||
"name" : "takeAsset",
|
||||
"type" : "Asset"
|
||||
},
|
||||
{
|
||||
"name" : "salt",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "start",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "end",
|
||||
"type" : "uint256"
|
||||
},
|
||||
{
|
||||
"name" : "dataType",
|
||||
"type" : "bytes4"
|
||||
},
|
||||
{
|
||||
"name" : "data",
|
||||
"type" : "bytes"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/09-rarible.ini
Normal file
4
tests/ragger/eip712_input_files/09-rarible.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1c
|
||||
r = 341bca1c0dfd805d4befc21500084424dbe559c7aafd78d8fb461c0c76dfea1d
|
||||
s = 33ebb7b6fe0691961cd8b263faac20ecbbdcaef3febb57eb76614cad629080ea
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Test": [
|
||||
{ "type": "uint8[][][][]", "name": "depthy" }
|
||||
]
|
||||
},
|
||||
"primaryType": "Test",
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Depth Test",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"depthy": [
|
||||
[
|
||||
[
|
||||
[
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
[
|
||||
"3"
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
"4",
|
||||
"5",
|
||||
"6"
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1b
|
||||
r = d11a91bdf7836288818875d046452061d565cc6dc1bf3dd6216ab27ef9a2844f
|
||||
s = 4f6bda8ac4c39721aff7ae08989897ede9d573085a192d03ab0eb7735d2ef403
|
||||
78
tests/ragger/eip712_input_files/11-complex_structs-data.json
Normal file
78
tests/ragger/eip712_input_files/11-complex_structs-data.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 1,
|
||||
"name": "Complex Structs Mail",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"contents": "Hello, Bob!",
|
||||
"from": {
|
||||
"name": "Cow",
|
||||
"wallets": [
|
||||
"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826",
|
||||
"0xDeaDbeefdEAdbeefdEadbEEFdeadbeEFdEaDbeeF"
|
||||
]
|
||||
},
|
||||
"to": {
|
||||
"name": "test list",
|
||||
"members": [
|
||||
{
|
||||
"name": "Bob",
|
||||
"wallets": [
|
||||
"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB",
|
||||
"0xB0B0b0b0b0b0B000000000000000000000000000"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Alice",
|
||||
"wallets": [
|
||||
"0xB0BdaBea57B0BDABeA57b0bdABEA57b0BDabEa57"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"attach": {
|
||||
"list": [
|
||||
{
|
||||
"name": "first",
|
||||
"size": "100"
|
||||
},
|
||||
{
|
||||
"name": "second",
|
||||
"size": "3400"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Attachment": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "size", "type": "uint16" }
|
||||
],
|
||||
"Attachments": [
|
||||
{ "name": "list", "type": "Attachment[]" }
|
||||
],
|
||||
"MailingList": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "members", "type": "Person[]" }
|
||||
],
|
||||
"Mail": [
|
||||
{ "name": "from", "type": "Person" },
|
||||
{ "name": "to", "type": "MailingList" },
|
||||
{ "name": "contents", "type": "string" },
|
||||
{ "name": "attach", "type": "Attachments" }
|
||||
],
|
||||
"Person": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "wallets", "type": "address[]" }
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "Depthy Test",
|
||||
"fields": {
|
||||
"contents": "Message",
|
||||
"from.name": "Sender",
|
||||
"to.members.[].name": "Recipient",
|
||||
"attach.list.[].name": "Attachment"
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/11-complex_structs.ini
Normal file
4
tests/ragger/eip712_input_files/11-complex_structs.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1c
|
||||
r = cce2e63aaac6a5f9a74684d8fdddcbc7f3b27aa17235bfab89226821ead933b6
|
||||
s = 3f3c93977abcc3f8cc9a3dc1ecc02dbca14aca1a6ecb2fb6ca3d7c713ace1ec4
|
||||
23
tests/ragger/eip712_input_files/12-sign_in-data.json
Normal file
23
tests/ragger/eip712_input_files/12-sign_in-data.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"domain": {
|
||||
"name": "Who are You?",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"banner": "Please sign this message with your wallet",
|
||||
"curDate": 1660659773,
|
||||
"id": 38
|
||||
},
|
||||
"primaryType": "Auth",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" }
|
||||
],
|
||||
"Auth": [
|
||||
{ "name": "banner", "type": "string" },
|
||||
{ "name": "curDate", "type": "uint32" },
|
||||
{ "name": "id", "type": "uint8" }
|
||||
]
|
||||
}
|
||||
}
|
||||
7
tests/ragger/eip712_input_files/12-sign_in-filter.json
Normal file
7
tests/ragger/eip712_input_files/12-sign_in-filter.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "Ethereum sign-in",
|
||||
"fields": {
|
||||
"curDate": "Timestamp",
|
||||
"id": "Identifier"
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/12-sign_in.ini
Normal file
4
tests/ragger/eip712_input_files/12-sign_in.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1b
|
||||
r = 7be1671577753c13bfd1da8b234b6df8484daf47351c2366637fd291dd4aa4d9
|
||||
s = 1a7ffbb01dc8a64e9ee97d19b8f154e9eecbe0b1bfb9dcfa781a65e474573963
|
||||
37
tests/ragger/eip712_input_files/13-empty_arrays-data.json
Normal file
37
tests/ragger/eip712_input_files/13-empty_arrays-data.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"domain": {
|
||||
"chainId": 5,
|
||||
"name": "Empty Arrays",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC",
|
||||
"version": "1"
|
||||
},
|
||||
"message": {
|
||||
"list1": [],
|
||||
"list2": [],
|
||||
"list3": [
|
||||
[
|
||||
"1",
|
||||
"2"
|
||||
],
|
||||
[],
|
||||
[
|
||||
"3",
|
||||
"4"
|
||||
]
|
||||
]
|
||||
},
|
||||
"primaryType": "Struct",
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{ "name": "name", "type": "string" },
|
||||
{ "name": "version", "type": "string" },
|
||||
{ "name": "chainId", "type": "uint256" },
|
||||
{ "name": "verifyingContract", "type": "address" }
|
||||
],
|
||||
"Struct": [
|
||||
{ "name": "list1", "type": "EIP712Domain[]" },
|
||||
{ "name": "list2", "type": "uint8[]" },
|
||||
{ "name": "list3", "type": "string[][]" }
|
||||
]
|
||||
}
|
||||
}
|
||||
4
tests/ragger/eip712_input_files/13-empty_arrays.ini
Normal file
4
tests/ragger/eip712_input_files/13-empty_arrays.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
[signature]
|
||||
v = 1b
|
||||
r = 5d0635a868602e29366da6328f8fadf2d6a9b4e69ee7a65928e85ca56fb1b515
|
||||
s = 257364d6faaf5687edf90c3984f4240b0ce7b2dee55aa1f8f39c32d0d4d8c93d
|
||||
Reference in New Issue
Block a user