Jaco Greeff
a304e0d35d
Align IExtrinsic with Extrinsic impl. (signer/signature string) ( #946 )
2019-06-12 16:45:45 +12:00
Alex Wang
e61f1634ab
support double map storage function ( #934 )
...
* support double map storage function
* add twox_64_concat, clean comments
* change Twox128Concat to Twox64Concat
* update decodeStorageKey
* fix: update decodeStorageKey
* test: add e2e test
2019-06-12 16:45:45 +12:00
Jaco Greeff
572c0905b8
ExtrinsicSignature init with address/signature strings ( #935 )
2019-06-12 16:45:45 +12:00
Jaco Greeff
10d0215e69
Allow Moment with BE/LE hex encoding ( #933 )
...
* Allow Moment with BE/LE hex encoding
* description clarification
2019-06-12 16:45:45 +12:00
Jaco Greeff
27c63b709f
Polkadot master specVersion bump ( #932 )
...
* Polkadot master specVersion bump
* EventRecord_0_76
2019-06-12 16:45:45 +12:00
Jaco Greeff and Amaury Martiny
022b938f00
Show section.method on storage read error ( #928 )
...
* Show section.method on storage read error
* Update packages/types/src/primitive/StorageKey.ts
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* Update StorageKey.ts
2019-06-12 16:45:45 +12:00
Jaco Greeff
f9318fe013
Codec Fallback on createType (along with pedantic) ( #929 )
...
* Codec Fallback on createType (along with pedantic)
* Updates for numbers (fix failing tests)
* Add isPedantic to linked
2019-06-12 16:45:45 +12:00
Jaco Greeff
0aefc24bc2
Move HeaderExtended type to api-derive ( #923 )
...
* Move HeaderExtended type to api-derive
* Really remove HeaderExt from Header this time around
2019-06-12 16:45:45 +12:00
Jaco Greeff
a487bda3bd
Set assert fix (with tests) ( #925 )
...
* Set assert fix (with tests)
* toNumber() -> function
2019-06-12 16:45:45 +12:00
Stefanie Doll
1bf40ceeab
Extrinsic bug with undefined value ( #914 )
...
* Extrinsic contructor to fix
* Switch from Unit8Array to U8a
* new line
* Move Unit8Array to end of decode function
* move unit8array up as default
* only create empty Unit8Array for undefined values
* default value for string
* remove empty ExtrinsicValue in decode function call
* Throw error instead of console.error
* Travis
2019-06-12 16:45:45 +12:00
Jaco Greeff
b5d5084b55
Add Codec toRawType ( #921 )
...
* Add Codec toType
* Revert i* & u* (toType, catered for in base)
* toType -> toRawType
2019-06-12 16:45:45 +12:00
Jaco Greeff
3b92be5284
Combine Enum & EnumType ( #922 )
...
* Extend EnumType with basic (convert use)
* Remove Enum, adjust EnumType tests with Enum version
* Remove aliasses
* test json finaised -> finalized
2019-06-12 16:45:45 +12:00
Amaury Martiny
2699dcfc9c
refactor: Metadata overhaul ( #913 )
...
* Replace part1
* Replace part2
* Replace part3
* Replace part5
* Replace part6
* Fix small bugs
* Fix double map toString
* Small fixes
* Update to v4
* Fix docs script
* Grumbles
* Alphabetical
* Reads better
* comment
* module to modul
2019-06-12 16:45:45 +12:00
Jaco Greeff
194077033a
codec/Set extends JS Set ( #917 )
2019-06-12 16:45:45 +12:00
Jaco Greeff
0e5906473b
Update api.derive to use api.queryMulti ( #911 )
...
* session api.queryMulti
* Make a single subscription to retrieve all session info
* Adjustments
* WIP
* Seems mostly comprehensive, need to full test e2e
* e2e tests for operations
* Allow "create from empty"
* skip
* Remove comment
* Remove ancient ?'s
* Update types.ts
2019-06-12 16:45:45 +12:00
Jaco Greeff
f070b637f7
Remove struct map naming overrides ( #918 )
2019-06-12 16:45:45 +12:00
Jaco Greeff
7c8ec1f7f5
Move additional types to primitive & rpc ( #916 )
2019-06-12 16:45:45 +12:00
Jaco Greeff
9f1499f435
Update Extrinsic Signature description ( #905 )
...
* Update Extrinsic Signature description
* Update ExtrinsicSignature.ts
2019-06-12 16:45:45 +12:00
Stefanie Doll
fca5fb7110
Added derive e2e tests and documentation ( #898 )
...
* export IExtrinsic
* Switch to localhos & enable tests in promise.spec
* Derive.accounts docs (copy from my other branch) + code examples
* Fixed existing accounts tests and added tests for all accounts.derive methods
* e2e tests and docs/ examples for balances.all and balances.fees
* Removed emty lines below jsdoc info
* tests & documentation dor derive.chain
* Addressed comments from former PR https://github.com/polkadot-js/api/pull/869
* Removed unused import
* obseralbe -> observable
* undo keith' commit
* use correct jsdocs syntax
* Re-enable skip
2019-06-12 16:45:45 +12:00
Jaco Greeff
2630f378a4
new EventRecord with topics ( #902 )
...
* new EventRecord with topics
* Add additional decoding checks (from #612 )
* Slightly rework storage parsing (future checks)
* Split storage result formatting (set vs data)
* Allow v3 event parsing
* Max Vector length check
* assert during Event parsing
* Well, HACK-y fallback
* Revert "Well, HACK-y fallback"
This reverts commit edbf61b99da2753bec3a535126660e71bdcd9861.
* Node overrides...
* Add implVersion
* Register types
* Update with polkadot as well
* inject compatibility types
* EventRecord77 in testing
* Conversion with DoubleMap
* E2E tested against v3 & v4
* Filter with some
* Split archive/remove alex tests
* beforeAll -> beforeEach
* Remove .only
* EventRecordV0 -> 77
2019-06-12 16:45:45 +12:00
Jaco Greeff
a0b1205258
Revert "Update extrinsics FromMetadata. Drop storages with doublemap type when converting v3 to v2 ( #888 )" ( #903 )
...
This reverts commit 97032e7e86 .
2019-06-12 16:45:45 +12:00
satellitex
fbbe7625b1
Add traits replace rules. for invalid cases ::<type> and <type>::. ( #885 )
...
* add replace rules
* fix replace grep
2019-06-12 16:45:45 +12:00
Jaco Greeff
b573531ebf
Metadata update for latest master ( #901 )
...
* Latest metadata, add EventIndex type
* Add parsed metadata
* Create empty DoubleMap type
2019-06-12 16:45:45 +12:00
Xiliang Chen
f55732af51
Start supporting double map ( #843 )
...
* double map fix
* update metadata to prevent error using double map
2019-06-12 16:45:45 +12:00
Alex Wang
5b6a6d4431
Update extrinsics FromMetadata. Drop storages with doublemap type when converting v3 to v2 ( #888 )
...
* update extrinsics fromMetadata
* drop storages with doublemap when convert v3 to v2
* update Event.injectMetadata
2019-06-12 16:45:45 +12:00
ian.he
4e6b533539
v0.78.103
2019-06-06 14:02:54 +12:00
ian.he
9fbf4bf478
v0.78.102
2019-06-06 12:50:29 +12:00
ian.he
14216a42a3
0.78.101
2019-06-05 10:04:08 +12:00
Jaco Greeff
63e08d8357
Fix ContractAbi assert name ( #951 )
2019-06-04 17:01:39 +12:00
ian.he
019f1f761f
rebase upstream and bump to 0.78.100
2019-05-27 15:46:59 +12:00
Amaury Martiny
e4cf97d71e
Linked map in v0 ( #886 )
2019-05-27 15:46:31 +12:00
Jaco Greeff
dcdbd2ca40
Fix bug in metadata conversion (return converted) ( #880 )
...
* Fix bug in metadata conversion (return converted)
* v2 -> v3
2019-05-27 15:46:31 +12:00
Jaco Greeff
13ae360c7a
assert type on all asXxx getters ( #879 )
...
* assert type on all asXxx getters
* Convert via built-in asVx
* Implicit index
* Re-add V0 (not dropped here, but dropped somewhere)
* MetadataDeprectated -> MetadataDeprecated
2019-05-27 15:46:31 +12:00
Amaury Martiny
6fc35d641a
Fix linked maps ( #878 )
...
* Fix linked maps
* Line breaks
2019-05-27 15:46:31 +12:00
Jaco Greeff
d79c0ea28d
Update to latest metadata (with ContractInfo) ( #874 )
...
* Update to latest metadata (with ContractInfo)
* isAlive/isTomstone
* typo
2019-05-27 15:46:30 +12:00
Jaco Greeff
486412d051
Fix struct keys, log additional decoding error info ( #872 )
...
* Re-create test cases for failures
* Fix cloberring of keys
* Add logging to pinpoint decoding failures
2019-05-27 15:46:30 +12:00
Jaco Greeff
f3f1807013
Bump dev (& fix indents) ( #870 )
...
* Bump dev (& fix indents)
* Bump common
2019-05-27 15:46:30 +12:00
Xiliang Chen
89ebae9d78
Update WithdrawReasons to match substrate ( #865 )
...
* Update WithdrawReasons to match substrate
* Linting, comment alignment
2019-05-27 15:46:30 +12:00
Jaco Greeff
071d872adf
USize -> U32 ( #839 )
...
- Possibly a fix for https://github.com/polkadot-js/api/issues/838
2019-05-27 15:46:30 +12:00
Jaco Greeff
9f5be747e7
Bump deps ( #861 )
...
* Bump deps
* Align with published common
* Fix rxjs to 6.4.0 (false deprecations on 6.5.1)
2019-05-27 15:46:30 +12:00
ian.he
75884d22a3
0.77.102
2019-05-27 15:46:29 +12:00
Alex Wang
ed2e44ac93
v0.77.101
2019-05-27 15:46:29 +12:00
Alex Wang
c88d284a5c
fix: storageNames in metadata v4 to support DoubleMap
...
Merged in polkadot_v77_1 (pull request #4 )
Approved-by: Ian He <ian-he@outlook.com >
2019-05-27 15:46:29 +12:00
ian.he
daaa16523d
v0.77.100
2019-05-27 15:46:27 +12:00
Travis CI
116714a8f9
upstream upgrade(v0.77.1)
...
release v0.77.100
2019-05-27 15:46:19 +12:00
Amaury Martiny
5c1f7fb527
Use custom hasher for Map ( #857 )
...
* Use blake2 instead of two_x
* Add v4
* Update to new v4 static
* Update json
* Revert
* Use hasher enum
* Fix metadata v4 test
* Fix metadata v4 test
* Fix versioned metadata
* refactor & clean
* Use consistent naming
* Make jsons consistent
* Add backward compat
* Fix tests
* Start working on type-storage
* Fix output
* Grumble
* Update to latest static
* Clean code
* Fix imports
* Remove useless imports
* Fix tests
* Use prettier output for toJSON in metadata
* Implement different hashers
* Remove generic storageKey
* Bump version
* Add backwards-compat
* Fix hashing function, use Twox128
* Grumbles
* Add tests
2019-05-27 15:46:19 +12:00
Stefanie Doll
8a69bc4458
Fix the md table formatting ( #855 )
...
* Last attempt
* Poke Travis
2019-05-27 15:46:18 +12:00
Stefanie Doll
a8dd059097
Type definitions formatting fix ( #851 )
...
* attempt to fix vuepress falsy markdown interpretation
* Linebreak fix
* Roll-back yarn.lock
2019-05-27 15:46:16 +12:00
Stefanie Doll
1204ac37f6
Add short description to all types on overview page ( #849 )
...
* Smaller typos/ wording
* Grammar An - A
* Add short description to each type on overview page WIP
* Removed 'Derived types' section because HeaderExtended was the only derived method left
* Commit current state
* Description completed
* Removed empty row placeholder
* Fixed Typo in LockPeriods
* Spell out Little Endian
* Fixed accidentaly removed space character
2019-05-27 15:46:09 +12:00
Jaco Greeff
b2f03e500e
Remove contract encoding debug (confirmed working) ( #836 )
...
* Remove contract encoding debug (confirmed working)
* Remove (now-unused) import
2019-05-27 15:46:09 +12:00