Updates for V1 formatting changes (#651)

* Updates for V1 formatting changes

* Rework V1 with the new simplified structures

* Parsing parses

* asV0 in-place, rework class splits

* e2e testing completed

* Update args, docs & fallback (shorter, non-collision naming)

* More v0-like event output
This commit is contained in:
Jaco Greeff
2019-01-30 15:41:49 +01:00
committed by GitHub
parent 82531493da
commit aea223f024
14 changed files with 3173 additions and 2824 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ describe.skip('e2e transactions', () => {
it('makes a transfer (sign, then send)', async (done) => {
const nonce = await api.query.system.accountNonce(keyring.dave.address());
api.tx.balances
return api.tx.balances
.transfer('12ghjsRJpeJpUQaCQeHcBv9pRQA3tdcMxeL8cVk9JHWJGHjd', 12345)
.sign(keyring.dave, nonce)
.send(({ events, status, type }) => {
@@ -46,7 +46,7 @@ describe.skip('e2e transactions', () => {
});
it('makes a transfer (signAndSend)', async (done) => {
api.tx.balances
return api.tx.balances
.transfer('12ghjsRJpeJpUQaCQeHcBv9pRQA3tdcMxeL8cVk9JHWJGHjd', 12345)
.signAndSend(keyring.dave, ({ events, status, type }) => {
console.log('Transaction status:', type);
@@ -66,7 +66,7 @@ describe.skip('e2e transactions', () => {
});
});
it('makes a proposal', async () => {
it.skip('makes a proposal', async () => {
const nonce = await api.query.system.accountNonce(keyring.alice.address());
// don't wait for status, just get hash