Jaco
e759d32bcf
Revert all recent $ renames ( #5429 )
...
* Revert "[CI Skip] bump/beta 9.11.4-6-x"
This reverts commit 7ee4f7aaf8 .
* Revert "Rename Code .registry to .$registry (#5428 )"
This reverts commit dd6826fadd .
* Revert "[CI Skip] bump/beta 9.11.4-5-x"
This reverts commit abc68bf2e2 .
* Revert "Convert encodedLength to $encodedLength (#5426 )"
This reverts commit ccab89304b .
* Revert "[CI Skip] bump/beta 9.11.4-4-x"
This reverts commit 044465eee4 .
* Revert "Rename inspect() to inspectU8a() (#5425 )"
This reverts commit 42af205546 .
* Revert "[CI Skip] bump/beta 9.11.4-3-x"
This reverts commit 545ad50097 .
* Revert "Move .isEmpty to $isEmpty (#5424 )"
This reverts commit 6f19084a4d .
* Revert "[CI Skip] bump/beta 9.11.4-2-x"
This reverts commit 4688291ecf .
* Revert "Warn on deprecated getter usage (#5423 )"
This reverts commit da1cf9d64e .
* Revert "[CI Skip] bump/beta 9.11.4-1-x"
This reverts commit 96a3ef51f0 .
* Revert "Revert "[CI Skip] bump/beta 9.11.4-1-x""
This reverts commit 2eca0730a630d587878f12c141e21ea631dcdd19.
* Revert "Revert "[CI Skip] bump/beta 9.11.4-2-x""
This reverts commit 66284b40692071aa03a1064997c9402fc0b0987c.
* Revert "Revert "[CI Skip] bump/beta 9.11.4-3-x""
This reverts commit 9b820eaefccdb7b51d893000e5480d11e5195e22.
* Revert "Revert "[CI Skip] bump/beta 9.11.4-4-x""
This reverts commit cb5149adf98a5eefd8da61b8793707f85deb7c09.
* Revert "Revert "[CI Skip] bump/beta 9.11.4-5-x""
This reverts commit 489a64439860fefba163695ec36b319dcb1eeddc.
* Revert "Revert "[CI Skip] bump/beta 9.11.4-6-x""
This reverts commit 34a0fd4e2784a1b40ea8e06534d1f39328250e7a.
* Adjust linebreaks
* Adjust isStorageFallback naming
* Fix build
2023-01-19 15:06:29 +02:00
Jaco
6f19084a4d
Move .isEmpty to $isEmpty ( #5424 )
...
* Move .isEmpty to $isEmpty
* Adjust usages
2023-01-19 11:07:29 +02:00
Jaco
2eb453c4ce
Cleanup class variable linebreaks ( #5422 )
2023-01-19 08:52:14 +02:00
Jaco
2c949e0fc5
Update headers for 2023 ( #5392 )
2023-01-01 10:25:51 +02:00
Jaco
b21cc0ae06
Pass through WeightV2 as-is (contracts) ( #5336 )
...
* Pass through WeightV2 as-is (contracts)
* Adjust convertWeight
* Adjust
2022-11-13 08:44:31 +02:00
Jun Jiang
cad2b0fefe
Update contract' gas to Weight type ( #5324 )
...
* Update contract' gas to Weight type
* Make Contracts Runtime Calls support WeightV2
* fix gasConsumed & gasConsumed type
* Regenerate contracts types
* Correct ContractCallOutcome
* `gasLimit` are optional
* Apply suggestion
* Add ContractCallRequestV1 and specify old rpc use that
* Add back getGas
* Port jg-ContractsApi-v2 (#5330 )
* Run yarn build:metadata
* There is no 'ContractCallRequestV1', only 'ContractCallRequest'
* api.tx.contracts.call.meta no version field, _isOldWeight still work?
2022-11-13 08:30:33 +02:00
Jaco
e0e86b1383
Small cleanups to contracts Weight detection ( #5335 )
2022-11-12 16:01:41 +02:00
Jaco
26d1d0d695
Add Weight{V1, V2} aliases ( #5257 )
2022-10-04 08:51:38 +03:00
Jaco
6983f8c883
Adjust contracts to pass either V1 or V2 weights ( #5254 )
...
* Adjust contracts to pass either V1 or V2 weights
* Adjust
* Formatting
* Adjust
* Fix build
2022-10-03 12:31:00 +03:00
Jaco
e3ba160935
Bump metadata ( #5251 )
...
* Bump metadata
* Weight V2 as structure
* checkTypes
* Partial alias override
* Remove unused type import
* Use old weight calls on contracts (as available)
* Adjust
* merge master
* Adjust
* CHANGELOG
* CHANGELOG
* formatting
* Casting
* Adjust expectations
2022-10-03 08:41:43 +03:00
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
3790f48e03
Specific check for storageDepositLimit support ( #5108 )
...
* Specific check for storageDepositLimit support
* Adjust asserts
2022-07-26 07:48:21 +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
cb283c410b
Use type asserts for json imports ( #5072 )
2022-07-15 11:13:12 +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
25c46f2a0d
Ensure non-option calls in api-contract are marked as @deprecated ( #4433 )
2022-01-10 10:21:06 +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
Jaco
f11feb4363
Move test files to correct packages ( #4345 )
...
* Move test files to correct packages
* Adjust
2021-12-17 09:45:46 +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
736fd536f9
Use tsconfig references ( #4328 )
...
* Use tsconfig references
* Move types-known (temp until lower-level split)
* Sources
* Adjust
* tesconfig.eslint.json
* Bumps
* AdjustAdjust
* Linting passing... a start...
* Adjust
* Merge derive
* Merge
* api-contract-support
* It builds?
* compare locations
2021-12-14 12:04:50 +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
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