Keith Ingram
e1cb62d2d2
Type for contract call params ( #2452 )
2020-07-27 12:43:54 +02:00
Jaco Greeff
47fc4a2b3c
Bump deps w/ eslint ( #2302 )
...
* Bump deps w/ eslint
* Additional cleanups
* Additional
* @polkadot/types done
* Additional
* @polkadot/typegen done
* Additional
* @polkadot/rpc-core done
* Additional
* Additional
* Additional
* docs
* @polkadot/api-derive done
* @polkadot/api done
* @polkadot/api-contracts done
* Update tests
2020-05-24 09:24:45 +02:00
Jaco Greeff
a833dccdaf
All private prefixed with _ ( #2157 )
...
* All private prefixed with _
* Fix test
2020-04-11 22:21:55 +02:00
Jaco Greeff
5ab24390c5
Indicate all protected members and variables ( #2154 )
...
* Indicate all protected members and variables
* Added dropped protected
2020-04-10 14:29:58 +02:00
Jaco Greeff
58de0b8b9c
Rewrite yarn.lock ( #2127 )
2020-04-01 23:49:56 +02:00
Jaco Greeff
0dc46445bc
Bump dev (incl. lint fixes) ( #2126 )
...
* Bump dev (incl. lint fixes)
* Fix call encoding (stepped into that one)
* Event struct order
* Update with missing tuple type (getTypeDef type)
2020-04-01 22:44:34 +02:00
Jaco Greeff
b3a6b3dcb5
Bump dev, arrow functions ( #2077 )
2020-03-22 07:31:55 +01:00
Jaco Greeff
9d67d711d4
Bump deps, type import on generated ( #2075 )
...
* Bump deps, type import on generated
* type imports in types/types
* Re-export defs
* Split imports/exports
* Additional type import
* Remove import type
* Remove dupes
2020-03-21 09:40:59 +01:00
Jaco Greeff
4e756704ea
Some minor cleanups ( #1966 )
...
* Some minor cleanups
* Small additions
* Cleanup ExtrinsicEra decoding
* Minor adjustments
* Remove support for metadata v0 parsing
* Adjust refCountDelay
* refCountDelay comments
* Adjust Metadata tests
* Metadata default creation
* Funky lines
* Cleanup as AccountIdAndIndex
* Some derive returns
* Try and cleanup info extraction
2020-02-27 15:01:20 +01:00
Jaco Greeff
8598002801
Swap to registry.createType ( #1947 )
2020-02-26 11:17:11 +01:00
Jaco Greeff
8672a2e30e
Move length to TypeDef (regularly used), IdentityFields to interface ( #1913 )
...
* Move length to TypeDef (regularly used), IdentityFields to interface
* Update api-contracts tests
2020-02-21 12:12:18 +01:00
Jaco Greeff
921e55a82e
Move types/codec/create -> types/create ( #1871 )
...
* Move types/codec/create -> types/create
* Update imports after move
* Cleanups
* Cleanup code circular deps
* Re-add dropped interfaces
* Drop duplicated code
* Fix imports
* Remove whacky comment
2020-02-16 13:51:37 +01:00
Jaco Greeff
6e535b0502
Don't make types depend on api (dev deps) ( #1869 )
...
* Don't make types depend on api (dev deps)
* Naming cleanups
* Remove skipped tests
* Splt types/types into chunks
* Re-add setChainProperties (properties?: ChainProperties): void;
2020-02-16 13:13:56 +01:00
Jaco Greeff
8e5b43bf62
Add isInBlock, isRetracted (...) to status enum ( #1852 )
2020-02-14 15:40:56 +01:00
Jaco Greeff
5e0c0ba91a
Align jsonrpc augmentation with others ( #1796 )
2020-02-02 20:16:41 +01:00
Jaco Greeff
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12:49 +01:00
satellitex
53959d482d
Add BTreeSet<V> Codec ( #1639 )
...
* add BTreeSet Codec
* Add following BTreeMap
* fix linting
* fix linting
* add validate Types and encode Types
* type def info is incremented.
* fix compareSet
2019-12-18 16:22:54 +01:00
Keith Ingram
47f1350652
Additional rpcContractCall guard ( #1677 )
...
* additional rpc guard
* isFunction
* isFunction
2019-12-17 17:21:19 +01:00
Jaco Greeff
0d2896630d
Replace Data/U8a with un-aliassed Raw ( #1656 )
...
* Replace Data with un-aliassed U8a
* Export U8a
* Explicitly add U8a to the registry
* U8a -> Raw
2019-12-09 15:38:07 +01:00
Jaco Greeff
01a4d6b4a9
Remove RPC data toU8a ( #1643 )
2019-12-05 19:49:50 +01:00
Jaco Greeff
4cb8462d50
Cleanup ABI encodeType, fix test compare ( #1616 )
2019-11-28 12:42:49 +01:00
Jaco Greeff and Amaury Martiny
011e24bd49
Pass registry to all codec types ( #1592 )
...
* Pass registry to all codec types
* Pass through registry inside API (where the rubber meets the road)
* Small additions
* Derive w/ registry
* Types are more-or-less covered
* Some test adjustments (guided by linting)
* Rid the world of some ../injector
* Additional cleanups, merge injector into registry
* Cleanup extrinsics (always passing registry)
* Remove injector imports (not all replaced)
* Typ spec cleanups
* Phase 1 - types seem lint-free
* rpc-{core,provider} lint free
* Start working through metadata
* Small metadata additions
* Some e2e tests (out-of-order)
* Down to a handful
* Fixup tests for packages/types/src/codec/*.spec.ts
* packages/types/src/codec passes all tests
* packages/types ok (Convert storage with registry fn)
* progress (sort out injection, dreaded find-before msg)
* Down to 1 lint issue...
* Linting done... along with on-demand import
* Exposed ordering
* Remove global injects
* Cleanup comments
* Add CHANGELOG & UPGRADING
* Apply suggestions from code review
Co-Authored-By: Amaury Martiny <amaury.martiny@protonmail.com >
* Update Metadata description
2019-11-21 16:32:39 +01:00
Keith Ingram
479c742471
Error in ABI message assertion ( #1552 )
...
* combine values
* undefined name
2019-11-07 10:47:56 +01:00
Jaco Greeff
c077d0f2e7
Bump deps ( #1550 )
...
* Bump deps
* Updates
2019-11-06 22:56:52 +01:00
Keith Ingram
6075a21efb
Handle AccountId contract params ( #1547 )
...
* combine values
* handle accountids
* cleanup
* cleanup
* force ci
2019-11-05 19:58:30 +01:00
Keith Ingram
cba5710fec
Return Codec from contracts.call ( #1545 )
...
* combine values
* Contracts with Data return
* Data toU8a()
* return data from contracts.call
* create Data
* cleanup
2019-11-05 12:56:49 +01:00
Jaco Greeff
287ceb2ded
Contracts with Data return ( #1540 )
...
* Contracts with Data return
* Data toU8a()
2019-11-03 17:15:21 +01:00
Keith Ingram
cf01c41b33
Contract API for Rx/promises ( #1520 )
...
* wip with rxjs/promise
* add outcome process
* contract call decoding solved
* restore messages as dict, cleanup
* linting
* linting
* type fixes
2019-10-31 19:47:14 +02:00
Jaco Greeff
6e96fd6a55
ABI selector updates ( #1517 )
2019-10-26 13:17:36 +03:00
Jaco Greeff
aed4b3ee6a
Cleanup contracts type registry ( #1497 )
...
* Cleanup contracts type registry
* Remove some ! compiler overrides
* More mappy lookups
* Empty check
2019-10-21 16:18:41 +02:00
kwingram25
b911bdbd2d
Add dynamic Vec ABI support ( #1499 )
2019-10-20 11:57:19 +02:00
Jaco Greeff
21ac0ac2fb
Add TypeDefInfo handling for BTreeMap ( #1481 )
...
* Add TypeDefInfo handling for BTreeMap
* Update getTypeClass.ts
* Fixup BTreeMap result (will be active once class support is merged)
* Merge master, update with BTreeMap classes
2019-10-14 11:42:31 +02:00
Travis CI
2e9192ca02
[CI Skip] 0.95.0-beta.2
2019-10-08 14:51:58 +00:00
kwingram25
05ec4964fe
Generate types from new contract ABI JSON ( #1320 )
...
* generate types from registry
* cleanup
* merge, rearrange
* lint
* built out
* abi v2 creation
* throw on unions
* linting
* version handling
* split functions
* cleanup
* drop v1 support
* special types
* changes
* requested changes
* formatTYpe
* rv outdated test
* rv union test
* codeclimate
* codeclimate
* codeclimate
* codeclimate
* codeclimate
* review
* cleanup encodeTypes
* fix option sub
* TypeDefInfo.Result
2019-10-08 16:31:48 +02:00
Jaco Greeff
d905b4fef3
Split Submittable into actual classes ( #1350 )
...
* Split Submittable into actual classes
* *sigh* Fix VSCode's "helpful" imports
* Rename option creation functions
* Extrinsic already has version embedded
* V3
2019-08-29 22:33:57 +02:00
Jaco Greeff
9b1aa6aece
Bump dev ( #1344 )
2019-08-27 13:20:29 +02:00
Jaco Greeff
9954477de3
Some small complexity/readability improvements ( #1309 )
...
* Some small complexity/readability improvements
* Bump allowed returns to 5
* Revert override (as limiting as it seems)
2019-08-14 20:25:20 +02:00
Stefanie Doll
7a08b37ec3
Fix & convert e2e tests ( #1167 )
...
* split off rx-query tests
* Split off promise-rx tests
* use funded bob_stash for alex
* Fixed transfer e2e tests pt. 1
* wip era tx
* split derive promises
* delete outdated e2e metadata tests
* add randomAsHex test files
* WIP
* tslint
* add index file to e2e util
* rx-tx tests
* eslint types
* linting
* contract ? storage tests
* promise-contract tests
* fix lint errors after merge
* re-implement lost merge changes
* Only support recent ink versions
* child-storage tests
* Add e2e tests for storage input type
* All tests passing for rpc-core
* linting
* wrong file path
* remove old contract files & change folder name
* added larger random as hex files
2019-07-31 16:47:12 +02:00
Jaco Greeff
02cd1331aa
Move Event, Address, AccountId, AccountIndex to generic ( #1202 )
...
* Move Event, Address, AccountId, AccountIndex to generic
* Move AccountId, AccountIndex, Address & Event to generic
* Move Vote
2019-07-26 16:39:28 +02:00
Jaco Greeff
2a37b8746d
Rename srml to interfaces ( #1198 )
...
* Rename srml to interfaces
* newline, package.json
2019-07-26 12:08:17 +02:00
Jaco Greeff
39323a8896
Convert all type/* (and some primitives) to srml/* ( #1189 )
...
* Convert (almost-all) non-primitives (and some primitives) to srml/*
* Move Vote to primitives, remove type folder
* Move Balance :-o
* Fixup tests, override Balance.toRaw()
2019-07-25 16:34:47 +02:00
Jaco Greeff
729db495a8
Cleanup/fix ABI arg consistency ( #1126 )
2019-07-14 18:24:42 +02:00
Jaco Greeff
71c5920b1f
eslint rules ( #1099 )
...
* Off to the races - 3760 problems (1794 errors, 1966 warnings)
* Convert Array<T> -> T[] (not all correct, eg. extends)
* () => { -> (): void => {
* get is/as -> public get is/as
* public for getters, constructors & base Codec
* Some cleanups from previous overzealous search & replace
* Under 2k, 1874 problems (649 errors, 1225 warnings)
* ^^^ check that commit for details ;)
* Minor.
* rm config header
* Minor cleanups
* Default to tslint, eslint as option
* Trigger
* Update jsonrpc
* 1494 problems (433 errors, 1061 warnings)
* 1103 problems (135 errors, 968 warnings)
* 899 problems (9 errors, 890 warnings)
* 483 problems (9 errors, 474 warnings) (ignore any... for now)
* 366 problems (9 errors, 357 warnings)
* 336 problems (9 errors, 327 warnings)
* 148 problems (9 errors, 139 warnings)
* 31 problems (8 errors, 23 warnings)
* 0, 0
2019-07-14 12:15:14 +02:00
Jaco Greeff
f30c516099
More ergonomic contracts interfaces (RxJs only initial) ( #1015 )
...
* More ergnomic contracts interfaces
* extend SubmittableResult
* Allow creation of contract from blueprint
* "decorate" Contract (just playing with interfaces)
* Make actual messages calls
* Rename to Rx{Blueprint, Cond, Contract}
* Add exports
* Support contract & contracts endpoints
* Remove unneeded ApiType generics (may return)
* Comment 2.x/1.x detection
2019-06-21 16:48:00 +02:00
Jaco Greeff
d4c408d28b
Explicity contract encoding tests (non e2e) ( #1040 )
2019-06-20 14:06:10 +02:00
Jaco Greeff
4cba24c134
Create api-contract (baseline for useful interactions) ( #1007 )
...
* Create api-contract (baseline for useful interactions)
* Add CHANGELOG entry (breaking)
2019-06-14 13:48:53 +02:00
Jaco Greeff
7bdf0fbbe5
Revert "Move contracts into api-contract"
...
This reverts commit af0e8cf07a .
2019-06-14 09:06:57 +02:00
Jaco Greeff
af0e8cf07a
Move contracts into api-contract
2019-06-14 09:05:21 +02:00