Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xslipk committed Aug 22, 2021
1 parent d77d666 commit 2a304d0
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 20 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 0.2.0
Published by **[jarcodallo](https://github.com/jarcodallo)** on **2021/08/11**
- [#89](https://github.com/jarcodallo/nestjs-terra/pull/89) Terrajs columbus-5 compatibility

### BREAKING CHANGE
- Update terra.js from `1.8.9` to `2.0.2` (columbus-5).
- Renamed constant from `TERRA_LCD_BASE_URL` to `MAINNET_LCD_BASE_URL`.
- Renamed constant from `TERRA_TESTNET_LCD_BASE_URL` to `TESTNET_LCD_BASE_URL`.
- Renamed constant from `TERRA_MAINNET_CHAIN_ID` to `MAINNET_CHAIN_ID`.
- Renamed constant from `TERRA_TESTNET_CHAIN_ID` to `MAINNET_CHAIN_ID`.

## 0.1.5
Published by **[jarcodallo](https://github.com/jarcodallo)** on **2021/08/11**
- [#85](https://github.com/jarcodallo/nestjs-terra/pull/85) Update terra.js dependency
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ interface TerraModuleOptions {
/**
* Chain ID of the blockchain to connect to.
* For example:
* - columbus-4: Mainnet
* - columbus-5: Mainnet
* - tequila-0004: Testnet
* - bombay-9: Testnet
*/
chainID: string;

Expand All @@ -60,14 +61,14 @@ Use `TerraModule.forRoot` method with [Options interface](#configuration-params)
import {
TerraModule,
MAINNET_LCD_BASE_URL,
TERRA_MAINNET_CHAIN_ID
MAINNET_CHAIN_ID
} from 'nestjs-terra';

@Module({
imports: [
TerraModule.forRoot({
URL: MAINNET_LCD_BASE_URL,
chainID: TERRA_MAINNET_CHAIN_ID,
chainID: MAINNET_CHAIN_ID,
})
],
...
Expand All @@ -87,13 +88,13 @@ Here's an example:
import {
TerraModule,
MAINNET_LCD_BASE_URL,
TERRA_MAINNET_CHAIN_ID
MAINNET_CHAIN_ID
} from 'nestjs-terra';

@Injectable()
class ConfigService {
public readonly URL = MAINNET_LCD_BASE_URL;
public readonly chainID = TERRA_MAINNET_CHAIN_ID;
public readonly chainID = MAINNET_CHAIN_ID;
}

@Module({
Expand Down Expand Up @@ -127,13 +128,13 @@ Or you can just pass `ConfigService` to `providers`, if you don't have any `Conf
import {
TerraModule,
MAINNET_LCD_BASE_URL,
TERRA_MAINNET_CHAIN_ID,
MAINNET_CHAIN_ID,
} from 'nestjs-terra';

@Injectable()
class ConfigService {
public readonly URL = MAINNET_LCD_BASE_URL;
public readonly chainID = TERRA_MAINNET_CHAIN_ID;
public readonly chainID = MAINNET_CHAIN_ID;
}

@Module({
Expand Down
42 changes: 31 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@
"homepage": "https://github.com/jarcodallo/nestjs-terra/blob/main/README.md",
"bugs": "https://github.com/jarcodallo/nestjs-terra/issues",
"dependencies": {
"@terra-money/terra.js": "2.0.2",
"pre-commit": "^1.2.2"
"@terra-money/terra.js": "2.0.2"
},
"devDependencies": {
"@nestjs/common": "^8.0.6",
Expand All @@ -67,6 +66,7 @@
"jest": "^27.0.6",
"nock": "^13.1.2",
"prettier": "^2.3.2",
"pre-commit": "^1.2.2",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.3.0",
"supertest": "^6.1.6",
Expand Down

0 comments on commit 2a304d0

Please sign in to comment.