Jaco
ff3882f5f7
Bump common (w/ rxjs 7) ( #3736 )
...
* Bump common (w/ rxjs 7)
* Adjust
* pre bump
* Cleanup imports
* Add missing switchMap
* CHANGELOG
* Remove duplicate imports
* Bump common
* Direct rxjs import
2021-07-07 09:26:30 +02:00
Jaco
89c7d73951
Expose gasRequired (as available) ( #3732 )
2021-07-06 08:53:23 +02:00
Jaco
7cd2fa5f6a
Additional check for API connection & decoration in contracts ( #3654 )
...
* Additional check for API connection & decoration in contracts
* Remove snuck-in-file
2021-06-15 11:08:47 +02:00
Jaco
8748c02b20
Adjust error message for contracts V3 ( #3653 )
...
* Adjust error message for contracts V3
* Adjust mock API
2021-06-15 08:54:43 +02:00
Jaco
bdaacfdd56
BN import from util ( #3637 )
...
* BN import from util
* Update packages/api-derive/src/staking/stakerRewards.ts
2021-06-11 12:52:21 +02:00
Jaco
3273556f7b
Convert stragging BN type imports ( #3595 )
2021-05-31 14:32:33 +02:00
Jaco
165405bdc3
Contracts read for variable-length bytes ( #3526 )
2021-05-13 21:19:11 +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
80ab628643
Adjust contract call result decoding ( #3510 )
...
* Adjust types for node/node-template
* Adjust contract call result
* Adjust
* Raw directly
* CHANGELOG
2021-05-09 09:46:21 +02:00
Jaco
1113a3d2f8
Use BN_* constants in contract default params ( #3507 )
2021-05-07 14:41:08 +02:00
Jaco
be137b2a03
Fix ContractRx query result definitions ( #3506 )
2021-05-07 13:19:23 +02:00
Jaco
4ba372d29b
Remove deprecated api-contract methods ( #3486 )
...
* Remove deprectaed api-contract methods
* Remove deprecated read/exec from checkTypes
2021-05-05 11:54:25 +02:00
Jaco
b1353edc84
Expose additional camelCase method on AbiMessage (maps to decorated name) ( #3466 )
2021-05-01 08:31:16 +02:00
Jaco Greeff
712d0425d0
Update ParaInfo types ( #3348 )
2021-03-23 10:38:28 +01:00
Jaco Greeff
88c3850d1b
Warn on deprecated contracts interfaces ( #3346 )
2021-03-22 17:03:49 +01:00
Veliko and Jaco Greeff
70fc95ef27
Fix contractEvents in ContractSubmittableResult ( #3324 )
...
* fix the autoaggregation of contract events
apparently, the system event for contract emitted events has had its name changed
* fix the autoaggregation of contract events
apparently, the system event for contract emitted events has had its name changed
* Update packages/api-contract/src/base/Contract.ts
* Apply suggestions from code review
Co-authored-by: Jaco Greeff <jacogr@gmail.com >
2021-03-15 22:16:35 +01:00
Jaco Greeff
43b66b6507
Remove createBlueprint (use createContract) ( #3300 )
2021-03-10 17:24:59 +01:00
Jaco Greeff
82787c96c6
Single put_code/deploy (new & backwards compat.) ( #3143 )
...
* Single put_code/deploy (new & backwards compat.)
* new-style
* old-style deploy?
* notice
* Cleanups
* linting
* grrr... Mac case-sensistivity
* Add createContract on BluePrint
* Adjust contracts check
* Adjust
* Adjust tests
2021-02-06 14:36:42 +01:00
Jaco Greeff
a9c9fb5769
2021 ( #3015 )
2021-01-03 11:26:46 +01:00
Jaco Greeff
9e13b6f54e
blockWeights.maxBlock for estimation ( #3004 )
2020-12-29 22:29:13 +01:00
Jaco Greeff
208fbb24d5
Build esm (& add x-rxjs package) ( #2942 )
2020-12-11 18:44:23 +01:00
Jaco Greeff
0cb7b34ff0
Update with new consumed Weight structures ( #2928 )
...
* Update with new consumed Weight structures
* dispatch(Info, Error} optional in result
* Update for maximumBlockWeight
2020-12-08 17:26:13 +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
8b4d3872d7
Bump metadata (w/ AssetBalance, AssetDetails) ( #2917 )
...
* Bump metadata (w/ AssetBalance, AssetDetails)
* Bluperint for new-style with salt as default
* Use TBalance
* Easier overrides
* Balance
* Build types
2020-12-06 11:31:54 +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
82873c44f8
Pass raw data for contract event decoding ( #2851 )
2020-11-14 16:42:47 +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
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
06a325795b
Adjust max allowed call gas (5 * 10 ^ 12) ( #2821 )
...
* Adjust max allowed call gas (5 * 10 ^ 12)
* Update packages/api-contract/src/base/Contract.ts
* Update dev
2020-11-06 13:40:17 +01:00
Jaco Greeff
9f60a8cd5f
Add decoded contract events to execution ( #2812 )
...
* Cleanup assignments
* Small adjustments
* Add decoded contract events to execution
* Adjust all applyOnEvent
2020-10-31 13:19:57 +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
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
6f2173778e
Add keysAt & entriesAt ( #2746 )
...
* At keysAt & entriesAt
* Update packages/api/src/base/Decorate.ts
2020-10-19 19:43:58 +02:00
Jaco Greeff
a980d4ae11
Allow for max block limit on gas ( #2744 )
2020-10-18 15:57:08 +02:00
Jaco Greeff
8d8d5bd7d7
Expose ABI messages on Contract/Blueprint ( #2715 )
...
* Expose ABI messages on Contract/Blueprint
* Rename actual files & exports
* Adjust .query signature (origin)
* Assert contracts.call
2020-10-12 18:27:47 +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
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
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
Jaco Greeff
4b8634b88e
Remove non-API specific contract call results ( #2704 )
2020-10-11 11:26:23 +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
b65b2d7720
Adjust exec with SubmittableExtrinsic ( #2701 )
...
* Adjust exec with SubmittableExtrinsic
* inputData
2020-10-10 14:25:31 +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
6ae75ba92e
Bump dev ( #2576 )
...
* Bump dev
* type linting
* linting
* linting
* missed
2020-09-03 15:47:29 +02:00
Keith Ingram
e1cb62d2d2
Type for contract call params ( #2452 )
2020-07-27 12:43:54 +02:00
Jaco Greeff
47fc4a2b3c
Bump deps w/ eslint ( #2302 )
...
* Bump deps w/ eslint
* Additional cleanups
* Additional
* @polkadot/types done
* Additional
* @polkadot/typegen done
* Additional
* @polkadot/rpc-core done
* Additional
* Additional
* Additional
* docs
* @polkadot/api-derive done
* @polkadot/api done
* @polkadot/api-contracts done
* Update tests
2020-05-24 09:24:45 +02:00