Commit Graph
3659 Commits
Author SHA1 Message Date
Jaco Greeff 43791bcc71 Fix c-like enums type encoding (#2703)
* Fix c-like enums type encoding

* Update packages/api-contract/src/ContractRegistry.ts

* Update packages/types/src/codec/utils/encodeTypes.ts
2020-10-11 09:25:44 +02:00
Github Actions 5b42bc9a22 [CI Skip] release/beta 2.1.2-15
skip-checks: true
2020-10-10 12:34:29 +00:00
Jaco Greeff b65b2d7720 Adjust exec with SubmittableExtrinsic (#2701)
* Adjust exec with SubmittableExtrinsic

* inputData
2020-10-10 14:25:31 +02:00
Github Actions 6f99f0fc26 [CI Skip] release/beta 2.1.2-14
skip-checks: true
2020-10-10 11:04:32 +00:00
Jaco Greeff c6f4e64c1a Update ContractInfo struct (#2700) 2020-10-10 12:55:03 +02:00
Github Actions d963cdf5ae [CI Skip] release/beta 2.1.2-13
skip-checks: true
2020-10-09 16:43:26 +00:00
Jaco GreeffandAndrew 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
Github Actions 89e0548092 [CI Skip] release/beta 2.1.2-12
skip-checks: true
2020-10-09 14:48:20 +00:00
cd5a5da45c Definition ordering (#2699)
* 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

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
Co-authored-by: Andrew Jones <ascjones@gmail.com>
2020-10-09 16:40:24 +02:00
Github Actions d7dc36c65b [CI Skip] release/beta 2.1.2-11
skip-checks: true
2020-10-09 14:16:27 +00:00
87985f1f1f Types for ink! 3.0 (#2693)
* 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

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
Co-authored-by: Andrew Jones <ascjones@gmail.com>
2020-10-09 16:07:08 +02:00
Github Actions e53c229ac5 [CI Skip] release/beta 2.1.2-10
skip-checks: true
2020-10-09 13:23:38 +00:00
Jaco Greeff 6a0063addd Flatten displayType & encodeType into encodeTypeDef (#2698)
* Flatten displayType & encodeType into encodeTypeDef

* Remove to-be-replaced MetaRegistry tests (hardcoded results)
2020-10-09 15:13:52 +02:00
Github Actions 3b1845f0a0 [CI Skip] release/beta 2.1.2-9
skip-checks: true
2020-10-09 11:27:49 +00:00
Jaco Greeff 10880cf038 Update Scheduler (#2696) 2020-10-09 13:19:09 +02:00
Github Actions 289782b3a0 [CI Skip] release/beta 2.1.2-8
skip-checks: true
2020-10-08 16:00:31 +00:00
Jaco Greeff c3b7302dce Support new contracts Schedule (#2582) 2020-10-08 17:51:47 +02:00
Github Actions a5800b196c [CI Skip] release/beta 2.1.2-7
skip-checks: true
2020-10-08 11:49:41 +00:00
Jaco Greeff 28da228479 Handle Struct decoding from snake_case (#2694)
* Handle Struct decoding from snake_case

* Update packages/types/src/codec/Struct.spec.ts
2020-10-08 13:40:31 +02:00
Github Actions adf3d15c86 [CI Skip] release/beta 2.1.2-6
skip-checks: true
2020-10-08 11:36:50 +00:00
Jaco Greeff 8b54a22914 Introduce OriginCaller (& apply to Scheduler) (#2692)
* Introduce OriginCaller (& apply to Scheduler)

* RawOrigin

* Create OriginCaller type dynamically

* Update packages/metadata/src/Metadata/v12/toLatest.ts
2020-10-08 13:27:50 +02:00
Github Actions 2faf68c4d2 [CI Skip] release/beta 2.1.2-5
skip-checks: true
2020-10-07 11:35:18 +00:00
Github Actions 5c481d47bb [CI Skip] release/beta 2.1.2-4
skip-checks: true
2020-10-07 06:31:03 +00:00
Jaco Greeff ce00d167ee Update README.md (#2688) 2020-10-07 08:21:36 +02:00
Github Actions fa1be60880 [CI Skip] release/beta 2.1.2-3
skip-checks: true
2020-10-06 12:50:16 +00:00
Github Actions 5bf71c46dd [CI Skip] release/beta 2.1.2-2
skip-checks: true
2020-10-06 12:00:17 +00:00
Github Actions 8de85c3a6b [CI Skip] release/beta 2.1.2-1
skip-checks: true
2020-10-06 09:26:04 +00:00
Jaco Greeff 014fa123b9 Cleanup metadata doc generation (#2684)
* Cleanup metadata doc generation

* Remove tmp
2020-10-06 11:16:43 +02:00
Github Actions 6bb43d4cfa [CI Skip] release/beta 2.1.2-0
skip-checks: true
2020-10-05 11:04:20 +00:00
Jaco Greeff acb565d46e Allow null input on Text values (#2682)
* Allow `null` input on `Text` values

* Update test

* Add to decode section

* Revert result
2020-10-05 12:54:04 +02:00
Github Actions e3a57e14bc [CI Skip] release/stable 2.1.1
skip-checks: true
2020-10-05 08:35:08 +00:00
Jaco Greeff cc926596e5 2.1 (#2681) 2020-10-05 10:24:25 +02:00
Github Actions 5193e9c6d5 [CI Skip] release/beta 2.1.0-beta.9
skip-checks: true
2020-10-04 17:53:29 +00:00
Jaco Greeff d3703c072b Revert additional catch (#2679)
* Revert additional catch

* Cleanup immediate/timeout checks
2020-10-04 19:43:15 +02:00
Github Actions 4dbcf310f3 [CI Skip] release/beta 2.1.0-beta.8
skip-checks: true
2020-10-04 13:39:32 +00:00
Github Actions 7027e9f982 [CI Skip] release/beta 2.1.0-beta.7
skip-checks: true
2020-10-04 09:15:39 +00:00
Jaco Greeff d13e58fb32 Bubble processing errors (#2677) 2020-10-04 11:07:07 +02:00
Github Actions 8f8e6d542f [CI Skip] release/beta 2.1.0-beta.6
skip-checks: true
2020-10-04 08:35:28 +00:00
Jaco Greeff 95c4f03bc3 s/TRANSACTION_/EXTRINSIC_/ (#2676)
* s/TRANSACTION_/EXTRINSIC_/

* Bump deps
2020-10-04 10:26:14 +02:00
Github Actions 45bba3a897 [CI Skip] release/beta 2.1.0-beta.5
skip-checks: true
2020-10-02 12:36:02 +00:00
Jaco Greeff d202287889 Remove all class summary links (#2674) 2020-10-02 14:27:08 +02:00
Github Actions 0c338dfbce [CI Skip] release/beta 2.1.0-beta.4
skip-checks: true
2020-10-02 11:57:43 +00:00
Jaco Greeff 33c161f874 Derive validators from stashes & nominations (#2672) 2020-10-02 13:48:25 +02:00
Github Actions 34d951d63e [CI Skip] release/beta 2.1.0-beta.3
skip-checks: true
2020-10-02 11:46:18 +00:00
Jaco Greeff 27c58b930b Reformat RPC errors (with less trimming) (#2668)
* Reformat RPC errors (with less trimming)

* Adjust decoding
2020-10-02 13:38:48 +02:00
Github Actions 6d2f2affe8 [CI Skip] release/beta 2.1.0-beta.2
skip-checks: true
2020-10-02 11:34:48 +00:00
Github Actions 19bf1a1b59 [CI Skip] release/beta 2.1.0-beta.1
skip-checks: true
2020-10-02 11:20:05 +00:00
Jaco Greeff 5577723b73 Add limit protection for Bytes & Text (#2670)
* Add limit protection for Bytes & Text

* Limites as K

* Adjust limits upwards
2020-10-02 13:11:25 +02:00
Github Actions ba5f9d1d01 [CI Skip] release/beta 2.1.0-beta.0
skip-checks: true
2020-09-30 06:35:05 +00:00
Github Actions 98c8240457 [CI Skip] release/stable 2.0.1
skip-checks: true
2020-09-28 07:05:01 +00:00