-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ORML methods; Acala pkg; More dynamic
getRegistry
and `knownC…
…hainProperties`; Lerna (#26) * fix: Silence misleading warning when decoding a signed tx * Fix spelling * Start setting up testing * Complete currencies.transfer example * Factory out registry creation into seperate package * Dynamically create knownChainProperties from ss58 registy in @polkadot/network * Remove dead code * Lint * Update mandala example to use @acala-network * Setup testing utils for orml * Impl currencies.transferNativeCurrency * Update ts-config & jest setup * Dry jest.config.js * Use lerna with tsc and output to lib * Update lerna * Update lerna.json * Remove package specific deploy script * Bump version and changelogs with lerna * Remove unused script from root * remove docs * General cleanup * General clean up * Generate docs * Update package.jsons and README * No undefined for known chain properties * Update example to use ss58 enum * Apply suggestions from code review Co-authored-by: David <dvdplm@gmail.com> * Update decode * Update deps and lerna setup Co-authored-by: David <dvdplm@gmail.com>
- Loading branch information
Showing
193 changed files
with
6,310 additions
and
2,840 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,7 @@ | |
**/*lib | ||
.DS_Store | ||
**/*yarn-error.log | ||
**/**.d.ts | ||
**/**.js | ||
**/**.js.map | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
# WIP replacement for the current txwrapper | ||
# txwrapper packages | ||
|
||
## Quick start | ||
|
||
TODO | ||
|
||
## Develop | ||
|
||
Install dependencies: | ||
|
||
``` | ||
yarn install | ||
``` | ||
|
||
Build all packages with distribution settings: | ||
|
||
``` | ||
yarn run build | ||
``` | ||
|
||
Run all tests: | ||
|
||
``` | ||
yarn run test | ||
``` | ||
|
||
### Publishing | ||
|
||
Publish with lerna by running: | ||
|
||
``` | ||
yarn deploy | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
**[@substrate/txwrapper-substrate](README.md)** | ||
**[@substrate/txwrapper-core](README.md)** | ||
|
||
> [Globals](globals.md) | ||
# WIP Offline transaction generation methods for substrate pallets | ||
# WIP library for chain builders to make and publish their chain specific txwrapper-* lib |
39 changes: 0 additions & 39 deletions
39
docs/enums/_packages_txwrapper_core_src_polkadot_.polkadotchainname.md
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
docs/enums/_packages_txwrapper_core_src_polkadot_.polkadotspecname.md
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
docs/enums/_packages_txwrapper_core_src_polkadot_.polkadotss58format.md
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
docs/enums/_packages_txwrapper_core_src_polkadot_.polkadottokendecimals.md
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
docs/enums/_packages_txwrapper_core_src_polkadot_.polkadottokensymbols.md
This file was deleted.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
docs/enums/_txwrapper_acala_src_tokensymbol_.tokensymbol.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
**[@substrate/txwrapper-core](../README.md)** | ||
|
||
> [Globals](../globals.md) / ["txwrapper-acala/src/TokenSymbol"](../modules/_txwrapper_acala_src_tokensymbol_.md) / TokenSymbol | ||
# Enumeration: TokenSymbol | ||
|
||
## Index | ||
|
||
### Enumeration members | ||
|
||
* [ACA](_txwrapper_acala_src_tokensymbol_.tokensymbol.md#aca) | ||
* [AUSD](_txwrapper_acala_src_tokensymbol_.tokensymbol.md#ausd) | ||
* [DOT](_txwrapper_acala_src_tokensymbol_.tokensymbol.md#dot) | ||
* [LDOT](_txwrapper_acala_src_tokensymbol_.tokensymbol.md#ldot) | ||
* [RENBTC](_txwrapper_acala_src_tokensymbol_.tokensymbol.md#renbtc) | ||
* [XBTC](_txwrapper_acala_src_tokensymbol_.tokensymbol.md#xbtc) | ||
|
||
## Enumeration members | ||
|
||
### ACA | ||
|
||
• **ACA**: = "ACA" | ||
|
||
*Defined in [packages/txwrapper-acala/src/TokenSymbol.ts:2](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-acala/src/TokenSymbol.ts#L2)* | ||
|
||
___ | ||
|
||
### AUSD | ||
|
||
• **AUSD**: = "AUSD" | ||
|
||
*Defined in [packages/txwrapper-acala/src/TokenSymbol.ts:3](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-acala/src/TokenSymbol.ts#L3)* | ||
|
||
___ | ||
|
||
### DOT | ||
|
||
• **DOT**: = "DOT" | ||
|
||
*Defined in [packages/txwrapper-acala/src/TokenSymbol.ts:4](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-acala/src/TokenSymbol.ts#L4)* | ||
|
||
___ | ||
|
||
### LDOT | ||
|
||
• **LDOT**: = "LDOT" | ||
|
||
*Defined in [packages/txwrapper-acala/src/TokenSymbol.ts:6](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-acala/src/TokenSymbol.ts#L6)* | ||
|
||
___ | ||
|
||
### RENBTC | ||
|
||
• **RENBTC**: = "RENBTC" | ||
|
||
*Defined in [packages/txwrapper-acala/src/TokenSymbol.ts:7](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-acala/src/TokenSymbol.ts#L7)* | ||
|
||
___ | ||
|
||
### XBTC | ||
|
||
• **XBTC**: = "XBTC" | ||
|
||
*Defined in [packages/txwrapper-acala/src/TokenSymbol.ts:5](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-acala/src/TokenSymbol.ts#L5)* |
49 changes: 49 additions & 0 deletions
49
docs/enums/_txwrapper_core_src_test_helpers_constants_.polkadotss58format.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
**[@substrate/txwrapper-core](../README.md)** | ||
|
||
> [Globals](../globals.md) / ["txwrapper-core/src/test-helpers/constants"](../modules/_txwrapper_core_src_test_helpers_constants_.md) / PolkadotSS58Format | ||
# Enumeration: PolkadotSS58Format | ||
|
||
Prefix for ss58-encoded addresses on Polkadot, Kusama, and Westend. Note: | ||
42, the Westend prefix, is also the default for Substrate-based chains. | ||
|
||
## Index | ||
|
||
### Enumeration members | ||
|
||
* [kusama](_txwrapper_core_src_test_helpers_constants_.polkadotss58format.md#kusama) | ||
* [polkadot](_txwrapper_core_src_test_helpers_constants_.polkadotss58format.md#polkadot) | ||
* [substrate](_txwrapper_core_src_test_helpers_constants_.polkadotss58format.md#substrate) | ||
* [westend](_txwrapper_core_src_test_helpers_constants_.polkadotss58format.md#westend) | ||
|
||
## Enumeration members | ||
|
||
### kusama | ||
|
||
• **kusama**: = 2 | ||
|
||
*Defined in [packages/txwrapper-core/src/test-helpers/constants.ts:50](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-core/src/test-helpers/constants.ts#L50)* | ||
|
||
___ | ||
|
||
### polkadot | ||
|
||
• **polkadot**: = 0 | ||
|
||
*Defined in [packages/txwrapper-core/src/test-helpers/constants.ts:49](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-core/src/test-helpers/constants.ts#L49)* | ||
|
||
___ | ||
|
||
### substrate | ||
|
||
• **substrate**: = 42 | ||
|
||
*Defined in [packages/txwrapper-core/src/test-helpers/constants.ts:52](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-core/src/test-helpers/constants.ts#L52)* | ||
|
||
___ | ||
|
||
### westend | ||
|
||
• **westend**: = 42 | ||
|
||
*Defined in [packages/txwrapper-core/src/test-helpers/constants.ts:51](https://github.com/paritytech/txwrapper-core/blob/33adddf/packages/txwrapper-core/src/test-helpers/constants.ts#L51)* |
Oops, something went wrong.