Jaco Greeff
a9c9fb5769
2021 ( #3015 )
2021-01-03 11:26:46 +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
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
f686cfcce7
Cleanup always primitive (caters for solang) ( #2807 )
...
* Cleanup always primitive (caters for solang)
* Compare (with primitive)
2020-10-30 10:47:18 +01:00
Jaco Greeff
b53490bd26
Add solang tests, re-organize sample layouts ( #2760 )
...
* Add solang tests, re-organize sample layouts
* Extra lines
2020-10-22 11:39:55 +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
4e799858ad
Cleanup type extraction overrides ( #2719 )
...
* Combine contract type get/init
* Cleanup type overrides
2020-10-13 13:54:14 +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 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
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
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
Jaco Greeff
4cb8462d50
Cleanup ABI encodeType, fix test compare ( #1616 )
2019-11-28 12:42:49 +01:00
Github Actions
094d6f7a1c
[CI Skip] 0.97.0-beta.35
...
skip-checks: true
2019-11-27 18:31:37 +00:00
Github Actions
1f2cd5a6f7
[CI Skip] 0.97.0-beta.16
...
skip-checks: true
2019-11-19 20:48:41 +00:00
Github Actions
1ffdba03b3
[CI Skip] 0.96.0-beta.28
2019-11-05 09:33:26 +00: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
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
Jaco Greeff
e197c6f114
Update shared-vec WASM ( #1492 )
2019-10-16 15:04:53 +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
Sergei Pepyakin
098a7a0953
INK! -> ink! ( #1347 )
2019-08-28 16:13:06 +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
YJ
7229a5fdfb
feat: Metadata V6 with module constants ( #1059 )
...
* feat: metadata v6, minus static and test
* fix: update v5 to v6 everywhere
* fix: lint and testUtil
* fix typo
* fix: match final metadata. constants no longer optional, StorageFunctionMetadata renamed to StorageEntryMetadata.
* fix: constants constructor
* fix: unit tests pass
* fix: linting and renaming, make tests pass
* fix: skip e2e
remove console log
* fix: formatting test
* fix api e2e tests
* fix: put the skip back
* feat: yarn test:skip-e2e
* fix: grumbles, add fresh flipper wasm
* fix: grumbles, add fresh flipper wasm
* fix: changelog
* fix ci
2019-07-02 11:48:40 +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