Jaco
a80df7d846
Swap CodecArg usage to unknown ( #3845 )
...
* Swap CodecArg usage to unknown
* Adjust Constructor defintion
2021-08-05 12:27:51 +02:00
Jaco
d62bfc55ac
Adjust scale-info types (updated v14, contracts rename) ( #3776 )
...
* Adjust scale-info types (updated v14, contracts rename)
* Adjust v14 metadata
* PortableRegistry -> lookup
* Rewrite json
2021-07-16 13:57:44 +02:00
Jaco
2b1d5664fe
Adjust contract registry ( #3689 )
2021-06-23 14:49:51 +02:00
Jaco
92bde9de6f
Adjust ABI registry ( #3516 )
...
* Adjust ABI registry
* Remove V2 support
* instantiateWithCode mock
2021-05-11 10:58:20 +02:00
Jaco
206fb49df5
Cater for Abi type offsets in 1+ ( #3514 )
...
* Cater for Abi type offsets in 1+
* Update packages/api-contract/src/MetaRegistry.ts
2021-05-11 10:01:27 +02:00
Jaco
b1353edc84
Expose additional camelCase method on AbiMessage (maps to decorated name) ( #3466 )
2021-05-01 08:31:16 +02:00
Jaco
557283a3d1
Struct decoding error messaging ( #3425 )
...
* Struct decoding error messaging
* Error adjust
* Tests
* Bump common, use stringify
* Linting
* Adjust
* Bumps
* Rebump
* Assert cleanups
* Don't modify original value on encoding
* util bump, fixe compact encoding
2021-04-22 15:02:54 +02:00
Jaco Greeff
a9c9fb5769
2021 ( #3015 )
2021-01-03 11:26:46 +01:00
Jaco Greeff
8e6a1c8fb1
Bump dev (sort imports) ( #2923 )
...
* Bump dev (sort imports)
* Resort
* Adjust ApiInterfaceRx
2020-12-07 16:26:19 +01:00
Jaco Greeff
0e52e8fe23
Some type imports (interfaces) ( #2887 )
...
* Some type imports (interfaces)
* Additional
* Additional
* Small movements/fixes
* Additional
* Additional
* Unsaved...
2020-12-02 10:12:19 +01:00
Jaco Greeff
d3b13bceb0
Allow salt in contract deploy ( #2849 )
...
* Allow salt in contract deploy
* Mark deprecated
* Shorten
* Cleanups
* Additional cleanups
* Cleanups
* Explicit Bytes to decodeEvent
* Adjust method creation
* Allow null salt
2020-11-16 07:35:02 +01:00
Jaco Greeff
21d0622f84
Bump common ( #2832 )
...
* Bump common
* Update for new common non-default exports
* Don't export createSubmittable
* Adjust exports
* default export adjustments
* Some additional non-default exports
2020-11-09 19:41:29 +01:00
Jaco Greeff
1f6c8c2eb8
Use assertReturn to cleanup ( #2804 )
...
* Use assertReturn to cleanup
* Remove Uint/Int duplication
* Adjust
* ws errors, part 2
* .
* Adj. manual
* adj
* switchMap
* Revert "switchMap"
This reverts commit edfa4a2258f09042b61a27fd3812f0c53039fe4f.
* Revert.
* Revert.
* protected constructor
* Correct isHexJson flag
* Remove isHexJson (always detect)
* Adjust
* Flags
2020-10-29 17:17:22 +01:00
Jaco Greeff
ea3ee428d8
Rework asLatest update ( #2802 )
...
* Revert "[CI Skip] release/beta 2.4.2-10"
This reverts commit 5cb1c2d33a .
* Revert "Use asLatest in metadata extraction (#2800 )"
This reverts commit 600666de1c .
* Bumps
* Expansion
* Flatten
* Metadata class imports
* Cleanup Decorate exports
* Move Metadata to top-level
* Swap logger on ABI
* Adjust imports
* Cleanups
* Updates
2020-10-29 11:59:37 +01:00
Jaco Greeff
1476e5e5e9
Bump common, string* with String ( #2799 )
...
* Bump common, string* with String
* Linting, TS 4.0.5
2020-10-28 14:28:49 +01:00
Jaco Greeff
bb63de1653
Add to/fromU8a on contract events and messages ( #2778 )
...
* Add to/fromU8a on contract events and messages
* Add constructor decoding
2020-10-26 08:14:51 +01:00
Jaco Greeff
c9c872c736
Expand metadata typeDefs for contracts ( #2767 )
...
* Expand metada typeDefs for contracts
* Adjust with actual displayName
2020-10-23 00:17:41 +02:00
Jaco Greeff
45a895b64f
Decode contract events ( #2763 )
...
* Decode contract events
* Untable marker
2020-10-22 15:01:09 +02:00
Jaco Greeff
0525feb6f2
Match contract ids on camelCase (in addition to original) ( #2747 )
2020-10-19 20:15:19 +02:00
Jaco Greeff
c4662e6fd8
Adjust types based on use ( #2742 )
...
* Adjust types based on use
* MetaRegistry
* Remove FIXME
* Split path extraction
* casing
* Rewrite
* Rewrite interfaces
* Remove unused vuepress
2020-10-17 17:34:45 +02:00
Jaco Greeff
b1a8c011f4
Cleanup with meta registry ( #2741 )
...
* Cleanup with meta registry
* Update packages/api-contract/src/MetaRegistry.ts
* Allow for Str type
* No .only
* Cleanups
* Registry references
* Cleanups, real registry
* Ordering
* Future-proof
2020-10-17 14:54:50 +02:00
Jaco Greeff
75f86bb43e
Combine contract type get/init ( #2718 )
2020-10-13 10:44:50 +02:00
Jaco Greeff
1643ec7ddf
Provide chain properties for contract registry ( #2714 )
2020-10-12 15:53:45 +02:00
Jaco Greeff
1101826a05
Rename contract helpers ( #2708 )
...
* Rename contract helpers
* Allow Buffer input for code
* Parse json strings
* Revert #typeDefs
* Allow lookup on name
* constsitent string ids
* Read only via address
* Move .json
* Extract findMessage
* Naming
2020-10-12 13:21:52 +02:00
Jaco Greeff
af0b4362c9
Expose instantiate on contract Blueprint ( #2706 )
...
* Expose instantiate on contract Blueprint
* Allow BigInt & string types
* CodecArg
* Selector
* Cleanup selectors
* Remove Bytes override
2020-10-11 18:51:21 +02:00
Jaco Greeff
c098036ca5
ContractRegistry always has own registry instance ( #2705 )
...
* ContractRegistry always has own registry instance
* Hacky Bytes notation
* Revert Bytes (for now, keep it simple)
* Apply suggestions from code review
* Expand on found error
2020-10-11 13:49:41 +02:00
503286f7aa
Update ink type spec for 3.0-rc1 ( #2702 )
...
* Updated ABI definitions & parsing
* Run type generation
* Definitions (should be ok-ish)
* Cleanup names
* Allow aliasses on structs (JSON parsing)
* Cleanup json mapping passing
* s/types/lookup/
* Parsing as per current output
* InkSelector
* MtRegistryIndex
* String lookup tests
* Remove serd ovverride comments (it works as-is)
* inkRegistry tests
* Extract primitive types
* s/ty/id/
* Start of parsing into types (actually to be TypeDef)
* Parsing
* stringify struct fields
* Small cleanups
* Add type index to project lookup
* Prefix with index
* Fix interface generation
* Latest contract metadata (#2118 )
* Add new (provisional) incrementer contract metadata
* Update and regenerate type definitions
* WIP: generate new format scale-info types
* WIP: implementing variants
* Implement variants
* Fix up type resolution
* Fix registry spec tests
* Fix lints and some tests
* Fix inkTypes tests
* Fix some lints
* Make imports same line like original
* Comment out (temporarily) sanitize import to make CI pass
* Sanitize
* Remove indices
* Remove index
* api-contract rewrite
* lint
* cleanup
* latest
* latest
* fix definition
* fiz definitions
* rv ink storage
* Update packages/api-contract/src/base/Contract.ts
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
* fixes
* rv scripts
* restore api-contract
* reorder definitions, fix ink storage
* fixes
* def order
* fixes
* encodeTypeDef asRaw
* update ink typ spec
* latest built contracts
* compare files
* Apply suggestions from code review
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
Co-authored-by: Andrew Jones <ascjones@gmail.com >
2020-10-11 09:37:39 +02:00
Jaco Greeff and Andrew Jones
453dd9e49a
Updated ABI definitions & parsing ( #1662 )
...
* Updated ABI definitions & parsing
* Run type generation
* Definitions (should be ok-ish)
* Cleanup names
* Allow aliasses on structs (JSON parsing)
* Cleanup json mapping passing
* s/types/lookup/
* Parsing as per current output
* InkSelector
* MtRegistryIndex
* String lookup tests
* Remove serd ovverride comments (it works as-is)
* inkRegistry tests
* Extract primitive types
* s/ty/id/
* Start of parsing into types (actually to be TypeDef)
* Parsing
* stringify struct fields
* Small cleanups
* Add type index to project lookup
* Prefix with index
* Fix interface generation
* Latest contract metadata (#2118 )
* Add new (provisional) incrementer contract metadata
* Update and regenerate type definitions
* WIP: generate new format scale-info types
* WIP: implementing variants
* Implement variants
* Fix up type resolution
* Fix registry spec tests
* Fix lints and some tests
* Fix inkTypes tests
* Fix some lints
* Make imports same line like original
* Comment out (temporarily) sanitize import to make CI pass
* Sanitize
* Remove indices
* Remove index
* Adjust ContractAbi interface (empty rpc)
* linting
* Pull in Andrew's changes
* Cleanups
* Some more cleanups
* Update with v3 contracts
* Adjust with actual types
* Regenerate
* Update ABI parsing (#2695 )
* Adjust ABI code
* Cleanup
* Merge non-code
* Type naming
* Simplify Base
* Rename 1
* rename 2
* Rename 3
* Simplify
* Add index to AbiMessage
* Pass actual message or index for call
* Rename param
* Simplify
* Expose call & exec
* s/call/read/
* Cleanup asserts
* AccountId as per spec
* displayName is path
* Update definitions
* Flatten ABIType into TypeDef
* Rewrite
* Fix tests
* Updates
Co-authored-by: Andrew Jones <ascjones@gmail.com >
2020-10-09 18:33:31 +02:00
Jaco Greeff
cdd6544e20
SPDX ( #2619 )
2020-09-17 16:31:06 +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
b7eeb992cd
Bump deps ( #1699 )
2020-01-06 14:12: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
Jaco Greeff
c077d0f2e7
Bump deps ( #1550 )
...
* Bump deps
* Updates
2019-11-06 22:56:52 +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
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
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
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