Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
json
Languages:
English
Size:
< 1K
ArXiv:
Tags:
benchmark
code-generation
transaction-code-generation
execution-grounded-evaluation
blockchain
evm
License:
File size: 4,926 Bytes
edbc049 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | {
"id": "composite_split_and_transfer",
"version": "1.0.0",
"category": "composite_problems",
"subcategory": "distribution_workflows",
"difficulty": "medium",
"title": "Split and Transfer Token Balance",
"natural_language_templates": [
"Split your {token_symbol} balance: send 50% to {address1} and 50% to {address2}, then verify you transferred all",
"Distribute your {token_symbol} equally between {address1} and {address2}",
"Transfer half of your {token_symbol} to {address1}, the other half to {address2}, and verify balance is zero"
],
"description": [
"Split your entire token balance between two recipients.",
"",
"This is a 3-step process:",
"1. Transfer 50% of your {token_symbol} balance to {address1}",
"2. Transfer the remaining 50% (all remaining) to {address2}",
"3. Query your balance to verify it is zero (or near zero)",
"",
"Token: {token_symbol} at {token_address}",
"Token decimals: 18",
"",
"IMPORTANT:",
"- First calculate your current balance",
"- Transfer exactly 50% to address1",
"- Transfer remaining balance (100% of what's left) to address2",
"- The key operation is the second transfer (step 2)",
"",
"ERC20 transfer function:",
"- transfer(address to, uint256 amount)",
"- Function selector: 0xa9059cbb",
"",
"Example: If you have 100 tokens:",
"- Step 1: Transfer 50 tokens to address1",
"- Step 2: Transfer 50 tokens to address2",
"- Result: Your balance should be 0"
],
"composite_structure": {
"pattern": "split-transfer",
"optimal_steps": 3,
"atomic_operations": [
{
"step": 1,
"atomic_id": "erc20_transfer_percentage",
"role": "first_transfer",
"description": "Transfer 50% to address 1"
},
{
"step": 2,
"atomic_id": "erc20_transfer_percentage",
"role": "key_operation",
"description": "Transfer remaining 50% to address 2"
},
{
"step": 3,
"atomic_id": "query_erc20_balance",
"role": "verification",
"description": "Verify balance is zero"
}
]
},
"parameters": {
"token_address": {
"type": "address",
"role": "token",
"description": "ERC20 token contract address (USDT)",
"generation": {
"method": "fixed",
"value": "0x55d398326f99059fF775485246999027B3197955"
}
},
"token_symbol": {
"type": "string",
"role": "display",
"description": "Token symbol",
"generation": {
"method": "fixed",
"value": "USDT"
}
},
"address1": {
"type": "address",
"role": "recipient_1",
"description": "First recipient address (receives 50%)",
"generation": {
"method": "random"
}
},
"address2": {
"type": "address",
"role": "recipient_2",
"description": "Second recipient address (receives remaining 50%)",
"generation": {
"method": "random"
}
},
"to_address": {
"type": "address",
"role": "key_recipient",
"description": "Key operation recipient (same as address2)",
"generation": {
"method": "random"
}
},
"percentage": {
"type": "number",
"unit": "percent",
"role": "transfer_percentage",
"description": "Percentage to transfer (100% of remaining for key operation)",
"generation": {
"method": "fixed",
"value": 100
}
},
"token_decimals": {
"type": "integer",
"role": "calculation",
"description": "Token decimals",
"generation": {
"method": "fixed",
"value": 18
}
}
},
"interaction_config": {
"max_rounds": 6,
"optimal_steps": 3,
"score_decay_formula": "base_score * min(1.0, optimal_steps / actual_steps)",
"forced_submit_at_max": true
},
"scoring_strategy": {
"method": "atomic_validator_reuse",
"key_operation_id": "erc20_transfer_percentage",
"key_operation_step": 2
},
"validation": {
"pre_conditions": [
{
"type": "token_balance",
"description": "Agent must have token balance to split",
"min_balance": "100 tokens"
}
],
"post_conditions": [
{
"type": "balance_split",
"weight": 0.7,
"description": "Balance split equally between recipients"
},
{
"type": "final_balance_zero",
"weight": 0.3,
"description": "Agent balance should be zero after transfers"
}
]
},
"metadata": {
"tags": [
"split",
"distribution",
"percentage",
"erc20",
"medium"
],
"estimated_gas": 120000,
"requires_approval": false,
"difficulty_notes": [
"Requires balance calculation",
"Two sequential transfers",
"Verification step included"
]
}
}
|