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

feat: support simple tuple argument #1472

Merged
merged 13 commits into from
Nov 6, 2024
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
134 changes: 134 additions & 0 deletions BIPs/4269-W69/unit_test/data_type_casting/more_tuples.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"version": "1.0",
"chainId": "1",
"createdAt": 1729225805956,
"meta": {
"name": "Transactions Batch",
"description": "",
"txBuilderVersion": "1.17.0",
"createdFromSafeAddress": "0xc38c5f97B34E175FFd35407fc91a937300E33860",
"createdFromOwnerAddress": "",
"checksum": "0x4a6bbf44563a05b2da6cdb89c41788057421c21aa58e0724ef365c2f82dc7ae0"
},
"transactions": [
{
"to": "0x8f72fcf695523A6FC7DD97EafDd7A083c386b7b6",
"value": "0",
"data": null,
"contractMethod": {
"inputs": [
{
"components": [
{
"internalType": "string",
"name": "protocolName",
"type": "string"
},
{
"components": [
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "contact",
"type": "string"
}
],
"internalType": "struct Contact[]",
"name": "contactDetails",
"type": "tuple[]"
},
{
"components": [
{
"internalType": "address",
"name": "assetRecoveryAddress",
"type": "address"
},
{
"components": [
{
"internalType": "address",
"name": "accountAddress",
"type": "address"
},
{
"internalType": "enum ChildContractScope",
"name": "childContractScope",
"type": "uint8"
},
{
"internalType": "bytes",
"name": "signature",
"type": "bytes"
}
],
"internalType": "struct Account[]",
"name": "accounts",
"type": "tuple[]"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"internalType": "struct Chain[]",
"name": "chains",
"type": "tuple[]"
},
{
"components": [
{
"internalType": "uint256",
"name": "bountyPercentage",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "bountyCapUSD",
"type": "uint256"
},
{
"internalType": "bool",
"name": "retainable",
"type": "bool"
},
{
"internalType": "enum IdentityRequirements",
"name": "identity",
"type": "uint8"
},
{
"internalType": "string",
"name": "diligenceRequirements",
"type": "string"
}
],
"internalType": "struct BountyTerms",
"name": "bountyTerms",
"type": "tuple"
},
{
"internalType": "string",
"name": "agreementURI",
"type": "string"
}
],
"internalType": "struct AgreementDetailsV1",
"name": "details",
"type": "tuple"
}
],
"name": "adoptSafeHarbor",
"payable": false
},
"contractInputsValues": {
"details": "[\"Balancer\",[[\"Telegram: Mikeisballin\",\"Mike B - Strategy\"]],[[\"0x10A19e7eE7d7F8a52822f6817de8ea18204F2e4f\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],1],[\"0xaF23DC5983230E9eEAf93280e312e57539D098D0\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],42161],[\"0x17b11FF13e2d7bAb2648182dFD1f1cfa0E4C7cf3\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],43114],[\"0xC40DCFB13651e64C8551007aa57F9260827B6462\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],8453],[\"0x4f22C2784Cbd2B24a172566491Ee73fee1A63c2e\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],252],[\"0x2a5AEcE0bb9EfFD7608213AE1745873385515c18\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],100],[\"0x4f22C2784Cbd2B24a172566491Ee73fee1A63c2e\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],34443],[\"0x043f9687842771b3dF8852c1E9801DCAeED3f6bc\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],10],[\"0xeE071f4B516F69a1603dA393CdE8e76C40E5Be85\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],137],[\"0x2f237e7643a3bF6Ef265dd6FCBcd26a7Cc38dbAa\",[[\"0xBA12222222228d8Ba445958a75a0704d566BF2C8\",0,\"0x\"]],1101]],[10,1000000,false,2,\"KYC & Global Sanction Verification. Balancer requires all eligible whitehats to undergo Know Your Customer (KYC) verification and be screened against global sanctions lists, including OFAC, UK, and EU regulations. This process ensures that all bounty recipients are compliant with legal and regulatory standards before qualifying for payment.\"],\"https://bafybeiakxvysdvsvupqcibkpifugzwcnllzt2udjk3l4yhcix7dqxxqyp4.ipfs.w3s.link/agreement.pdf\"]"
}
}
]
}
Loading