3 releases (breaking)

0.4.0 Jun 29, 2023
0.2.5 May 1, 2023
0.1.0 Mar 30, 2023

#118 in #transfer

Download history 18/week @ 2024-06-15 29/week @ 2024-06-22 6/week @ 2024-06-29 2/week @ 2024-07-06 26/week @ 2024-07-13 12/week @ 2024-07-20 16/week @ 2024-07-27 22/week @ 2024-08-03 12/week @ 2024-08-10 10/week @ 2024-08-17 12/week @ 2024-08-24 15/week @ 2024-08-31 5/week @ 2024-09-07 10/week @ 2024-09-14 40/week @ 2024-09-21 50/week @ 2024-09-28

108 downloads per month
Used in 9 crates (via rosetta-client)

MIT license

18KB
327 lines

This project is used to build transactions for substrate chains.

PolkadotTransactionBuilder:

Its implementation of `TransactionBuilder` and implements the following methods:
1. `transfer`
2. `method_call`
3. `create_and_sign`

transfer:

Creates `PolkadotMetadataParams` for transfer call.

method_call:

Not implemented.

create_and_sign:

When `metadata` is created we use this call to create Ethereum Transaction and sign it. It takes following arguments.
`config`: chain sepecific config.
`metadata_params`: Metadata params which created metadata for this call.
`metadata`: Metadata required make transaction.
`secret_key`: wallet's secret key (used to sign the transaction).

It creates the transaction and signs it and then returns it in bytes.

Dependencies

~14MB
~273K SLoC