| 552 | } |
| 553 | |
| 554 | MemberList::MemberMap AddressType::nativeMembers(ASTNode const*) const |
| 555 | { |
| 556 | MemberList::MemberMap members = { |
| 557 | {"balance", TypeProvider::uint256()}, |
| 558 | {"code", TypeProvider::array(DataLocation::Memory)}, |
| 559 | {"codehash", TypeProvider::fixedBytes(32)}, |
| 560 | {"call", TypeProvider::function(strings{"bytes memory"}, strings{"bool", "bytes memory"}, FunctionType::Kind::BareCall, StateMutability::Payable)}, |
| 561 | {"callcode", TypeProvider::function(strings{"bytes memory"}, strings{"bool", "bytes memory"}, FunctionType::Kind::BareCallCode, StateMutability::Payable)}, |
| 562 | {"delegatecall", TypeProvider::function(strings{"bytes memory"}, strings{"bool", "bytes memory"}, FunctionType::Kind::BareDelegateCall, StateMutability::NonPayable)}, |
| 563 | {"staticcall", TypeProvider::function(strings{"bytes memory"}, strings{"bool", "bytes memory"}, FunctionType::Kind::BareStaticCall, StateMutability::View)} |
| 564 | }; |
| 565 | if (m_stateMutability == StateMutability::Payable) |
| 566 | { |
| 567 | members.emplace_back(MemberList::Member{"send", TypeProvider::function(strings{"uint"}, strings{"bool"}, FunctionType::Kind::Send, StateMutability::NonPayable)}); |
| 568 | members.emplace_back(MemberList::Member{"transfer", TypeProvider::function(strings{"uint"}, strings(), FunctionType::Kind::Transfer, StateMutability::NonPayable)}); |
| 569 | } |
| 570 | return members; |
| 571 | } |
| 572 | |
| 573 | namespace |
| 574 | { |
no test coverage detected