Jaco
e5b05dc700
Slight adjustment to rpc-provider LRU ( #4198 )
2021-11-10 19:35:20 +02:00
Jaco
9989b69b46
Rename decorate method ( #4193 )
...
* Rename decorateMethod*
* Split exports
2021-11-10 10:48:20 +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
81be70e15b
Introduce bundle exports ( #3742 )
...
* Introduce bundle exports
* Move memo
* Cleanup imports
* Move DoNotConstruct
2021-07-07 11:35:30 +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
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