Home
last modified time | relevance | path

Searched refs:payable (Results 1 – 25 of 1070) sorted by relevance

12345678910>>...43

/dports/lang/solidity/solidity_0.8.11/test/libsolidity/syntaxTests/parsing/
H A Daddress_invalid_state_mutability.sol17 // TypeError 2311: (14-26): Address types can only be payable or non-payable.
18 // TypeError 2311: (33-45): Address types can only be payable or non-payable.
19 // TypeError 2311: (52-64): Address types can only be payable or non-payable.
20 // TypeError 2311: (89-101): Address types can only be payable or non-payable.
21 // TypeError 2311: (138-150): Address types can only be payable or non-payable.
22 // TypeError 2311: (156-168): Address types can only be payable or non-payable.
23 // TypeError 2311: (195-207): Address types can only be payable or non-payable.
24 // TypeError 2311: (236-248): Address types can only be payable or non-payable.
25 // TypeError 2311: (300-312): Address types can only be payable or non-payable.
26 // TypeError 2311: (352-364): Address types can only be payable or non-payable.
H A Daddress_payable_function_type.sol2 function (address payable) view internal returns (address payable) f;
3 …ess payable) payable external returns (address payable)) public payable returns (function (address…
4 function (address payable) payable external returns (address payable) h; h;
H A Delementary_non_address_payable_local.sol3 bool payable a;
4 string payable b;
5 int payable c;
6 int256 payable d;
7 uint payable e;
8 uint256 payable f;
9 bytes1 payable g;
10 bytes payable h;
11 bytes32 payable i;
12 fixed payable j;
[all …]
H A Delemantary_non_address_payable_state_variable.sol2 bool payable a;
3 string payable b;
4 int payable c;
5 int256 payable d;
6 uint payable e;
7 uint256 payable f;
8 bytes1 payable g;
9 bytes payable h;
10 bytes32 payable i;
11 fixed payable j;
[all …]
H A Delementary_non_address_payable_argument.sol2 function a(bool payable) public pure {}
3 function b(string payable) public pure {}
4 function c(int payable) public pure {}
5 function d(int256 payable) public pure {}
6 function e(uint payable) public pure {}
7 function f(uint256 payable) public pure {}
8 function g(bytes1 payable) public pure {}
9 function h(bytes payable) public pure {}
10 function i(bytes32 payable) public pure {}
11 function j(fixed payable) public pure {}
[all …]
H A Delementary_non_address_payable_return.sol2 function a() public pure returns (bool payable) {}
3 function b() public pure returns (string payable) {}
4 function c() public pure returns (int payable) {}
5 function d() public pure returns (int256 payable) {}
6 function e() public pure returns (uint payable) {}
7 function f() public pure returns (uint256 payable) {}
8 function g() public pure returns (bytes1 payable) {}
9 function h() public pure returns (bytes payable) {}
10 function i() public pure returns (bytes32 payable) {}
11 function j() public pure returns (fixed payable) {}
[all …]
H A Daddress_payable_state_variable.sol2 address payable a;
3 address payable public b;
4 address payable[] c;
5 address payable[] public d;
6 mapping(uint => address payable) e;
7 mapping(uint => address payable[]) f;
H A Daddress_payable_local.sol2 mapping(uint => address payable) m;
3 mapping(uint => address payable[]) n;
5 address payable a;
6 address payable[] memory b;
7 mapping(uint => address payable) storage c = m;
8 mapping(uint => address payable[]) storage d = n;
H A Dmultiple_statemutability_specifiers.sol2 function f() payable payable {}
14 function f() payable view {}
17 function f() pure payable {}
20 function f() view payable {}
23 // ParserError 9680: (39-46): State mutability already specified as "payable".
27 // ParserError 9680: (229-233): State mutability already specified as "payable".
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/syntaxTests/types/address/
H A Dpayable_conversion_strict_err.sol3 address payable a = payable(uint160(0));
4 address payable b = payable(bytes20(0));
5 address payable c = payable(2);
7 address payable d = payable(0x002190356cBB839Cbe05303d7705Fa);
10 uint160 a1 = uint160(payable(0));
11 bytes20 b1 = bytes20(payable(0));
15 // TypeError 9640: (72-91): Explicit type conversion not allowed from "uint160" to "address payable
16 …ypeError 9640: (121-140): Explicit type conversion not allowed from "bytes20" to "address payable".
17 …rror 9640: (170-180): Explicit type conversion not allowed from "int_const 2" to "address payable".
19 // TypeError 9640: (375-394): Explicit type conversion not allowed from "address payable" to "uint1…
[all …]
H A Dpayable_conversion_strict.sol3 address payable a = payable(address(uint160(0)));
4 address payable b = payable(address(bytes20(0)));
5 address payable c = payable(address(2));
7 address payable d = payable(address(0x002190356cBB839Cbe05303d7705Fa));
9 uint160 a1 = uint160(address(payable(0)));
10 bytes20 b1 = bytes20(address(payable(0)));
H A Daddress_uint_bytes20_this.sol8 address payable a4 = payable(address(uint160(0)));
9 address payable a5 = payable(address(bytes20(0)));
10 address payable a6 = payable(address(this));
15 // to make payable(this) work
16 receive() payable external {
H A Dpayable_conversion.sol3 address payable a = payable(address(new D()));
4 address payable b = payable(new E());
5 address payable c = payable(new F());
18 receive() external payable {
24 fallback() external payable {
H A Dliteral_to_payable_address.sol4 address payable a = payable(0);
5 a = payable(address(1));
6 address payable b = payable(0x0123456789012345678901234567890123456789);
7 b = payable(0x9876543210987654321098765432109876543210);
H A Dpayable_conversions_literals.sol4 address payable a = payable(0);
7 address payable b = payable(0x00000000219ab540356cBB839Cbe05303d7705Fa);
9 address payable c = payable(address(2));
H A Daddress_uint_bytes20_this_to_payable_err.sol3 address payable a = address(uint160(0));
4 address payable b = address(bytes20(0));
5 address payable c = address(this);
9 …peError 9574: (52-91): Type address is not implicitly convertible to expected type address payable.
10 …Error 9574: (101-140): Type address is not implicitly convertible to expected type address payable.
11 …Error 9574: (150-183): Type address is not implicitly convertible to expected type address payable.
H A Daddress_tuple_fail.sol2 function f() public view returns (address payable a, address b) {
3 (address c, address payable d) = (address(this), payable(0));
8 …(169-174): Type tuple(address,address payable) is not implicitly convertible to expected type tupl…
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/syntaxTests/viewPureChecker/
H A Dbuiltin_functions_view_fail.sol3 payable(this).transfer(1);
6 require(payable(this).send(2));
9 selfdestruct(payable(this));
19 receive() payable external {
23 …expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
24 …expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
25 …expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
26 …expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
27 …expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
/dports/lang/solidity/solidity_0.8.11/test/compilationTests/corion/
H A Dmodule.sol4 …function transfer(address payable from, address payable to, uint256 value, bool fee) external retu…
5 function balanceOf(address payable owner) public view returns (bool success, uint256 value) {}
22 address payable public moduleHandlerAddress;
43 function _replaceModuleHandler(address payable newModuleHandlerAddress) internal {
80 …function replaceModule(address payable newModuleAddress) virtual external onlyForModuleHandler ret…
84 function _replaceModule(address payable newModuleAddress) internal {
93 …_success, uint256 _balance) = abstractModuleHandler(moduleHandlerAddress).balanceOf(payable(this));
104 function transferEvent(address payable from, address payable to, uint256
112 function registerModuleHandler(address payable _moduleHandlerAddress) internal {
118 function isModuleHandler(address payable addr) internal returns (bool ret) {
[all …]
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/gasTests/
H A Ddispatch_large_optimised.sol14 function g1(uint x) public payable returns (uint) { a = x; b[uint8(msg.data[0])] = x; }
15 function g2(uint x) public payable returns (uint) { b[uint8(msg.data[1])] = x; }
16 function g3(uint x) public payable returns (uint) { b[uint8(msg.data[2])] = x; }
17 function g4(uint x) public payable returns (uint) { b[uint8(msg.data[3])] = x; }
18 function g5(uint x) public payable returns (uint) { b[uint8(msg.data[4])] = x; }
19 function g6(uint x) public payable returns (uint) { b[uint8(msg.data[5])] = x; }
20 function g7(uint x) public payable returns (uint) { b[uint8(msg.data[6])] = x; }
21 function g8(uint x) public payable returns (uint) { b[uint8(msg.data[7])] = x; }
22 function g9(uint x) public payable returns (uint) { b[uint8(msg.data[8])] = x; }
23 function g0(uint x) public payable returns (uint) { require(x > 10); }
H A Ddispatch_large.sol14 function g1(uint x) public payable returns (uint) { a = x; b[uint8(msg.data[0])] = x; }
15 function g2(uint x) public payable returns (uint) { b[uint8(msg.data[1])] = x; }
16 function g3(uint x) public payable returns (uint) { b[uint8(msg.data[2])] = x; }
17 function g4(uint x) public payable returns (uint) { b[uint8(msg.data[3])] = x; }
18 function g5(uint x) public payable returns (uint) { b[uint8(msg.data[4])] = x; }
19 function g6(uint x) public payable returns (uint) { b[uint8(msg.data[5])] = x; }
20 function g7(uint x) public payable returns (uint) { b[uint8(msg.data[6])] = x; }
21 function g8(uint x) public payable returns (uint) { b[uint8(msg.data[7])] = x; }
22 function g9(uint x) public payable returns (uint) { b[uint8(msg.data[8])] = x; }
23 function g0(uint x) public payable returns (uint) { require(x > 10); }
/dports/lang/solidity/solidity_0.8.11/docs/
H A D080-breaking-changes.rst71 type ``address`` instead of ``address payable``. One can get a payable address type by using an
75 payable``. They can be converted to ``address payable`` by using an explicit conversion, e.g.
92 - ``payable(uint160)``, ``payable(bytes20)`` and ``payable(integer-literal)``: converting both
94 ``payable(address(bytes20))`` and ``payable(address(integer-literal))`` respectively. Note that
123 ``address payable``. One can convert them into ``address payable`` by using an explicit
124 conversion, i.e., ``payable(tx.origin)`` or ``payable(msg.sender)``.
131 payable``:
135 ``payable(address(u))``.
138 ``payable(address(b))``.
141 function or a payable fallback function). The conversion ``payable(c)`` has the type ``address
[all …]
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/syntaxTests/conversion/
H A Dexplicit_conversion_this_to_payable.sol3 address payable p = payable(this);
4 address payable q = payable(address(this));
8 …peError 9640: (63-76): Explicit type conversion not allowed from "contract C" to "address payable".
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/syntaxTests/constructor/
H A Dnonpayable_new.sol4 contract A2 { constructor() payable {} }
12 function f() public payable {
20 …or 7006: (214-231): Cannot set option "value", since the constructor of contract B1 is not payable.
21 …or 7006: (237-254): Cannot set option "value", since the constructor of contract B2 is not payable.
22 …or 7006: (260-277): Cannot set option "value", since the constructor of contract B3 is not payable.
23 …or 7006: (283-300): Cannot set option "value", since the constructor of contract B4 is not payable.
/dports/lang/solidity/solidity_0.8.11/test/libsolidity/semanticTests/revertStrings/
H A Dtransfer.sol2 receive() external payable {
9 receive() external payable {}
11 payable(a).transfer(1 wei);
14 payable(a).transfer(100 ether);
17 return payable(this).balance;

12345678910>>...43