-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-2886 test cases for all branches of validation logic
- Loading branch information
1 parent
2b1b52c
commit 036b4f5
Showing
11 changed files
with
1,744 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
242 changes: 242 additions & 0 deletions
242
MultisigIntegrationTests/TransactionValidationTestCase_AllSignatureTypes_v1_0_0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,242 @@ | ||
{ | ||
"testCaseName": "Valid transaction, Ethereum, 2/4 owners, 1/2 confirmations", | ||
"chain": { | ||
"chainId": "1", | ||
"chainName": "Ethereum", | ||
"description": "The main Ethereum network", | ||
"l2": false, | ||
"nativeCurrency": { | ||
"name": "Ether", | ||
"symbol": "ETH", | ||
"decimals": 18, | ||
"logoUri": "https://safe-transaction-assets.safe.global/chains/1/currency_logo.png" | ||
}, | ||
"transactionService": "https://safe-transaction-mainnet.safe.global", | ||
"blockExplorerUriTemplate": { | ||
"address": "https://etherscan.io/address/{{address}}", | ||
"txHash": "https://etherscan.io/tx/{{txHash}}", | ||
"api": "https://api.etherscan.io/api?module={{module}}&action={{action}}&address={{address}}&apiKey={{apiKey}}" | ||
}, | ||
"disabledWallets": [ | ||
"NONE", | ||
"opera", | ||
"operaTouch", | ||
"safeMobile", | ||
"socialSigner", | ||
"tally", | ||
"trust", | ||
"walletConnect" | ||
], | ||
"ensRegistryAddress": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e", | ||
"features": [ | ||
"CONTRACT_INTERACTION", | ||
"DEFAULT_TOKENLIST", | ||
"DOMAIN_LOOKUP", | ||
"EIP1271", | ||
"EIP1559", | ||
"ERC721", | ||
"MOONPAY_MOBILE", | ||
"NATIVE_WALLETCONNECT", | ||
"PUSH_NOTIFICATIONS", | ||
"RISK_MITIGATION", | ||
"SAFE_APPS", | ||
"SAFE_TX_GAS_OPTIONAL", | ||
"SOCIAL_LOGIN", | ||
"SPENDING_LIMIT", | ||
"TX_SIMULATION" | ||
], | ||
"gasPrice": [ | ||
{ | ||
"type": "oracle", | ||
"uri": "https://api.etherscan.io/api?module=gastracker&action=gasoracle&apikey=JNFAU892RF9TJWBU3EV7DJCPIWZY8KEMY1", | ||
"gasParameter": "FastGasPrice", | ||
"gweiFactor": "1000000000.000000000" | ||
} | ||
], | ||
"publicRpcUri": { | ||
"authentication": "NO_AUTHENTICATION", | ||
"value": "https://cloudflare-eth.com" | ||
}, | ||
"rpcUri": { | ||
"authentication": "API_KEY_PATH", | ||
"value": "https://mainnet.infura.io/v3/" | ||
}, | ||
"safeAppsRpcUri": { | ||
"authentication": "API_KEY_PATH", | ||
"value": "https://mainnet.infura.io/v3/" | ||
}, | ||
"shortName": "eth", | ||
"theme": { | ||
"textColor": "#001428", | ||
"backgroundColor": "#DDDDDD" | ||
} | ||
}, | ||
"safe": { | ||
"address": { | ||
"value": "0xfF501B324DC6d78dC9F983f140B9211c3EdB4dc7", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
"chainId": "1", | ||
"nonce": 20, | ||
"threshold": 2, | ||
"owners": [ | ||
{ | ||
"value": "0x9F87C1aCaF3Afc6a5557c58284D9F8609470b571", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
{ | ||
"value": "0x8712128BEA09C9687Df05A5D692F3750F8086C81", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
{ | ||
"value": "0x80F59C1D46EFC1Bb18F0AaEc132b77266f00Be9a", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
{ | ||
"value": "0x9F7dfAb2222A473284205cdDF08a677726d786A0", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
{ | ||
"value": "0x728cafe9fB8CC2218Fb12a9A2D9335193caa07e0", | ||
"name": null, | ||
"logoUri": null | ||
} | ||
], | ||
"implementation": { | ||
"value": "0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F", | ||
"name": "Safe 1.0.0", | ||
"logoUri": "https://safe-transaction-assets.safe.global/contracts/logos/0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F.png" | ||
}, | ||
"implementationVersionState": "OUTDATED", | ||
"collectiblesTag": "1663062476", | ||
"txQueuedTag": "1670938242", | ||
"txHistoryTag": "1697840747", | ||
"messagesTag": "1700560947", | ||
"modules": [ | ||
{ | ||
"value": "0xCFbFaC74C26F8647cBDb8c5caf80BB5b32E43134", | ||
"name": null, | ||
"logoUri": null | ||
} | ||
], | ||
"fallbackHandler": { | ||
"value": "0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44", | ||
"name": "Safe: DefaultCallbackHandler 1.0.0", | ||
"logoUri": "https://safe-transaction-assets.safe.global/contracts/logos/0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44.png" | ||
}, | ||
"guard": null, | ||
"version": "1.0.0" | ||
}, | ||
"tx": { | ||
"safeAddress": "0xfF501B324DC6d78dC9F983f140B9211c3EdB4dc7", | ||
"txId": "multisig_0xfF501B324DC6d78dC9F983f140B9211c3EdB4dc7_0xaed54190962dce2c448391841fcd7730eb23ac18c5fa2a7896ac9074bf38f127", | ||
"executedAt": null, | ||
"txStatus": "AWAITING_CONFIRMATIONS", | ||
"txInfo": { | ||
"type": "Custom", | ||
"humanDescription": null, | ||
"richDecodedInfo": null, | ||
"to": { | ||
"value": "0xfF501B324DC6d78dC9F983f140B9211c3EdB4dc7", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
"dataSize": "0", | ||
"value": "0", | ||
"methodName": null, | ||
"actionCount": null, | ||
"isCancellation": false | ||
}, | ||
"txData": { | ||
"hexData": null, | ||
"dataDecoded": null, | ||
"to": { | ||
"value": "0xfF501B324DC6d78dC9F983f140B9211c3EdB4dc7", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
"value": "0", | ||
"operation": 0, | ||
"trustedDelegateCallTarget": null, | ||
"addressInfoIndex": null | ||
}, | ||
"txHash": null, | ||
"detailedExecutionInfo": { | ||
"type": "MULTISIG", | ||
"submittedAt": 1614014118782, | ||
"nonce": 20, | ||
"safeTxGas": "43808", | ||
"baseGas": "0", | ||
"gasPrice": "0", | ||
"gasToken": "0x0000000000000000000000000000000000000000", | ||
"refundReceiver": { | ||
"value": "0x0000000000000000000000000000000000000000", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
"safeTxHash": "0xaed54190962dce2c448391841fcd7730eb23ac18c5fa2a7896ac9074bf38f127", | ||
"executor": null, | ||
"signers": [ | ||
{ | ||
"value": "0x9F87C1aCaF3Afc6a5557c58284D9F8609470b571", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
{ | ||
"value": "0x8712128BEA09C9687Df05A5D692F3750F8086C81", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
{ | ||
"value": "0x80F59C1D46EFC1Bb18F0AaEc132b77266f00Be9a", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
{ | ||
"value": "0x9F7dfAb2222A473284205cdDF08a677726d786A0", | ||
"name": null, | ||
"logoUri": null | ||
} | ||
], | ||
"confirmationsRequired": 2, | ||
"confirmations": [ | ||
{ | ||
"signer": { | ||
"value": "0x8712128BEA09C9687Df05A5D692F3750F8086C81", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
"signature": "0x7dec7a1c46320f9bc4b62fe22e6ad34fe1f54b08c39637d064d104def4f3c812591ad2da837f5d9049d74e038811f76fcb33ac739e7ef866f696abdc9e55e1f51b", | ||
"submittedAt": 1614014118798 | ||
}, | ||
{ | ||
"signer": { | ||
"value": "0x9F87C1aCaF3Afc6a5557c58284D9F8609470b571", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
"signature": "0x0000000000000000000000009f87c1acaf3afc6a5557c58284d9f8609470b571abababababababababababababababababababababababababababababababab00", | ||
"submittedAt": 1614014118797 | ||
}, | ||
{ | ||
"signer": { | ||
"value": "0x9F7dfAb2222A473284205cdDF08a677726d786A0", | ||
"name": null, | ||
"logoUri": null | ||
}, | ||
"signature": "0x0000000000000000000000009f7dfab2222a473284205cddf08a677726d786a0abababababababababababababababababababababababababababababababab01", | ||
"submittedAt": 1614014118797 | ||
}, | ||
], | ||
"rejectors": [], | ||
"gasTokenInfo": null, | ||
"trusted": true | ||
}, | ||
"safeAppInfo": null | ||
} | ||
} |
Oops, something went wrong.