* Extract extrinsic
* Extract extrinsic types to own module
* Fix compiler errors
* Fix warnings
* Fmt
* Pin wabt-sys to 0.7.1, it fails (on my machine) with 0.7.2
* Fix up tests
* Fmt
* Reexport RuntimeVersion
* Make signing fallable and asynchronous
This is needed for hardware wallets, which require human confirmation to
sign transactions. Blocking on a human to sign transactions is not a
good idea, and the signing might fail for many reasons (device
unplugged, authorization not granted, etc).
* Reformat
* Refactor as suggested by Andrew Jones (@ascjones).
* Use future::ok
Co-authored-by: Andrew Jones <ascjones@gmail.com>
* Update to substrate alpha.7
* Remove gas limit from contracts put code
* Rename SystemEvent::ReapedAccount to KilledAccount
* Log debug event received before attempting to decode
* Temporary registration of Balance type before #102 merged
* Show contract test errors, increase instantiate gas_limit
* Support custom clients.
* Simplify trait bounds.
* Plain and double map storage support.
* Simplify more trait bounds.
* Add proc macro.
* Add Call, Event and Store traits.
* Update proc-macros.
* Add with_system for proc-macro.
* proc-macro: test: support signature and extra fields.
* proc-macro: test: support sharing state accross steps.
* proc-macro: test: fetch state sequentially.
* Elide lifetimes.
* Add test for plain storage.
* Run rustfmt.
* Use substrate dependencies from crates.io
* Remove test that depends on node_runtime.
Because node_runtime is not on crates.io and was downloading duplicate substrate dependencies. The integration tests will test whether the serialization of keys and calls works.
* Fix updated jsonrpsee compilation errors
* Add missing frame-metadata dependency
* WIP
* Begin converting rpc layer to use std futures and jsonrpsee
* Convert metadata to async/await
* Convert block_hash to async/await
* Convert more methods to async/await
* Remove sp_rpc
* Fix more compilation errors
* Remove connect
* Starting to convert subscription functions
* Use jsonrpsee branch from PR for public client types
* Implement subscribe events with jsonrpsee subscription
* Converting subscriptions and wait_for_block_events
* WIP converting lib methods to async
* Use shared client reference directly for rpc call
`rpc_api!` macro currently only supports RawClient (which cannot be shared).
Also supports named params only which is not currently compatible with substrate rpd which accepts only positional params.
* Use &self instead of &mut self for shared Client
* Convert submit_and_watch to async/await
* Convert more Client fns to async
* Pin some trait futures
* Add serde error
* Fix client creation
* Fix client request compiler errors
* Unify metadata errors
* Add WS handshake error variant
* Fix some more compiler errors
* Fix more compiler errors
* Convert submit_extrinsic to async
* Convert submit and submit_and_watch
* Add Send + Sync constraints
* Clone clients
* Fix EventArg conversion error
* Fix remaining warnings/errors
* Replace deny warnings with specific lints
* Infallable subscription loops
* Use jsonrpsee wss branch
* Fix example
* Start to fix up tests
* Make contracts tests compile
* Make some more tests pass
* Fix up remaining tests
* Fmt
* Use correct event storage key type
* Fix finding events
* Use master jsonrpsee
* Move contracts tests to contracts module
* Add test for instantiating a contract
* Fix InstantiateArgs encoding
* Ignore PhantomData primitives, they are 0
* Increase endowment and log code hash
* Update SystemEvent
* Fix codec import
* Oops
* Write buffer directly to output to avoid encoding vec
* Debug with StorageChanges encoded as hex
* Logging and format code
* Fix the module index used to create a encoded func
Same as Events, modules with no calls should be ignored when calculating
the module index.
* Update substrate
* Update jsonrpc to align with substrate
* Update to new substrate signing
* Default to MultiSignature
* Add missing event type sizes
* Rename TakeFees check to ChargeTransactionPayment
* Fix extrinsic Signature
* Ignore AuthorityList type size
* Rename srml to paint (#32)
* Remove System::Event type
* WIP: removing requirement for concrete Runtime impl for extras
* Use built in substrate types for constructing/signing the extrinsic
* Implement SignedExtension for copied types
* Fix remaining compilation errors
* Allow plugging in of predefined runtime types with blanket impls
* rustfmt
* Add CheckBlockGasLimit
* Construct DefaultExtrinsic in XtBuilder
* Derive Debug for extras
* Replace SignedExtension macro with explicit implementations
* Replace Lookup associated type with Address
* Move balances and contracts to main deps
* Introduce OpaqueEvent
* Look up event by module and variant
* Index events by module
* Get events by module
* Dynamically decode events
* Decode System events and EventRecord topics
* Use type sizes to decode raw events
* Remove unused imports
* rustfmt
* Unify error types, fix some compiler errors
* Make dynamic event decoding work
- fix compilation errors
- skip modules with no events when indexing
- preallocate vec for raw event data
* Remove printlns, replace where required with log
* Remove unused import
* Check missing type sizes
* Ignore unknown event arg type sizes
* Decode concrete System events, assumes every Runtime has the module
* Reorganise usings
* pub use some types
* Code docs
* Export Error
* Error Display impls
* Format code