io.senx:warp10-ext-web3
Installation
$ wf g -w /path/to/warp10 io.senx warp10-ext-web3
/path/to/warp10/
is where Warp 10 is physically located.
Readme
warp10-ext-web3
The Web 3 WarpScript extension adds functions to interact with Ethereum compatible blockchains. This includes generating and signing transactions, both simple value transfer and smart contract calls, sending transactions to Ethereum nodes, and decoding return values and logs from transaction receipts.
As examples, this extension enables Warp 10 to act as an oracle or interact with DeFi protocols by acting as an arbitrageur or proceeding with liquidations. These examples are only a few of those made possible by those functions.
Functions
ABI->
Parses an ABI JSON structure.
ETH.CALL
Generates a transaction payload containing a smart contract call.
ETH.TXN
Generates an EIP-1559 compliant Ethereum transaction. The transaction can be submitted to an Ethereum node.
ETH.RECEIPT
Retrieves a transaction receipt from an Ethereum node.
ETH.RETURN
Extract and parse return values from a transaction receipt.
ETH.LOG
Extract and parse log messages (events) from a transaction receipt.
EIP712.HASH
Function to hash a typed structure as per EIP-712.
EIP712.VERIFY
Function to verify the signature of an EIP-712 typed structure.
Unit functions
Those functions convert an amount into the matching wei
amount:
wei
, kwei
, babbage
, mwei
, lovelave
, gwei
, shannon
, twei
, szabo
, pwei
, finney
, ether
, eth
, buterin
.
Path | Size | Creation time |
---|---|---|
ABI-> | 931 bytes | 2021-07-29 |
ABI.SIG | 895 bytes | 2022-04-27 |
EIP712.HASH | 850 bytes | 2022-04-27 |
ETH.BIP32 | 1055 bytes | 2022-04-27 |
ETH.BIP39 | 938 bytes | 2022-04-27 |
ETH.CALL | 1129 bytes | 2022-04-27 |
ETH.KEY | 1382 bytes | 2022-04-27 |
ETH.LOG | 921 bytes | 2022-04-27 |
ETH.NONCE | 1697 bytes | 2022-04-27 |
ETH.RECEIPT | 735 bytes | 2022-04-27 |
ETH.RETURN | 967 bytes | 2022-04-27 |
ETH.TXN | 5778 bytes | 2022-04-27 |
ETH.VERIFY | 933 bytes | 2022-04-27 |
babbage | 821 bytes | 2022-04-27 |
buterin | 842 bytes | 2022-04-27 |
eth | 739 bytes | 2022-04-27 |
ether | 745 bytes | 2022-04-27 |
finney | 846 bytes | 2022-04-27 |
gwei | 730 bytes | 2022-04-27 |
kwei | 721 bytes | 2022-04-27 |
lovelace | 823 bytes | 2022-04-27 |
mwei | 726 bytes | 2022-04-27 |
pwei | 738 bytes | 2022-04-27 |
shannon | 828 bytes | 2022-04-27 |
szabo | 818 bytes | 2022-04-27 |
twei | 734 bytes | 2022-04-27 |
wei | 744 bytes | 2022-04-27 |
Configuration
//
Load the Web 3 extension
//
warpscript.extension.web3 = io.senx.ext.web3.Web3WarpScriptExtension
Versions | Published |
---|---|
1.0.0-uberjar | 2022-04-27 |