Travis CI
42d7256470
[CI Skip] 0.82.0-beta.85
2019-07-23 09:59:20 +00:00
Jaco Greeff
ebc2fbe3ee
Move (some) from session & elections to srml/types ( #1158 )
...
* Move (some) from session & elections to srml/types
* Just use createType instad of (new ClassOf(type))(value)
* Cleanup generation script (import file duplication)
2019-07-23 11:47:45 +02:00
Travis CI
8925a9a925
[CI Skip] 0.82.0-beta.84
2019-07-23 09:26:20 +00:00
Jaco Greeff
f9f3956ab3
Metadata types (and metadata parsing) for babe ( #1163 )
...
* Metadata with types for babe
* srmlTs build script from other PR
* Don't update metadata yet, only allow parsing
2019-07-23 11:15:12 +02:00
Travis CI
b4f5ae7911
[CI Skip] 0.82.0-beta.83
2019-07-23 09:08:25 +00:00
Jaco Greeff
f9a3f3e53f
Fix linked maps with defaults ( #1162 )
...
* isPedantic matches [] with isEmpty
* Fix undefined.undefined on headKey
* Adjust fallback for linked maps
* Add tests for the linked map fallbacks (head and value)
2019-07-23 10:56:45 +02:00
Travis CI
6858cd0212
[CI Skip] 0.82.0-beta.82
2019-07-23 08:54:05 +00:00
Jaco Greeff
43ca02b2ca
Display [Type; length] in length error ( #1161 )
...
* Display [Type; length] in length error
* Rework assert formatting
2019-07-23 10:42:22 +02:00
Travis CI
be8e096c66
[CI Skip] 0.82.0-beta.81
2019-07-22 21:10:07 +00:00
Stefanie Doll
98cffea22d
Add tests for latest polkadot metadata v6 encoding ( #1159 )
...
* Added tests for polkadot metadata v6 encoding
* added rpc access & ports to docker-compose
2019-07-22 22:58:21 +02:00
Travis CI
5280ca01fd
[CI Skip] 0.82.0-beta.80
2019-07-22 15:19:06 +00:00
Jaco Greeff and Amaury Martiny
50a2314544
Extrinsic v2 ( #1150 )
...
* Extrinsic v2
* Save after last move of files
* Signature V2
* Rework signature decoding
* Simplify V1 and V2 underlying impl.
* Detect chain extrinsic version
* SignaturePayload
* remove Raw payload variant link (Payload is now raw)
* Remove v2 comments referring to v1 data
* Pass isSigned to Extrinsic{V1, V2}
* Cleanup era injection
* It flows :)
* Add SignerPayload and signPayload for Signer (#1152 )
* Add SignerPayload and signPayload for Signer
* Submittables use signPayload
* Don't pass version on deprecated interface
* Update after all e2e tx tests passes
* Comment around payload generation
* Adjust blocktime to default (nice round 50 block eras)
* Fix calc
* Re-add test comment
* Update packages/api/src/types.ts
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* Update packages/types/src/primitive/BalanceCompact.ts
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* Backwards compatibility for current in-store signers
* Apply options suggestions
* Add missing Compact params (linting)
2019-07-22 17:08:06 +02:00
Travis CI
ed0979a50c
[CI Skip] 0.82.0-beta.79
2019-07-22 13:00:00 +00:00
Jaco Greeff
dd7b138c02
Move contracts classes to srml/contracts (now as types-only) ( #1153 )
...
* Move contracts classes to srml/contracts (now as types-only)
* Exclude srml generated files from codeclimate
* Alos excluse types/src/scripts
* Replace Compact<T>.toBn() with unwrap()
* Fic compact type (#1156 )
* Remove as unknown as T (T typing is working)
* Move interfaces back to the relevant types.ts
2019-07-22 14:49:08 +02:00
Travis CI
0c7794198a
[CI Skip] 0.82.0-beta.78
2019-07-21 08:47:01 +00:00
Jaco Greeff
3d7a460cd2
Latest metadata for substrate 2.x ( #1151 )
...
* Latest metadata for substrate 2.x
* Save json...
* Latest types
* typo in name
* typo in name
* Export all types from the seperate modules
2019-07-21 10:35:27 +02:00
Travis CI
80305f5a34
[CI Skip] 0.82.0-beta.77
2019-07-20 09:00:07 +00:00
Jaco Greeff
5e0f62c793
Bump deps ( #1148 )
2019-07-20 10:49:01 +02:00
Travis CI
5c105e4bd1
[CI Skip] 0.82.0-beta.76
2019-07-19 21:24:11 +00:00
Jaco Greeff
d5fb040e92
Bump deps
2019-07-19 23:13:24 +02:00
kwingram25
2ff632b534
Derived elections member type ( #1147 )
...
* elections
* headers
* lint
* lint
* lint
* lint
* fixes
* lint
* voterSets
* derived elections member type
* lint
2019-07-19 23:11:39 +02:00
Travis CI
1d6e4ad638
[CI Skip] 0.82.0-beta.75
2019-07-19 19:38:08 +00:00
kwingram25
ab74db5126
Elections derive ( #1143 )
...
* elections
* headers
* lint
* lint
* lint
* lint
* fixes
* lint
* voterSets
2019-07-19 21:27:02 +02:00
Travis CI
cbd717ca65
[CI Skip] 0.82.0-beta.74
2019-07-19 10:41:40 +00:00
Jaco Greeff
61065a2ac8
Bump deps
2019-07-19 12:27:47 +02:00
Travis CI
66e77dd67b
[CI Skip] 0.82.0-beta.73
2019-07-19 05:17:47 +00:00
Jaco Greeff
5fe63b4053
Bump deps
2019-07-19 07:06:41 +02:00
Travis CI
62eca6c30d
[CI Skip] 0.82.0-beta.72
2019-07-18 22:36:33 +00:00
Jaco Greeff
37af934be6
Bump deps, export elections ( #1146 )
2019-07-19 00:25:26 +02:00
Travis CI
7933611cc4
[CI Skip] 0.82.0-beta.71
2019-07-18 21:55:53 +00:00
Jake Naviasky
efb38dbdf8
Fixing array bug in approvalFlagToBool derive. ( #1144 )
...
* Fixing array bug in approvalFlagToBool derive.
* Replicating 'take until last approval' logic.
2019-07-18 23:43:30 +02:00
Travis CI
31f81ca41e
[CI Skip] 0.82.0-beta.70
2019-07-17 22:09:44 +00:00
Jaco Greeff
ff69c4378d
Update to latest metadata for 2.x ( #1142 )
...
* Update to latest metadata for 2.x
* ... now with .json saved :)
* Common
2019-07-17 23:59:01 +02:00
Travis CI
13adf14de6
[CI Skip] 0.82.0-beta.69
2019-07-17 20:26:36 +00:00
Jake Naviasky
28cf21dd4f
Adding derives for election sets and approval flags. ( #1141 )
...
* Adding derives for election sets and approval flags.
* Bugfixes to derived election functions.
* Attempting linter fix.
* Fixing typing error.
* Another eslint fix.
* Adding explicit types to api calls.
2019-07-17 22:15:43 +02:00
Travis CI
58e50f0c16
[CI Skip] 0.82.0-beta.68
2019-07-16 21:05:51 +00:00
Axel Chalon
0196829a48
Add metadata constants to scripts/MetadataMd ( #1131 )
...
* Add metadata constants to scripts/MetadataMd
* Use name instead of prefix for Extrinsics
Since the js api uses the name and not the prefix (api.tx.name.xx)
and finality_tracker doesn't have a prefix
* Lint
2019-07-16 22:55:03 +02:00
Travis CI
76d3ac7769
[CI Skip] 0.82.0-beta.67
2019-07-16 19:04:41 +00:00
Jaco Greeff
3b282f0306
Don't export constants as ConstantCodec (TS casting) ( #1140 )
...
* Don't export constants as ConstantCodec (TS casting)
* Import ConstantCodec from types
2019-07-16 20:53:12 +02:00
Travis CI
62e15858c6
[CI Skip] 0.82.0-beta.66
2019-07-16 18:12:32 +00:00
Jaco Greeff
eaec0da2f5
Catch promise errors in subscription ( #1138 )
...
* Testcase for invalid tx (not caught)
* Re-enable commented tests
* Make the test pass
* Cleanup tests, check for promise to exist
2019-07-16 20:01:31 +02:00
Travis CI
970f689309
[CI Skip] 0.82.0-beta.65
2019-07-16 14:15:16 +00:00
Stefanie Doll
d57dca53f4
Reorganize test setup ( #1132 )
...
* Moved all e2e tests to 'api' folder
* Moved metadata test
* fix imports
* Add jest options for testing the different endpoint types separately
* Add check for empty test suites and return empt test to prevent jest from throwing an error
* Fix import paths
* Fix const tests for polkadot chains
* Update to latest Substrate 2.0 image
* Move contract files for e2e testing to e2e tesing folder
* reorder & fix promise query tests for all test nodes
* final fixes for promise query
* eslint fixes
* removed trailing space
* fix linting errors
* Address codeclimate "Function getWsEndpoints has a Cognitive Complexity of 7 (exceeds 5 allowed)."
* Fix contract ABI import paths
* linter endpoint types
* replace alice with alice_stash
* split off promise-queries file
* Remove apiType, smaller cleanups, added local to only: [] tests suites
* relative paths changed to `@polkadot` import
* moved contract wasm & abi's back to `api-contract`
2019-07-16 16:03:53 +02:00
Travis CI
25e9805622
[CI Skip] 0.82.0-beta.64
2019-07-16 14:00:55 +00:00
Jaco Greeff
ca53fbc2a6
Allow ExtrinsicEra to construct via instance ( #1136 )
2019-07-16 15:50:36 +02:00
Travis CI
e56a3dd373
[CI Skip] 0.82.0-beta.63
2019-07-16 12:58:07 +00:00
Jaco Greeff
4bdbacbadd
Make era required on raw signature injection ( #1135 )
2019-07-16 14:47:26 +02:00
Travis CI
c274076c23
[CI Skip] 0.82.0-beta.62
2019-07-16 10:22:53 +00:00
Jaco Greeff
9b15a373d3
Signing cleanups (w/ additional tests) ( #1134 )
2019-07-16 12:12:17 +02:00
Travis CI
c34ca9c36f
[CI Skip] 0.82.0-beta.61
2019-07-15 16:08:59 +00:00