3961 Commits
Author SHA1 Message Date
Github Actions e64b5483ba [CI Skip] release/stable 2.2.1
skip-checks: true
v2.2.1
2020-10-12 14:11:29 +00:00
Jaco Greeff 6020ffcada 2.2 (#2713) 2020-10-12 16:01:52 +02:00
Jaco Greeff 1643ec7ddf Provide chain properties for contract registry (#2714) 2020-10-12 15:53:45 +02:00
Github Actions 76c206d60d [CI Skip] release/beta 2.1.2-23
skip-checks: true
2020-10-12 12:45:58 +00:00
Jaco Greeff 8a8b6f7ac8 s/contract/contracts/ on applyOnEvent (#2712)
* s/contract/contracts/ on applyOnEvent

* Expose result classes
2020-10-12 14:36:47 +02:00
Github Actions 3ba0b2e0d8 [CI Skip] release/beta 2.1.2-22
skip-checks: true
2020-10-12 11:31:50 +00: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
Github Actions fda1924577 [CI Skip] release/beta 2.1.2-21
skip-checks: true
2020-10-12 08:17:47 +00:00
Jaco Greeff 2b1438030b Add withResultTransform to Submittables (use in api-contracts) (#2707)
* Allow SubmittableResult transforms (use in contracts)

* withResultTransform
2020-10-12 10:07:45 +02:00
Github Actions d816859840 [CI Skip] release/beta 2.1.2-20
skip-checks: true
2020-10-11 16:59:36 +00: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
Github Actions 4cb563ba89 [CI Skip] release/beta 2.1.2-19
skip-checks: true
2020-10-11 11:58:01 +00: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
Github Actions c38afd4b5d [CI Skip] release/beta 2.1.2-18
skip-checks: true
2020-10-11 09:35:48 +00:00
Jaco Greeff 4b8634b88e Remove non-API specific contract call results (#2704) 2020-10-11 11:26:23 +02:00
Github Actions a1bab9edcf [CI Skip] release/beta 2.1.2-17
skip-checks: true
2020-10-11 07:46:26 +00: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
Github Actions 64e209783a [CI Skip] release/beta 2.1.2-16
skip-checks: true
2020-10-11 07:34:44 +00:00
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
Jaco Greeff 363654dfba Bump dev (#2690) 2020-10-07 13:25:18 +02: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
Jaco Greeff a28ce768bd Update examples link 2020-10-06 14:40:11 +02:00
Github Actions 5bf71c46dd [CI Skip] release/beta 2.1.2-2
skip-checks: true
2020-10-06 12:00:17 +00:00
Jaco Greeff 344af018f9 Remove docs (moving to docs repo) (#2685)
* Remove docs (moving to docs repo)

* Remove token
2020-10-06 13:50:20 +02: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