Jaco Greeff
0871e074c7
RegistryMetadata exposes version ( #2860 )
2020-11-18 14:54:10 +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
ce6c25e4e2
Tests & adjustments for encodeTypes ( #2853 )
...
* Tests & adjustments for encodeTypes
* explicit wrap types
* Remove params
* cleanups
2020-11-16 06:40:49 +01:00
Jaco Greeff
4e0d430504
Adjust generated @polkadot/types imports ( #2848 )
...
* Adjust generated @polkadot/types imports
* import type
* Only export types from codec/types
2020-11-13 10:46:16 +01:00
Jaco Greeff
4db33b6caf
Configurable extrinsic signature ( #2845 )
...
* Configurable extrinsic signature
* With Address override as well
2020-11-12 19:31:55 +01:00
Jaco Greeff
98b01a462d
Mark Polkadot 26 upgrade ( #2843 )
2020-11-12 16:33:26 +01:00
Jaco Greeff
f810e65ea2
Additional enum tests ( #2842 )
...
* Additional enum tests
* Adjust compare files
* Remove debug log
2020-11-12 14:45:32 +01:00
Jaco Greeff
98a2ef9d72
Support ABI files with wasm (.contract output) ( #2841 )
...
* Support ABI files with wasm (.contract output)
* AbiBase exports
* Additional default exports
* Remove any
* Fix build
2020-11-12 12:23:28 +01:00
Jaco Greeff
79e99fd6e3
Dev bump ( #2839 )
...
* Adjust internal generic imports
* Update dev
* Adjust primitive imports
* Class exports has uppercase variant
* common
* to* chenges
* Adjust EventData for registry creation
2020-11-11 12:58:35 +01:00
Jaco Greeff
d91460b79d
New contracts Schedule types ( #2792 )
2020-11-11 11:32:04 +01:00
Jaco Greeff
5a1fd4a1bb
Adjust internal generic imports ( #2838 )
2020-11-11 09:40:35 +01:00
Jaco Greeff
a8a956c85d
Re-enable esnext (with mjs) ( #2836 )
...
* Re-enable esnext (with mjs)
* Updates
* Adjust
2020-11-10 13:58:11 +01:00
Jaco Greeff
af9437f80a
Adjust create imports ( #2834 )
...
* Adjust create imports
* Restore create root exports
* Adjust unsafe creation
2020-11-10 11:14:38 +01:00
Jaco Greeff
e6dbbfae34
Adjust interfaces for cleaner esnext usage ( #2833 )
...
* Adjust interfaces for cleaner esnext usage
* Swap out esnext
2020-11-09 23:17:52 +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
94a4594d32
Cleanup assignments ( #2811 )
...
* Cleanup assignments
* Small adjustments
* Cleanup AnyJson results
* Event toHuman
2020-10-31 12:50:44 +01:00
Jaco Greeff
e855d5a9d4
Cater for new/old contracts_call results ( #2810 )
...
* Cater for new/old contracts_call results
* Update packages/types/src/interfaces/contracts/definitions.ts
* Allow RPC layer to output JSON
* Typing for json outputs
* Convert results
* RPC compat mapping
* Ensure RPC .json is exposed
* Remove compat layer
* Old error detection
* Map to unknown
* Update packages/rpc-core/src/index.ts
* linting
2020-10-31 11:18:58 +01:00
Jaco Greeff
161c121cb2
Cleanups for maintainability ( #2809 )
...
* Cleanups for maintainability
* Split referendumsInfo
* Extract didUpdate -> bool
* Era filtering
* Default to council
* Points cache
* Remove cache
* Move map arg
2020-10-30 14:28:38 +01:00
Jaco Greeff
5c69f78676
Expand Call errors with actual callIndex info ( #2806 )
...
* Expand Call errors with actutl callIndex info
* Update test expectation
* casing
2020-10-30 10:17:19 +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
94ebb321f1
Complexity adjustments ( #2803 )
...
* Complexity adjustments
* cleanups
* Small cleanups
* Additional
* revert era
* ExtrinsicEra
2020-10-29 14:20:10 +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
600666de1c
Use asLatest in metadata extraction ( #2800 )
...
* User asLatest in metadata extraction
* Cleanup Decorated, bump
* linting
* cleanup decorate
* Remove registry arg from Decorated
2020-10-29 09:05:53 +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
9debb854f9
syncState RPCs ( #2797 )
...
* syncState RPCs
* Use endpoint override as available
* Allow Json construction, update syncstate_get def
2020-10-28 13:26:37 +01:00
Jaco Greeff
cc9ea53e1a
Registry hash returns H256 object ( #2791 )
...
* Use logger in error/warning messages
* Update packages/types/src/codec/BTreeSet.ts
* Update expectation
* Some additional type tests
* resgirty.hash returns H256
* Additional override test
2020-10-27 13:47:18 +01:00
Jaco Greeff
bb7b94dc35
Use logger in error/warning messages ( #2790 )
...
* Use logger in error/warning messages
* Update packages/types/src/codec/BTreeSet.ts
* Update expectation
* Some additional type tests
2020-10-27 13:14:03 +01:00
Jaco Greeff
14026fef42
Format similar types transparently ( #2788 )
...
* Format similar types transparently
* Adjust test expectations
* Remove console.error
* Adjust getTypeDef for check-only
2020-10-27 12:23:18 +01:00
Github Actions
9ead2bdc41
[CI Skip] release/beta 2.3.2-13
...
skip-checks: true
2020-10-24 08:01:51 +00:00
Jaco Greeff
1ae37ed2d3
Add initial MultiAddress impl. ( #2776 )
...
* Add intitial MultiAddress impl.
* Allow invalid ss58 to be handled upstream
2020-10-24 09:52:36 +02:00
Github Actions
1abc519297
[CI Skip] release/beta 2.3.2-2
...
skip-checks: true
2020-10-20 14:12:49 +00:00
Sean Young
b939bcd57d
Solang requires u256 and i256 types ( #2752 )
...
Tested with latest solang (current master).
Signed-off-by: Sean Young <sean@mess.org >
2020-10-20 16:03:55 +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
d389c6737e
Cleanup README (& Call) ( #2736 )
2020-10-15 17:06:51 +02:00
Jaco Greeff
4e799858ad
Cleanup type extraction overrides ( #2719 )
...
* Combine contract type get/init
* Cleanup type overrides
2020-10-13 13:54:14 +02:00
Jaco Greeff
4b8634b88e
Remove non-API specific contract call results ( #2704 )
2020-10-11 11:26:23 +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
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
Jaco Greeff
c6f4e64c1a
Update ContractInfo struct ( #2700 )
2020-10-10 12:55:03 +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
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
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
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
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