Jaco
62bfcf84dd
Ensure call is exposed on rx ( #5116 )
...
* Ensure call is exposed on rx
* Adjust to only top-level detection
* .123npm
* Adjust check for contractsApi
2022-07-29 11:10:05 +03:00
Jaco
d26f289199
Remove deprecated api-contract methods ( #5110 )
...
* Remove deprecated api-contract methods
* Remove checkTypes deprecated
2022-07-26 08:53:05 +03:00
Jaco
0c79e13aba
Convert api-contract usage of api.rpc.* to api.call.* ( #5107 )
...
* Convert api-contract usage of api.rpc.* to api.call.*
* Cast call (augmentation not available in build)
* Revert tx check assert
* Call mock
2022-07-25 16:22:26 +03:00
Jaco
fa5ec1b4a8
Adjust assert usage in api-contract ( #5057 )
2022-07-11 15:43:03 +03:00
Jaco
39ff956076
Expose constructoir meta on Blueprint/Code ( #4486 )
2022-01-21 15:56:27 +02:00
Jaco
f5ce395371
Expose contract.{query, tx}.method.meta ( #4485 )
2022-01-21 13:40:21 +02:00
Jaco
8ba4ed5377
2022 ( #4404 )
2022-01-01 09:28:18 +02:00
Jaco
5d6c2dd9f2
DRY cleanups for contracts ( #4395 )
2021-12-26 10:03:28 +02:00
Keith Ingram
a868233c2f
Storage deposit limit changes ( #4370 )
2021-12-21 13:09:37 +02:00
Jaco
67ee8b08d9
Ensure *.d.ts files are generated in outputs ( #4362 )
...
* Ensure *.d.ts files are generated in outputs
* Adjust
* Additional dep
* Update
* Update refs
2021-12-20 10:00:10 +02:00
Andreea Eftene
cffab6900d
Add storage deposit support ( #4304 )
...
* add storage deposit support
* Revert "add storage deposit support"
This reverts commit 10eea6332b2756b23766df316a90ba4f244cb424.
* generate new metadata
* make it build
* add storage deposit in RPCs
* rename endowment to value
* support older nodes
* check the right things
* hide storage_deposit until better supported
* add the right defaults
* hardcode storageDepositLimit to null
2021-12-14 14:20:04 +02:00
Jaco
a30329b47d
Support for contracts metadata V2 ( #4289 )
...
* Support for contracts metadata V2
* Add & use latest
* Build interfaces
* conversion of V1 -> Latest
* spreads
* Use V2 in creation, aka s/name/label/
* Extract -> latest conversion
* Flatten
* Add V2 test contracts (tests are failing)
* V2, V1 & V1 catered for in Abi.spec.ts
* Explicit v0/v1 -> Latest conversions
* Adjust V2/V1/V0 check order
* Cleanup type assertions
* Save
* Remove eslint unsafe
* Flatten test exports
* Entries... last non-critical, OCD-driven change...
* tsc check fixes
* Conversion tests
* v1ToLatest renames
* Text[]
* Split conversion (ease of future change)
* V2 in V2 conversion
* Dedupe?
* Additional cleanups
* Adjust
* Flatten types
* Adjust
* filter versions adjustments
* additional, get it done.
2021-12-08 19:14:51 +02:00
Jaco
5eb3534d8e
Bump dev (w/ eslint 8) ( #4070 )
...
* Bump dev (w/ eslint 8)
* Additional linting
* Additional
* More lint fixes
* Last batch
* Additional
* Cleanups
2021-10-17 14:49:26 +03:00
Jaco
d053b86e23
Use Si V1 in contracts (w/ PortableRegistry usage) ( #3988 )
...
* Use Si V1 in contracts (w/ PortableRegistry usage)
* Type id lookups
* Fix build & linting
* Remove extra .toNumber() (VSCode has gone crazy)
* v1 tests
* Cleanup parsing
* Explicit type cast for v1 types
* Unneeded toNumber
* Align events exposure with messages/constructors
* dedupe
* Re-add typedef extraction tests
* with typedefs
* Override for always primitives
* displayName improvements
* Versioned project
* New structure
* Fixes
* Cleanups
* Ensure API registry is the default used
* Adjust arg & return encoding/decoding
* Recursive contract
* DoNotConstruct to Si type
2021-10-11 12:50:09 +03:00
Nantian
db6c44615f
fix bigint type ( #3869 )
2021-08-12 10:02:15 +02:00
Jaco
a80df7d846
Swap CodecArg usage to unknown ( #3845 )
...
* Swap CodecArg usage to unknown
* Adjust Constructor defintion
2021-08-05 12:27:51 +02:00
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
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
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
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
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
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
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