@@ -47,17 +47,17 @@ use crate::types::Address;
47
47
/// | Rust/ink! type | Solidity ABI type | Notes |
48
48
/// | -------------- | ----------------- | ----- |
49
49
/// | `bool` | `bool` ||
50
- /// | `iN` for `N ∈ {8,16,32,64,128}` | `intN` | e.g `i8` <=> `int8` |
51
- /// | `uN` for `N ∈ {8,16,32,64,128}` | `uintN` | e.g `u8` <=> `uint8` |
50
+ /// | `iN` for `N ∈ {8,16,32,64,128}` | `intN` | e.g `i8` ↔ `int8` |
51
+ /// | `uN` for `N ∈ {8,16,32,64,128}` | `uintN` | e.g `u8` ↔ `uint8` |
52
52
/// | `U256` | `uint256` ||
53
53
/// | `String` | `string` ||
54
54
/// | `Address` / `H160` | `address` | `Address` is a type alias for the `H160` type used for addresses in `pallet-revive` |
55
- /// | `[T; N]` for `const N: usize` | `T[N]` | e.g. `[i8; 64]` <=> `int8[64]` |
56
- /// | `Vec<T>` | `T[]` | e.g. `Vec<i8>` <=> `int8[]` |
55
+ /// | `[T; N]` for `const N: usize` | `T[N]` | e.g. `[i8; 64]` ↔ `int8[64]` |
56
+ /// | `Vec<T>` | `T[]` | e.g. `Vec<i8>` ↔ `int8[]` |
57
57
/// | `SolBytes<u8>` | `bytes1` ||
58
- /// | `SolBytes<[u8; N]>` for `1 <= N <= 32` | `bytesN` | e.g. `SolBytes<[u8; 32]>` <=> `bytes32` |
58
+ /// | `SolBytes<[u8; N]>` for `1 <= N <= 32` | `bytesN` | e.g. `SolBytes<[u8; 32]>` ↔ `bytes32` |
59
59
/// | `SolBytes<Vec<u8>>` | `bytes` ||
60
- /// | `(T1, T2, T3, ... T12)` | `(U1, U2, U3, ... U12)` | where `T1` <=> `U1`, ... `T12` <=> `U12` e.g. `(bool, u8, Address)` <=> `(bool, uint8, address)` |
60
+ /// | `(T1, T2, T3, ... T12)` | `(U1, U2, U3, ... U12)` | where `T1` ↔ `U1`, ... `T12` ↔ `U12` e.g. `(bool, u8, Address)` ↔ `(bool, uint8, address)` |
61
61
///
62
62
/// Ref: <https://docs.soliditylang.org/en/latest/abi-spec.html#types>
63
63
///
@@ -88,20 +88,20 @@ pub trait SolTypeDecode: Sized + private::Sealed {
88
88
/// | Rust/ink! type | Solidity ABI type | Notes |
89
89
/// | -------------- | ----------------- | ----- |
90
90
/// | `bool` | `bool` ||
91
- /// | `iN` for `N ∈ {8,16,32,64,128}` | `intN` | e.g `i8` <=> `int8` |
92
- /// | `uN` for `N ∈ {8,16,32,64,128}` | `uintN` | e.g `u8` <=> `uint8` |
91
+ /// | `iN` for `N ∈ {8,16,32,64,128}` | `intN` | e.g `i8` ↔ `int8` |
92
+ /// | `uN` for `N ∈ {8,16,32,64,128}` | `uintN` | e.g `u8` ↔ `uint8` |
93
93
/// | `U256` | `uint256` ||
94
94
/// | `String` | `string` ||
95
95
/// | `Address` / `H160` | `address` | `Address` is a type alias for the `H160` type used for addresses in `pallet-revive` |
96
- /// | `[T; N]` for `const N: usize` | `T[N]` | e.g. `[i8; 64]` <=> `int8[64]` |
97
- /// | `Vec<T>` | `T[]` | e.g. `Vec<i8>` <=> `int8[]` |
96
+ /// | `[T; N]` for `const N: usize` | `T[N]` | e.g. `[i8; 64]` ↔ `int8[64]` |
97
+ /// | `Vec<T>` | `T[]` | e.g. `Vec<i8>` ↔ `int8[]` |
98
98
/// | `SolBytes<u8>` | `bytes1` ||
99
- /// | `SolBytes<[u8; N]>` for `1 <= N <= 32` | `bytesN` | e.g. `SolBytes<[u8; 32]>` <=> `bytes32` |
99
+ /// | `SolBytes<[u8; N]>` for `1 <= N <= 32` | `bytesN` | e.g. `SolBytes<[u8; 32]>` ↔ `bytes32` |
100
100
/// | `SolBytes<Vec<u8>>` | `bytes` ||
101
- /// | `(T1, T2, T3, ... T12)` | `(U1, U2, U3, ... U12)` | where `T1` <=> `U1`, ... `T12` <=> `U12` e.g. `(bool, u8, Address)` <=> `(bool, uint8, address)` |
102
- /// | `&str`, `&mut str`, `Box<str>` | string ||
103
- /// | `&T`, `&mut T`, `Box<T>` | T | e.g. `&i8 <=> int8` |
104
- /// | `&[T]`, `&mut [T]`, `Box<[T]>` | T[] | e.g. `&[i8]` <=> `int8[]` |
101
+ /// | `(T1, T2, T3, ... T12)` | `(U1, U2, U3, ... U12)` | where `T1` ↔ `U1`, ... `T12` ↔ `U12` e.g. `(bool, u8, Address)` ↔ `(bool, uint8, address)` |
102
+ /// | `&str`, `&mut str`, `Box<str>` | ` string` ||
103
+ /// | `&T`, `&mut T`, `Box<T>` | `T` | e.g. `&i8 ↔ int8` |
104
+ /// | `&[T]`, `&mut [T]`, `Box<[T]>` | ` T[]` | e.g. `&[i8]` ↔ `int8[]` |
105
105
///
106
106
/// Ref: <https://docs.soliditylang.org/en/latest/abi-spec.html#types>
107
107
///
0 commit comments