Skip to content

Commit

Permalink
feat: ORML methods; Acala pkg; More dynamic getRegistry and `knownC…
Browse files Browse the repository at this point in the history
…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
emostov and dvdplm committed Dec 24, 2020
1 parent c2459c6 commit 731a943
Show file tree
Hide file tree
Showing 193 changed files with 6,310 additions and 2,840 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ module.exports = {
// Sort imports and exports
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
// https://github.com/eslint/eslint/issues/2321#issuecomment-134665757
'no-unused-vars': [2, { args: 'all', argsIgnorePattern: '^_' }],
'@typescript-eslint/no-unused-vars': [
2,
{ args: 'all', argsIgnorePattern: '^_' }
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
**/*lib
.DS_Store
**/*yarn-error.log
**/**.d.ts
**/**.js
**/**.js.map

34 changes: 33 additions & 1 deletion README.md
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
```
4 changes: 2 additions & 2 deletions docs/README.md
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

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

64 changes: 64 additions & 0 deletions docs/enums/_txwrapper_acala_src_tokensymbol_.tokensymbol.md
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)*
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)*
Loading

0 comments on commit 731a943

Please sign in to comment.