@@ -37,27 +37,27 @@ convention.
3737
3838The ` pallet-revive ` ships with a number of precompiles that are enabled by default:
3939
40- | Name | Address | Called via | Enabled by default? | Implemented in ink!? |
41- | ----------------------------------------------------------------------------------------------------------------------------------| ---------| --------------------| ---------------------| ----------------------|
42- | [ EcRecover] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/ecrecover.rs ) | 0x1 | Raw bytes | ✅ | ✅|
43- | [ Sha256] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/sha256.rs ) | 0x2 | Raw bytes | ✅ | ✅|
44- | [ Ripemd160] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/ripemd160.rs ) | 0x3 | Raw bytes | ✅ | Not yet |
45- | [ Identity] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/identity.rs ) | 0x4 | Raw bytes | ✅ | Not yet |
46- | [ Modexp] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/modexp.rs ) | 0x5 | Raw bytes | ✅ | Not yet |
47- | [ Bn128Add] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/bn128.rs ) | 0x6 | Raw bytes | ✅ | Not yet |
48- | [ Bn128Mul] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/bn128.rs ) | 0x7 | Raw bytes | ✅ | Not yet |
49- | [ Bn128Pairing] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/bn128.rs ) | 0x8 | Raw bytes | ✅ | Not yet |
50- | [ Blake2F] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/blake2f.rs ) | 0x9 | Raw bytes | ✅ | Not yet |
51- | [ PointEval] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/point_eval.rs ) | 0a | Raw bytes | ✅ | Not yet |
52- | [ System] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/system.rs ) | 0x900 | Solidity interface | ✅ | ✅|
53- | [ Storage] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/storage.rs ) | 0x901 | Solidity interface | ✅ | ✅|
40+ | Name | Address | Called via | Enabled by default? | Implemented in ink!? |
41+ | ----------------------------------------------------------------------------------------------------------------------------------| ---------| ------------------------------------------------------------------------------------------------------------------------------------- | ---------------------| ----------------------|
42+ | [ EcRecover] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/ecrecover.rs ) | 0x1 | Raw bytes | ✅ | ✅|
43+ | [ Sha256] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/sha256.rs ) | 0x2 | Raw bytes | ✅ | ✅|
44+ | [ Ripemd160] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/ripemd160.rs ) | 0x3 | Raw bytes | ✅ | Not yet |
45+ | [ Identity] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/identity.rs ) | 0x4 | Raw bytes | ✅ | Not yet |
46+ | [ Modexp] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/modexp.rs ) | 0x5 | Raw bytes | ✅ | Not yet |
47+ | [ Bn128Add] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/bn128.rs ) | 0x6 | Raw bytes | ✅ | Not yet |
48+ | [ Bn128Mul] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/bn128.rs ) | 0x7 | Raw bytes | ✅ | Not yet |
49+ | [ Bn128Pairing] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/bn128.rs ) | 0x8 | Raw bytes | ✅ | Not yet |
50+ | [ Blake2F] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/blake2f.rs ) | 0x9 | Raw bytes | ✅ | Not yet |
51+ | [ PointEval] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/point_eval.rs ) | 0a | Raw bytes | ✅ | Not yet |
52+ | [ System] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/system.rs ) | 0x900 | [ Solidity interface] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/uapi/src/precompiles/system.rs ) | ✅ | ✅|
53+ | [ Storage] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/src/precompiles/builtin/storage.rs ) | 0x901 | [ Solidity interface] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/frame/revive/uapi/src/precompiles/storage.rs ) | ✅ | ✅|
5454
5555The Polkadot SDK contains a number of additional precompiles that can be enabled at will:
5656
57- | Name | Address | Called via | Enabled by default? | Implemented in ink!? |
58- | ----------------------------------------------------------------------------------------------------------------| ---------| --------------------| ---------------------| ----------------------|
59- | [ AssetsPrecompile] ( https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/assets/precompiles ) | 0x0120 | Solidity interface | ✅ | Not yet |
60- | [ XcmPrecompile] ( https://github.com/paritytech/polkadot-sdk/tree/master/polkadot/xcm/pallet-xcm/precompiles/ ) | 0xA0000 | Raw bytes | ✅ | ✅ |
57+ | Name | Address | Called via | Enabled by default? | Implemented in ink!? |
58+ | ----------------------------------------------------------------------------------------------------------------| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- --------------------| ---------------------| ----------------------|
59+ | [ AssetsPrecompile] ( https://github.com/paritytech/polkadot-sdk/tree/master/substrate/frame/assets/precompiles ) | [ 0x120, 0x320 ] ( https://github.com/paritytech/polkadot-sdk/blob/master/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs#L1192-L1196 ) | [ Solidity interface] ( https://github.com/paritytech/polkadot-sdk/blob/master/substrate/primitives/ethereum-standards/src/IERC20.sol ) | ✅ | Not yet |
60+ | [ XcmPrecompile] ( https://github.com/paritytech/polkadot-sdk/tree/master/polkadot/xcm/pallet-xcm/precompiles/ ) | 0xA0000 | Raw bytes | ✅ | ✅ |
6161
6262## Add your own precompiles
6363
0 commit comments