{"_id":"nestjs-terra","_rev":"27-b383aa520f6c7195a3ddf0dcff88881d","name":"nestjs-terra","dist-tags":{"beta":"1.0.0-beta.5","latest":"2.0.0"},"versions":{"0.1.0-beta.1":{"name":"nestjs-terra","version":"0.1.0-beta.1","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terra","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.7.0"},"devDependencies":{"@nestjs/common":"^7.6.15","@nestjs/core":"^7.6.15","@nestjs/platform-express":"^7.6.15","@nestjs/platform-fastify":"^7.6.15","@nestjs/testing":"^7.6.15","@types/express":"^4.17.11","@types/jest":"^26.0.22","@types/node":"^14.14.37","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.19.0","@typescript-eslint/parser":"^4.19.0","coveralls":"^3.1.0","eslint":"^7.24.0","eslint-config-prettier":"^8.2.0","eslint-plugin-prettier":"^3.3.1","jest":"^26.6.3","nock":"^13.0.11","prettier":"^2.2.1","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^26.5.4","ts-node":"^9.1.1","tsc-watch":"^4.2.9","tsconfig-paths":"^3.9.0","typescript":"^4.2.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"8733e7fee64ce2475391f2adcd5a1ea199b0ef9c","_id":"nestjs-terra@0.1.0-beta.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-qUCVZM5mkyiypTz/8i4rUBDIY9crB/WDHiEpt2GrYboRHrQ9t1gfwk/cKmQn1l97lS76aoqb893Z92VXJj39ZQ==","shasum":"767b010866ab6dbd44916cc3c129b70f1a6b5118","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.0-beta.1.tgz","fileCount":12,"unpackedSize":19692,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggIkzCRA9TVsSAnZWagAAryMP/10OayrWJshjLRUjhBbE\nXiGsNfuVazSpoVV34MFAsqa0mBdCoRiMkAbq8KXL1fde+PoyuGPuW5NsYuWn\nVZNlOoSsF4/iAMj5Ww90MlN1Z063Zmzy0V2ceLpLnlKwieiBvRRkdHrf3W22\naWWARp0pjaqC9OmTWA2P0Mj1Debud8aRPVk1qPGsx8QGZn4QcIsZDp8mNdqN\nEyJwLEqnTCvR2Tp9ocWw7kfLPk8tNreOfsJ7dPekjD8jTaFHFIR4E8gh4OGT\nT2Ow0lqjPhMpuJd29mC6jMbNfZEMPWRoAMJ964VvQSNz0vOgj0FamNKTiJki\n7mqQEWEsP5GLPu+9eAklovTVDXwSZK9SFV/1oILGQ42LcSLjDwEb7TlDJvSF\nw3D4LBYQvG+U6SMPxMddKAaHgM89AI20fAxJ7yJ1V3N/rVwdAx4tiPIWRXZK\n82X8XocTayymiSf1lxjNDjM3nqVcp1kzC7UodWhMIIXO66fwyZM9qpcGdbhI\nrpv3S81Oht4itLjV00Yv7CyK7qbgFVEvhmuI37Hi57b5z9YBkAJaZ6k/gGql\nDk3z18dmVWWjkMXpzXvmBiErBPi5MYwcma1+bksvl/9ZA10YQx+uRYQVIKHW\nZZATKXKsIUhHZEetOaDOAi0WIeV0I1lyNWJ2/Ux2bw/KmTgRy+kE6N2pASU+\ncE2O\r\n=ixya\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpP70MeqZt8bec0yt6qjU76v9UWkErDorbKd/nAlmgqgIhAKTONIOKjv1PNcRjWv2vV4HPRHB/MTS6zV0uv1OhHYnf"}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.0-beta.1_1619036466655_0.4284933148328678"},"_hasShrinkwrap":false},"0.1.0-beta.2":{"name":"nestjs-terra","version":"0.1.0-beta.2","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","readmeFilename":"README.md","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.7.0"},"devDependencies":{"@nestjs/common":"^7.6.15","@nestjs/core":"^7.6.15","@nestjs/platform-express":"^7.6.15","@nestjs/platform-fastify":"^7.6.15","@nestjs/testing":"^7.6.15","@types/express":"^4.17.11","@types/jest":"^26.0.22","@types/node":"^14.14.37","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.19.0","@typescript-eslint/parser":"^4.19.0","coveralls":"^3.1.0","eslint":"^7.24.0","eslint-config-prettier":"^8.2.0","eslint-plugin-prettier":"^3.3.1","jest":"^26.6.3","nock":"^13.0.11","prettier":"^2.2.1","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^26.5.4","ts-node":"^9.1.1","tsc-watch":"^4.2.9","tsconfig-paths":"^3.9.0","typescript":"^4.2.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"readme":"NestJS-Terra\n=============\n\n[![npm](https://img.shields.io/npm/v/nestjs-terra)](https://www.npmjs.com/package/nestjs-terra)\n[![travis](https://api.travis-ci.com/jarcodallo/nestjs-terra.svg?branch=main)](https://travis-ci.com/github/jarcodallo/nestjs-terra)\n[![coverage](https://coveralls.io/repos/github/jarcodallo/nestjs-terra/badge.svg?branch=main)](https://coveralls.io/github/jarcodallo/nestjs-terra?branch=main)\n[![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/nestjs-terra)](https://snyk.io/test/github/jarcodallo/nestjs-terra)\n[![dependencies](https://img.shields.io/david/jarcodallo/nestjs-terra)](https://img.shields.io/david/jarcodallo/nestjs-terra)\n[![dependabot](https://badgen.net/dependabot/jarcodallo/nestjs-terra/?icon=dependabot)](https://badgen.net/dependabot/jarcodallo/nestjs-terra/?icon=dependabot)\n[![supported platforms](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)\n\n\nTerra blockchain utilities for NestJS based on [Terra.js](https://github.com/terra-project/terra.js)\n\n## Install\n\n```sh\nnpm i nestjs-terra\n```\n\n## Register module\n\n### Configuration params\n\n`nestjs-terra` can be configured with this options:\n\n```ts\ninterface TerraModuleOptions {\n  /**\n   * The base URL to which LCD requests will be made.\n   */\n  URL: string;\n\n  /**\n   * Chain ID of the blockchain to connect to.\n   */\n  chainID: string;\n\n  /**\n   * Optional parameter for gas prices to use for fee estimation.\n   */\n  gasPrices?: Coins.Input;\n\n  /**\n   * Optional parameter for gas adjustment value to use for fee estimation.\n   */\n  gasAdjustment?: Numeric.Input;\n}\n```\n\n### Synchronous configuration\n\nUse `TerraModule.forRoot` method with [Options interface](#configuration-params):\n\n```ts\nimport { TerraModule } from 'nestjs-terra';\n\n@Module({\n  imports: [\n    TerraModule.forRoot({\n      URL: 'https://lcd.terra.dev',\n      chainID: 'columbus-4',\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\n### Asynchronous configuration\n\nWith `TerraModule.forRootAsync` you can, for example, import your `ConfigModule` and inject `ConfigService` to use it in `useFactory` method.\n\n`useFactory` should return object with [Options interface](#configuration-params)\n\nHere's an example:\n\n```ts\nimport { TerraModule } from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = 'https://lcd.terra.dev';\n  public readonly chainID = 'columbus-4';\n}\n\n@Module({\n  providers: [ConfigService],\n  exports: [ConfigService]\n})\nclass ConfigModule {}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      imports: [ConfigModule],\n      inject: [ConfigService],\n      useFactory: async (config: ConfigService) => {\n        await somePromise();\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\nOr you can just pass `ConfigService` to `providers`, if you don't have any `ConfigModule`:\n\n```ts\nimport { TerraModule } from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = 'https://lcd.terra.dev';\n  public readonly chainID = 'columbus-4';\n}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      providers: [ConfigService],\n      inject: [ConfigService],\n      useFactory: (config: ConfigService) => {\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  controllers: [TestController]\n})\nclass MyModule {}\n```\n\n## TerraLCDClient\n\n`TerraLCDClient` implements standard [LCDClient](https://github.com/terra-project/terra.js/wiki/Making-a-connection). So if you are familiar with it, you are ready to go.\n\n```ts\nimport { InjectTerraLCDClient, TerraLCDClient, MnemonicKey } from 'nestjs-terra';\n\n@Injectable()\nexport class TestService {\n  constructor(\n    @InjectTerraLCDClient()\n    private readonly terraClient: TerraLCDClient,\n  ) {}\n  async someMethod(): Promise<{ accountNumber: string }> {\n    const wallet = this.terraClient.wallet(\n      new MnemonicKey({\n        mnemonic: [\n          'satisfy',\n          'adjust',\n          'timber',\n          'high',\n          'purchase',\n          'tuition',\n          'stool',\n          'faith',\n          'fine',\n          'install',\n          'that',\n          'you',\n          'unaware',\n          'feed',\n          'domain',\n          'license',\n          'impose',\n          'boss',\n          'human',\n          'eager',\n          'hat',\n          'rent',\n          'enjoy',\n          'dawn',\n        ].join(' ')\n      }),\n    );\n    const accountNumber = await wallet.accountNumber();\n\n    return { accountNumber: accountNumber.toString() };\n  }\n}\n```\n\n## Testing a class that uses @InjectTerraLCDClient\n\nThis package exposes a getTerraToken() function that returns a prepared injection token based on the provided context. \nUsing this token, you can easily provide a mock implementation of the `TerraLCDClient` using any of the standard custom provider techniques, including useClass, useValue, and useFactory.\n\n```ts\n  const module: TestingModule = await Test.createTestingModule({\n    providers: [\n      MyService,\n      {\n        provide: getTerraToken(MyService.name),\n        useValue: mockProvider,\n      },\n    ],\n  }).compile();\n```\n\n## Change Log\n\nSee [Changelog](CHANGELOG.md) for more information.\n\n## Contributing\n\nContributions welcome! See [Contributing](CONTRIBUTING.md).\n\n## Author\n\n**Jose Ramirez [Twitter](https://twitter.com/jarcodallo)**\n\n## License\n\nLicensed under the Apache 2.0 - see the [LICENSE](LICENSE) file for details.\n","gitHead":"c6dd784b5eac7d03af9203ccc0c90635662b9211","_id":"nestjs-terra@0.1.0-beta.2","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-jBA8jXz6gfgFYBw1GPfYLLiYqb0+lRrbS07EuCKZB/6nHCdlRWidgDiHWFxZZFacZkyro4FXUQnZDvlzatPjvw==","shasum":"0882c371e4645ec813f004bc5f6b7c617ba18503","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.0-beta.2.tgz","fileCount":22,"unpackedSize":35754,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggei7CRA9TVsSAnZWagAAsAEQAKCYWb+Evfg3QSSIVrKo\nf9Emm2ULKDcWNbeBNC1FZy7sruMjomFRBW6d0Q5AYOzwhnLEShmFWxBPjVHR\nTGnNrnrf4IFpaUZG8pPQWjhmMCbJCVVoJU2/Qx81aY1hIa8O3hkZD/6OjB9h\nq+5rfldIAmjrAi91fwKSzmZqtyiLDOea/n1RghW0fPJbP6NbDMEOvAWCgHqm\nk5xytO2ar+TKVSBCF2dR6MEtxTgXL+EAWxXnbvaHY36NsGaJ5sq/j2NcSk5J\nwpaxE9aD9T1w891L+DjPVqEvuaXd36Z9xK3M1Lg0G9BCzeXaFepK1Swqn6/5\neHDn6Ay4kIYnpL1/QEcTckL0lhv5BNpMwyT7dFlYnJJMb5Ec+/NmoDW3xMhX\nn3v9GIcsX9K/jLeEmlGc5/uRiHKZg6bUP6G1lk69La+mQ5UehUyWM52eoo8t\n0/EjsAmm3dikhrZepzP842kI0W1pgYQfaRS6m5J314sXwVHPFlMjNL8hza+Q\nuUA39O1nhjIh3QEOCuhQkTn/OwQCgDCuEquLjt2HpvBn+ElT2IQzIx/dHnlh\nGoMESvQTJ+ZKrIr38ndhIBPnzfNFAR1ABqo+kniJ/knqWgLwBDfLIRSWFVWM\n9CsLHqDnXDSsjdNrRtAZmi9xyXvv2rslDm02fEzWQQ8hFghgHpSi1ficJ/xy\nyma2\r\n=uzKo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAg51tvhedJaF+8rgpoMzU1ir/Rz6/71/XlNUuI3zfjjAiBPFFfOZzr2stZ1XXRWiihZheYFGPkCBpwHt+URZwWlow=="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.0-beta.2_1619126459097_0.8361614690852626"},"_hasShrinkwrap":false},"0.1.0-rc.1":{"name":"nestjs-terra","version":"0.1.0-rc.1","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.7.0"},"devDependencies":{"@nestjs/common":"^7.6.15","@nestjs/core":"^7.6.15","@nestjs/platform-express":"^7.6.15","@nestjs/platform-fastify":"^7.6.15","@nestjs/testing":"^7.6.15","@types/express":"^4.17.11","@types/jest":"^26.0.22","@types/node":"^14.14.37","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.19.0","@typescript-eslint/parser":"^4.19.0","coveralls":"^3.1.0","eslint":"^7.24.0","eslint-config-prettier":"^8.2.0","eslint-plugin-prettier":"^3.3.1","jest":"^26.6.3","nock":"^13.0.11","prettier":"^2.2.1","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^26.5.4","ts-node":"^9.1.1","tsc-watch":"^4.2.9","tsconfig-paths":"^3.9.0","typescript":"^4.2.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"c6dd784b5eac7d03af9203ccc0c90635662b9211","_id":"nestjs-terra@0.1.0-rc.1","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-Bp1rUHQNXx0iABdqhAKSNmG0nF0Lm0X0jlGhk3EZqHRs8e+Knq/yiZK/w0+joU4kG6Tit6Wu/IHwWVqDT7wiiw==","shasum":"dc812db6d71fa5ec4e7bd19385c1df2eef8ede26","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.0-rc.1.tgz","fileCount":22,"unpackedSize":35903,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggrNzCRA9TVsSAnZWagAAxzgP/jVNtP4Dd5gsjX5OvwH8\nwMaqN5XIvXxAONRtEKlr4TUVdUwRvlj0NypuyMERfRUT91o9JOgKCy3R8bnz\nFvqoZpjDv7U5sjfZo/n0qIF4pW4V2CKqGdy96IS8kwk4RT7PnBYujY4meo8z\n37nLuTqFS48BLXyMlJj3iU9MDP7awB+qg/jLexgilc29DhGKBL6blaC3nzis\nW0nS5yqoQijaB5l7RMVCNbtygeZ2I7lYUohf2DqXQqfTm7oeEuRl5x/AZpuB\nHtQlzaMkF0X0AzZfYOpvc/lOoAKqDzft3wKwC4W4BeKGJsEGAwLR7Y9epVcc\nqdc1qlFfHKGFt9hBEJ3gftKPPw1bA0apw/B1FbfTvK2H5DT2RVlNshTwWTvy\nwTbF3wlhbY4i8DS2JBaPcqVvZKfLefOLF06Bf77gXUvTaUlzIF4PRYV9VX8V\nAx/EKYFPgA0xO389SPIK9IVuKY71Vo+CNjMZT2sOGm7vPkp7Ver2OK+a1WF+\nl1zg06RZpSSXwuY0DMGvB9p+dPwZ/6b02rDy8CT0QUOcUH7JiuwJ59kXt+Fr\nR+n4HU5YW/YBaAo3l/kMu1BDIDJkW8XS668LQsqK+82yMEM71ghwCJ1csQ1f\ngszRezok6Jk8EtgGdgmHn+VH6kqsbTRkxh0y2/W0KpCaeISu2XMCqrlMJkMn\n6k3E\r\n=Qlxe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEH+5+OesNu9XR1Wy79l0A3vpPeqqy5JfL7Z69j05EAAIhAKzU6lZaVUZkFttlmwWYWz/kqbxSTflKKbGd7YDbpPQ0"}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.0-rc.1_1619178355367_0.6910624604783215"},"_hasShrinkwrap":false},"0.1.0-rc.2":{"name":"nestjs-terra","version":"0.1.0-rc.2","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.7.0"},"devDependencies":{"@nestjs/common":"^7.6.15","@nestjs/core":"^7.6.15","@nestjs/platform-express":"^7.6.15","@nestjs/platform-fastify":"^7.6.15","@nestjs/testing":"^7.6.15","@types/express":"^4.17.11","@types/jest":"^26.0.22","@types/node":"^14.14.37","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.19.0","@typescript-eslint/parser":"^4.19.0","coveralls":"^3.1.0","eslint":"^7.24.0","eslint-config-prettier":"^8.2.0","eslint-plugin-prettier":"^3.3.1","jest":"^26.6.3","nock":"^13.0.11","prettier":"^2.2.1","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^26.5.4","ts-node":"^9.1.1","tsc-watch":"^4.2.9","tsconfig-paths":"^3.9.0","typescript":"^4.2.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"c6dd784b5eac7d03af9203ccc0c90635662b9211","_id":"nestjs-terra@0.1.0-rc.2","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-/N9FHaLm1T9XiinQgoZa2zEJbKesLA1HU0f3yKa3iVDN49ahQoxpFG7VmJhyqFtVpJ0O6+I2Jm4hQIPC9Yut5A==","shasum":"7a8b0f272db5cd6e29284fd2f10570e716a898d3","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.0-rc.2.tgz","fileCount":22,"unpackedSize":37249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggr7nCRA9TVsSAnZWagAAUI0P/0AzJ/oLGBockhsirrus\nonJNB9UFJKMVb52j26+Uk2E536p7FqoJ5vYhfKYUtDYIza/6mJAUOVElHaX4\nApuoP5eSNwqKUCsXnPGMSDbpKY+uZ1OAa7+Wm+Xe6K6PbL3nb8i4/0Lz+Det\nJq+XV+QheYATyOorovWGSgqo2kbQ/ZVfJpPJxsEszfEzgtTlJKYHo3lHlaHW\nnb307ME03xG7jYBapcqU8JnRTP+iAmooWG7hoTy919bJFFzkHXbmtcdH+KDz\nn+EVrgCJpW+ToTll2O/dgi9jJmkN1YtkoQw98hETCXUsgAdriKnEeel9liVb\ncWjmIw78db4Y3epVkI9lZw8atPE6f87/yastsS5o9GOTm6RJ4hks7frtCUsT\nIUHGbAafMeDt3T5QWOVLjEGI+NM5ISoAOU3nacmigPFBpnuwhJvcs/BGajX1\nuzFvdHQZgVl4vyOUvLrXlwz2u63Lr8ZGS5YM+YuV59YreaYFWQVjGI8GAb76\nRT0q4reK7Oweg1D6uT/35xvSHL6yOMfRgj74T67ssqyTgQ0MaHb6HAijxV3J\n6dFina32mE2BclHrWLgq9v17CToNttJjvpdXwW31kYOiUid648BUTp6qqDw/\n7m/qxBYWFF6ZUQsEDViPB7aXb+q96Y0I90oG0Cmgq0vuE0sCH+50SaAT+372\nA+zR\r\n=d8Oj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxo5bnBo57qHz87/Q99iesYiwtCHCG9GNS9CNa+Pi/FwIhAOzDgyr1WnEWYdRVoOB9g2/yQX/XWjLLif2FVWIkZdsT"}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.0-rc.2_1619181287099_0.6488375562746089"},"_hasShrinkwrap":false},"0.1.0-rc.3":{"name":"nestjs-terra","version":"0.1.0-rc.3","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.7.0"},"devDependencies":{"@nestjs/common":"^7.6.15","@nestjs/core":"^7.6.15","@nestjs/platform-express":"^7.6.15","@nestjs/platform-fastify":"^7.6.15","@nestjs/testing":"^7.6.15","@types/express":"^4.17.11","@types/jest":"^26.0.22","@types/node":"^14.14.37","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.19.0","@typescript-eslint/parser":"^4.19.0","coveralls":"^3.1.0","eslint":"^7.24.0","eslint-config-prettier":"^8.2.0","eslint-plugin-prettier":"^3.3.1","jest":"^26.6.3","nock":"^13.0.11","prettier":"^2.2.1","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^26.5.4","ts-node":"^9.1.1","tsc-watch":"^4.2.9","tsconfig-paths":"^3.9.0","typescript":"^4.2.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"c6dd784b5eac7d03af9203ccc0c90635662b9211","_id":"nestjs-terra@0.1.0-rc.3","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pwT0xoWy7YDkwhKHdafHTMrxzm7YkKjGkI6TkaP+03oG/++SKDqI1VOIQy/xx5uglInL2CCaqmLVmdrVwxUQwQ==","shasum":"af40da9fd5987728b10b39b53ac84802493f7ddf","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.0-rc.3.tgz","fileCount":22,"unpackedSize":37249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggvr8CRA9TVsSAnZWagAAtwIP/0iNMxl8kRBKYiqBIZ1G\n1qrLSjwNKvXnLZ/nr8pbU7QalgmSq2I0yvJv9Gg92Qyn5sUYUoeqseZIvJi8\nao19yIFw1Nzs/59heT+wRYJxi/Jn5+vGm7zI1pF2SVvaAfYxXAXz49WMRWUW\ncvETL3ZPOCDxFezkXRL8tVYFDugRO1t5N8lcmQFidBBrmjnToa9y6LKtJmdb\nE/Qk1bX9lK05pY0+bxigZULj+Ny+i6eGE4H+AsUeEBw9mlCOdvXRtOidC6+P\nbGoFdAm/tye5G8uh9/DreFz808Y2mz7EdET0kB9j1mTKaKAJKknztLh60+6W\nFQuiY+7jTmGRmWft7De3/qJnBapkIvtdM5VU+k2fAJQLW6Ytuga/5QvVlyQc\nQSQ0QJyWCsQrPyiKzKuvA70tIbF5qll8fZHVB9yDrVyxJW3xS621S+rk4a1p\nH5izjL6MakW+s9Vo3VpOiEgzOBRoF5E40oW1dCZshrE4AnndsCaNTJghbhDp\nYEjcfNs5xoQFD7bHj3AzGlpDY2nxXjeENLbhqb8bpDLDw9X1Oqh3z8e6nCdl\nSAT/Z/7hw3hpZHgsdw/pCYb47nQ1AT5GKk4bkcPCvCBilkD7/WyeRt2XtrN+\nk2c3q/UhEV9RU/qvd2cDNtfrJAOjgv0k1/Dz9E1E/xOpUEQeST2oxYQFDbts\npQ8b\r\n=GoG1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFsAs5lWnXz1xdz85nfaouX8ZvQ3X5Y46yuCxAjM9YO/AiAk+uQGqSEoFA9gdJ4QRYt3E+8ErzWtKqh+1Bun1JtO9Q=="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.0-rc.3_1619196667649_0.3470336424957343"},"_hasShrinkwrap":false},"0.1.0-rc.4":{"name":"nestjs-terra","version":"0.1.0-rc.4","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.7.0"},"devDependencies":{"@nestjs/common":"^7.6.15","@nestjs/core":"^7.6.15","@nestjs/platform-express":"^7.6.15","@nestjs/platform-fastify":"^7.6.15","@nestjs/testing":"^7.6.15","@types/express":"^4.17.11","@types/jest":"^26.0.22","@types/node":"^14.14.37","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.19.0","@typescript-eslint/parser":"^4.19.0","coveralls":"^3.1.0","eslint":"^7.24.0","eslint-config-prettier":"^8.2.0","eslint-plugin-prettier":"^3.3.1","jest":"^26.6.3","nock":"^13.0.11","prettier":"^2.2.1","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^26.5.4","ts-node":"^9.1.1","tsc-watch":"^4.2.9","tsconfig-paths":"^3.9.0","typescript":"^4.2.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"c6dd784b5eac7d03af9203ccc0c90635662b9211","_id":"nestjs-terra@0.1.0-rc.4","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-JussBAyHNfw+jMbQ0rjRsk4Z0v/lpEcW+G4qXSCUQcS+mQEa0rsXQ9ch0q+h0j2Vn04iafXbfeJUzmnvlPdppQ==","shasum":"810325b9d35fa1a0fb90188a08eb674de24918d8","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.0-rc.4.tgz","fileCount":22,"unpackedSize":33778,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggx3SCRA9TVsSAnZWagAA4GYQAI7zJGoD1q9mzUI947wB\nwqyGQtgZNJ1RVa1eUGqjp3uv4f6j6V/EMDXRli8g1T/LU+gD2D9/mMC8Wojh\nUcxNqwBKfzLNS+8s4VN9y4xAmqOthyZK1WqBEblaSuYcKImIxy+mXaEYv01M\nDEVvHkVWmApwnco8edFRBttuCyPVnTcS/aNM+aqSRzQp/k0wx/zKz2sIXT+C\n/yEP3wdySZJz08+ILAU1xZI+TT4fOe7BpFpyGjFTR6A3bAs2NX4GJl8IIAsp\namIxRZ4pKz1IBqVyT0hecPGta3dbWLYQAtqWLgrUrARncJNEziBIlncKnEgU\nfAOEQ9SbKwL971XO61DblJmDAIHwF4jxP61nGwkHo8Z81hnV0qn5esf6pjFw\nJFUUKElTc2YjEw3qhrrGmAGSRmwqikjcG9HsBL1WSOVlZFLcOS9fobj9Qw7d\nwJ6JdHwEr5FLTeAcf6s9IO/UczHiIY35RLhljUnlgcW6hWX0BuXz1yOsDWfS\nFbiakkKmhHRziet6Y7CPRRFC9zhUE/kyJ9QHWtEonN4I29bzIp6qqSM4ny2g\nw6cG4G7JjLBlUO3jbfZYQG0aqwb0l7zkz6hHjzRw/N2WiXrHZc1rqPaHWaYA\nm6u5K5I4Bilt15v5JsPXEYZBJQYqNkn8kJt+B2D9oo9VqVWgkewtpjHV0aw4\n9Ww/\r\n=JKuJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2uB2x1MEi/BG1mjHpiMCynTIizatPn6s7eqsHKBneeAIgChzBvvnHHrTPIG0ngWue4iJTg8P74OJuakr+KmX9zgI="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.0-rc.4_1619205585545_0.07824566195031002"},"_hasShrinkwrap":false},"0.1.0":{"name":"nestjs-terra","version":"0.1.0","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.7.0"},"devDependencies":{"@nestjs/common":"^7.6.15","@nestjs/core":"^7.6.15","@nestjs/platform-express":"^7.6.15","@nestjs/platform-fastify":"^7.6.15","@nestjs/testing":"^7.6.15","@types/express":"^4.17.11","@types/jest":"^26.0.22","@types/node":"^14.14.37","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.19.0","@typescript-eslint/parser":"^4.19.0","coveralls":"^3.1.0","eslint":"^7.24.0","eslint-config-prettier":"^8.2.0","eslint-plugin-prettier":"^3.3.1","jest":"^26.6.3","nock":"^13.0.11","prettier":"^2.2.1","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^26.5.4","ts-node":"^9.1.1","tsc-watch":"^4.2.9","tsconfig-paths":"^3.9.0","typescript":"^4.2.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"83049fad94215e3d06f73840b71c8accf5639ad4","_id":"nestjs-terra@0.1.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-Ym7LRGl6wSWwCoY8nsE8PFKf+WGHcB9DN2XEkYFL3da7OmrPjDOoj0rJ1MyyQEcAybmTjrEbrKJy8Op8WNJZNA==","shasum":"ecd9f817657391c1b785edf8d9da7983128d0915","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.0.tgz","fileCount":22,"unpackedSize":33951,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggyaLCRA9TVsSAnZWagAA1aIP+wUXjjc7snoLjWOe15mt\nCbegTKFBgu0qrdgIiGB3b6oCN1ywF0afd/CyfBMr6QvwwA4lEbGjnHGuhq26\naF482C+EaMWANCtPrgVseVsGO1l2jYUneQRQfquYaZCas00gUGKjKYlu4hZr\nQ//DKK3jmYo4LagnHs4wEOwXGtcF4fPXMYVzHvVlo8NdoBYHggBQswhhU0xw\nQOAyDYk4pVwzizglOpfM49wx2YUUuFhvWjGMZmgBGfg59q53pwDDcR902fzK\n4bCNo2lQx52I5McnkqEt2czUoQaaJnptvoh/P6BQKdtNFBVdvSiLUUkGX0dD\nSyk/WSGrOPgiUMKa6QHcU1c4tgf3DhS4ktjfr93juz9ZjMeaQPBNYPFSnngm\nLtsxIW64Ne2KaO3UsN8naV0RzJLr9N/rGM19zphtt/nB8Z4l0rbMnAduS7sZ\nCM1MTGf+4wFESf3/nR6yI0jJW/HL+ILcLCgUN1ilHVC+se++2EXPKb4RCnSP\nfLfNB9umvBDz8GyjuxVZ9Wehqe5mpg4Dygy93tiolaWV0qn9XJfZ14N5+aiD\nJ1r8QOe/ZzkuEMWUlw1CIvmkhDd1FvHmT55ThxsGjktXygTuRM4NyrvExqfX\nSzLDiMZ+iK6kMvMPD4kwym2z3gNBUnuuvVP8pFbJlEeP6bnbsRaw9JtuLJQ1\nFPVt\r\n=PIak\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqnfqKIOvC02xJaprYZIU91uFdBdCBjdBWgAU+2QDLUAiEAldbwhGBXU4OejkdX3zgiNI/sqyQTxEUjEt1f1eLN/5Y="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.0_1619207818975_0.1076912933959906"},"_hasShrinkwrap":false},"0.1.2":{"name":"nestjs-terra","version":"0.1.2","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.7.0"},"devDependencies":{"@nestjs/common":"^7.6.15","@nestjs/core":"^7.6.15","@nestjs/platform-express":"^7.6.15","@nestjs/platform-fastify":"^7.6.15","@nestjs/testing":"^7.6.15","@types/express":"^4.17.11","@types/jest":"^26.0.22","@types/node":"^14.14.37","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.19.0","@typescript-eslint/parser":"^4.19.0","coveralls":"^3.1.0","eslint":"^7.24.0","eslint-config-prettier":"^8.2.0","eslint-plugin-prettier":"^3.3.1","jest":"^26.6.3","nock":"^13.0.11","prettier":"^2.2.1","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^26.5.4","ts-node":"^9.1.1","tsc-watch":"^4.2.9","tsconfig-paths":"^3.9.0","typescript":"^4.2.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"69be7dcd01449c9c628ac7f927072fe7bdabafdc","_id":"nestjs-terra@0.1.2","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-YrJweBOyLzl/8taymkO0dYRi6m6JbWqeVQNT45+eJrt5yIBmc3v0oEpr/6HOGkDU9m6pCG6pATtAEX74XK9CYg==","shasum":"bbff28b0c0e2960e9e774baa5c447608c09d70c1","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.2.tgz","fileCount":22,"unpackedSize":34536,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJghyU/CRA9TVsSAnZWagAAYhQQAJbmLHXmQ8BmZwUSGVM6\n7rdHZ38oGEC4IDVG0VtJ+doleePu3tYfBwDrNRbuMro32K6TVtoFt6/ptMDt\nzS4o2bkGFdilsgRJznQVDBN3/XEVn36zeh0EGS3uSfJ/1GJkhEbeH4yQwJ6c\n2zWCluFClu/Nv3J+SNRJwEcWnw3JXml0/veIFoCjsBesaUnSBShJgiKuofsN\nXBypgcYpKmCpzS3GGMQ631w5e6CkXhcWGOiK+sWHpwxPnVZPH9A3Lcs+COPn\nPEyDbaDycr5bVQcwVFNcxEZxRp8ZN7yVYWWY2IXCinlx8GGRxX3Te0QHINF+\nX0phIxHCkozS5/bRkiMSBob5wLGQ7Perw2sAV/X0u5roa8xj/jpUd96Qf8s5\n7rAcDNltLQLKzavGOfW2WAl333KUbSacnsxO7baaqXVmdDMs0r0/vA3BbZgG\nT3cz4ARgvNsJyG3Ee+88n6tmw6SC2O91nQSY4zhXvvCPLoIMhWV5zs0XB1iS\nXuacpCUFAR/AbwMY/+xXgM7Zu2/TuHwkSnxy7nwi5am6NUcgIm1Qviz0KtsK\n7FEGS6r1GLfpbhImP8Rmh4zHeaxkDrozjeTPtMBI48xnCo+5fd1dsPuEvM4i\nL+b7qYlNWKGBYn5/kuIOC7Agpav4Cn0QLMRrt9O9JJCfvCEJI/+EkvfNx+Kq\ncbmn\r\n=JQ3Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICgceSXMDKK8K6XVoteZAHe/2UKa5AiBk3Xp4E9DYKbdAiBcfzic6pWkRbXFag2kft3UWsrPkqcp96F4gic+tpp0cQ=="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.2_1619469630636_0.8627610996499879"},"_hasShrinkwrap":false},"0.1.3-beta.1":{"name":"nestjs-terra","version":"0.1.3-beta.1","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.8.4"},"devDependencies":{"@nestjs/common":"^7.6.18","@nestjs/core":"^7.6.18","@nestjs/platform-express":"^7.6.18","@nestjs/platform-fastify":"^7.6.18","@nestjs/testing":"^7.6.18","@types/express":"^4.17.12","@types/jest":"^26.0.23","@types/node":"^15.12.5","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.28.1","@typescript-eslint/parser":"^4.28.1","coveralls":"^3.1.0","eslint":"^7.29.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jest":"^27.0.6","nock":"^13.1.0","prettier":"^2.3.2","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^27.0.3","ts-node":"^10.0.0","tsc-watch":"^4.4.0","tsconfig-paths":"^3.9.0","typescript":"^4.3.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"28da312266d498ef8bc613309f28f261c9a9a81c","_id":"nestjs-terra@0.1.3-beta.1","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-LmCw4JMKPdLA+8sD/F87T5amHO5JtIMri+JAqbm0dSrVhF221H/K/wDNUpfZ8qfBCsxxEA8tkNcOtJCqTBl3ug==","shasum":"37d0fa050327cbfd73c2b91c8ea13da507d07a15","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.3-beta.1.tgz","fileCount":22,"unpackedSize":34542,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2i4mCRA9TVsSAnZWagAAE8QP/iveaC9tBPYrqECQItFH\n3ZR3xBRwV+E/gof0a1Yx92WzGwoXEON+FlYN+exexPLi3XHQLuYPwdbTtqki\ngp5apJTmks2l81FK1PBo9w8gYzX3cWwD+rYWNU7oZ15j5ik9lRCG356D0tOZ\nM9g6XdjuSuZSojGdzQz0hA8WT3sksY3yjGgdYXpT7PlkJhf/WVSboMFKpvnb\n/NgsIEZot41if3yf0pukGxr+UukVb9UnHLmjdQwznPitlRd/pSi9rELKK3MZ\n60aAo9VasIKGRkaoRGyOhhE3xT7T9fmVeqWcSYc2HYmlkOwd3bViSqLtBPd8\nb2Mxl0aNU95r+MQX677d8s5XwaL08jH6APvgwqY6mgF414NxBFjpg5QQEt+4\nWEZ/66IqcVdkT7khrPT/eXU1quxaf4GzgYa40Z1X8jbenoAyr07YVhR3jYGV\nouRbjnvd2DwNb4hE4dTtht+1luzUgXgHwZA1em5Etge0k7Kbv/xtM3WCj+is\n8Zd+7ZNoxrw1WTJHRRsMePB8exiPD6b0u69Tr8w9zcMElpm3E0G4DIZCR6Wu\nzDv+sOkgxeM4pB6NDlL3lnhLLeRsC5iyGk0ZGEiEaAsuCLAx/R3mvWVTUq8Y\nFavhhNtctRkEEtCsG5ZsamthRetSbfaYZjsLohUMcvFNq/YtIX1K2EwLOego\ntCjL\r\n=9sj/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICJqSjE9wa5O45yuwQhGqCvtogHNIjj9jeu3oFIZx+eGAiEA5u/QM+OZmopU/CpJJ9MgpV/Rq5wca3ngfSfqnIxtoQs="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.3-beta.1_1624911398028_0.4060267277610399"},"_hasShrinkwrap":false},"0.1.3":{"name":"nestjs-terra","version":"0.1.3","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^10.24 || >=12.22 || >=14.16 || >=16.00"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","test:e2e":"jest --config ./test/jest-e2e.json","report":"cat ./coverage/lcov.info | coveralls","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.8.4"},"devDependencies":{"@nestjs/common":"^7.6.18","@nestjs/core":"^7.6.18","@nestjs/platform-express":"^7.6.18","@nestjs/platform-fastify":"^7.6.18","@nestjs/testing":"^7.6.18","@types/express":"^4.17.12","@types/jest":"^26.0.23","@types/node":"^15.12.5","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.28.1","@typescript-eslint/parser":"^4.28.1","coveralls":"^3.1.0","eslint":"^7.29.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jest":"^27.0.6","nock":"^13.1.0","prettier":"^2.3.2","reflect-metadata":"^0.1.13","rxjs":"^6.6.7","supertest":"^6.1.3","ts-jest":"^27.0.3","ts-node":"^10.0.0","tsc-watch":"^4.4.0","tsconfig-paths":"^3.9.0","typescript":"^4.3.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"4010b3f01a2db7c54472482adad677dcc6018afd","_id":"nestjs-terra@0.1.3","_nodeVersion":"10.24.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-ZlQS1z3sQNzLuEErn4i9xmLrh99oFccQdBiVbGVaWif6slUxYXdyTEBQr7yAtW5uds9hLSSqgwWvbicf75jyvg==","shasum":"72411b9fed4612a7aa6b4555c0b91c67d5b58527","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.3.tgz","fileCount":22,"unpackedSize":34703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2jUyCRA9TVsSAnZWagAA5S0P/0q8aYLpOz+0osf6byrp\ndO7oWT3sLwYbgqYkj8uyq2frNSXyWzINb0fTs+B9zZz/xkxty4qZfHPYJ1nl\ntxun+qTusSPmq/fixD2MvgKpA0U3EbQp7NNYO5upE7mGtCT68iTa8rMSVxGS\neXR8anDhcAQ3UVLI5bCMe7fXRv1aDvdR4RYfeWKSrddxOsBaHuZ0BsHBTAOb\nwp4+5LSPFT0ZF3M0Kjrej0oYgHGX/tNkP77fnERrr7TkrENQwjZv+SUhUSdj\nxlQK6av6uTVNsS1sIMxN+0g4QJ9BbOHaffkKaNWHc989jsbYiQDjmknmZE3w\npuePFTJuBsP0HU+UTLJ+4dLYG3sKoL3XKUWIz27ncEaNQhvNZtZ5ONTn8vl2\nR6GJUOxYbd9qjFaWGFhqMbgNGaQBc1hqgy0+1bFud9aK6p9SoS50V8JkEfop\nUuyAmiLKLvVA60K9ez8/FY6CWgi+VcKXU1SOGC2ISgeJW31tVQNTKLxb0Tsh\nmOxaNp1STzGyx0qYILqcn6/hA+K+3PPCLr11rttnP1364iDRUfSxI4BZcwnZ\ndxn8q1n+qEvtbfMK2NHBx9yc4HBc8tqU8hDuI6OYXLK4072Pysg6iFuklSfG\n/GC1G5TYmb+6NWrq1BYVk9w5HkToEgHg+7VZ28a9gMx89Rmq+uqYJgyxHUG7\ni5Ur\r\n=br3T\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDgn1F5NphaHVTBYEwfSqDxHxEqqecnhBx6Z4MFP+hrIAiAb5ba5pWyz2V8NZJGRJ+44YVLoRPEVFoKew61nBp1fLA=="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.3_1624913201589_0.10827945655387383"},"_hasShrinkwrap":false},"0.1.4":{"name":"nestjs-terra","version":"0.1.4","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.8.6"},"devDependencies":{"@nestjs/common":"^8.0.2","@nestjs/core":"^8.0.2","@nestjs/platform-express":"^8.0.2","@nestjs/platform-fastify":"^8.0.2","@nestjs/testing":"^8.0.2","@types/express":"^4.17.13","@types/jest":"^26.0.24","@types/node":"^16.3.1","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","eslint":"^7.30.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jest":"^27.0.6","nock":"^13.1.1","prettier":"^2.3.2","reflect-metadata":"^0.1.13","rxjs":"^7.2.0","supertest":"^6.1.3","ts-jest":"^27.0.3","ts-node":"^10.1.0","tsc-watch":"^4.4.0","tsconfig-paths":"^3.10.1","typescript":"^4.3.5"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"1e5a35cd0df6030190f747b966c2e9c01925b09b","_id":"nestjs-terra@0.1.4","_nodeVersion":"14.17.1","_npmVersion":"6.14.13","dist":{"integrity":"sha512-cW1ICozOjXtUq097suRj/pVeIHUrqBJN/2Bb/eGxyzeCNLDm6N4lhYMIrdJ64fNUe1EhSamkqAhVU4Cab34oPQ==","shasum":"19fd474210363f7ae97bddabbae7cf25452d48ea","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.4.tgz","fileCount":23,"unpackedSize":36402,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7bIACRA9TVsSAnZWagAATBgP/i67XszMcmSTG177VJfr\nZe9K1BWiu9EMftZDW/FbeKeAVycExbg3wIFS41zw6BXVhDWOr01BCRfNwlY9\nPLdwogCHGUFIjc7L5g9WYh4JHaoS4WbSNUTjOHuKSr8+uMRiZO5rLPqDZX5o\nT8+DmpJIN2weCysppAZnqWUcKhwtXlEJq9glKCbEShUkmSx2+ELOLIpxeeg8\nyFyMdhETBW9F+mjGXwAhnXWCju1iLhc4hFDjLsFD92GoYUBr3B7jw5kvCEQI\nhcQYKFQQDTb9AW9vC4Um5qdf1uj5jSTHtt/MDtOyCGufqjNm0P9D7OSTbhQB\nvPSIg0H7FXXodeLmgikNSJqzbeLS55yarKN0dLmoStLR+3LCv0bBVnCBN8yD\n8W7F6ie+I1i7gsTb+ZksgID7H/M0OQJtIAD5p370/G7oWarqR7BoTFsvdnJ5\n0ny6kCvz5aEh/JqdU/9unbOna1ZTqJAN/TACKGhDTG+Isw3zKyZy+m2nE+Op\nvHqAb/ghg4US/24buLJ9ZYGsL2QBdm8yzirzPKfO80FMZHTrH31rQeoVWDpr\nrt1AN/nWmvuUgvzgs2fxSlgZowf6g1nSsOa9bRuZq9fVHWOiL/b79Um+AydG\nrHmSoMdzXJO5myC20s01UPM0cck3kIJmmFHLcFZEZPB0Een1AUymz+1esifk\n3bo1\r\n=khVx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7mlffmNQrJ1jn6VJ62crZKVbHeaBbyX1cJkWrFYDZ7QIgffR5Y+6mAOVcDEvtnmiTK96w2/hbl+KL4iBXn2oplfk="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.4_1626190335566_0.7029102422307221"},"_hasShrinkwrap":false},"0.1.5":{"name":"nestjs-terra","version":"0.1.5","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"1.8.9"},"devDependencies":{"@nestjs/common":"^8.0.6","@nestjs/core":"^8.0.6","@nestjs/platform-express":"^8.0.6","@nestjs/platform-fastify":"^8.0.6","@nestjs/testing":"^8.0.6","@types/express":"^4.17.13","@types/jest":"^27.0.0","@types/node":"^16.4.14","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.29.1","@typescript-eslint/parser":"^4.29.1","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","jest":"^27.0.6","nock":"^13.1.1","prettier":"^2.3.2","reflect-metadata":"^0.1.13","rxjs":"^7.3.0","supertest":"^6.1.5","ts-jest":"^27.0.4","ts-node":"^10.2.0","tsc-watch":"^4.4.0","tsconfig-paths":"^3.10.1","typescript":"^4.3.5"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"555376a5f1ac6e8308fd2b7f4d403e9ce0364480","_id":"nestjs-terra@0.1.5","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-j0G/0k0jddj67LKdfDrdsl2Lk5BsA5c6g3l+OLabGvHZjiC96BPGQImDj/EP2fknxWQ5IAnWGnyt8g4NzL+ObQ==","shasum":"0ef44de4968521ba781aa1a547eed253fef5fe3f","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.1.5.tgz","fileCount":23,"unpackedSize":36578,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFDM4CRA9TVsSAnZWagAA8QYP/idL0DWb3tPPUr1iamK8\nv1dZ5c+u7U7XBSDWBZ5uM9lr2hImFXgg91vYN2kTWjCdhfVBmTqPWQtuSojw\nGrEzooWY1nXrhSY0pB09J8qhGbyutXvzvVGUEulOxjBFxKUM2YY04BSzkmcb\nU0bDZdEZxEKlP3r+5NbousYg3GT25oSjyE8zri9oDhBBc4qXqOpzFVOZZUBT\nmudodryESDzEzn/EssQVEOPOOczYncMqFZW7W+PSIScY23OxGEnl6MbtcOOL\nyufbv4oiJhhqdGP2sFGwKw5ey8HsGiJZ1pnZfEZ4x1N9VGSzxghu+16Sa8SY\nqBqpzhiQmwLR+pgom1n/5NGCsen+l+1gc2WL/GYluRD8QqF7dszdr+TsZdYZ\nZ6CZ+NMPOmOA3Fg7QThqxhJ2hqft2GiXsFIhTDoVFOkSPm0fm5xp3t6/KItI\nyaeW1CdZ+tCPeb0xCMamJHAQBg3lmFKgbeG15vWE4uuQ1VsxJx/+GoXRjj+1\nKkH6d+pSpc87WhHhlk6T9lYPG6Y8suoDiMzxjLYwTX8e1E7pIZNfmqKaZGOc\nHdVeDWOpWYm63gR5Qo4YSJTlUSgxdnBRt+f03Hhj8zfSzUmZ3sZZX7BXnNRE\njvdEZllBOpCCQMAkjFjKqTvYYCXprkKn4qrpLBNuTlq0b1NOcDidIZq/6/Dn\nyN2o\r\n=Ogxh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3uv7LjREEvOQyoCnNGBE8yEERIGumhrhDWgOr/pVZEAiAJafE1BiyyXdks7af7zwuOzyQzKVp937uM95zAyJtMxA=="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.1.5_1628713783884_0.10097481046491485"},"_hasShrinkwrap":false},"0.2.0-beta.2":{"name":"nestjs-terra","version":"0.2.0-beta.2","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","readmeFilename":"README.md","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"2.0.2"},"devDependencies":{"@nestjs/common":"^8.0.6","@nestjs/core":"^8.0.6","@nestjs/platform-express":"^8.0.6","@nestjs/platform-fastify":"^8.0.6","@nestjs/testing":"^8.0.6","@types/express":"^4.17.13","@types/jest":"^27.0.1","@types/node":"^16.7.1","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.29.2","@typescript-eslint/parser":"^4.29.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","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","ts-jest":"^27.0.5","ts-node":"^10.2.1","tsc-watch":"^4.5.0","tsconfig-paths":"^3.10.1","typescript":"^4.3.5"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"readme":"NestJS-Terra\n=============\n\n[![npm](https://img.shields.io/npm/v/nestjs-terra)](https://www.npmjs.com/package/nestjs-terra)\n[![CircleCI](https://circleci.com/gh/jarcodallo/nestjs-terra/tree/main.svg?style=svg)](https://circleci.com/gh/jarcodallo/nestjs-terra/tree/main)\n[![Coverage Status](https://coveralls.io/repos/github/jarcodallo/nestjs-terra/badge.svg?branch=main)](https://coveralls.io/github/jarcodallo/nestjs-terra?branch=main)\n[![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/nestjs-terra)](https://snyk.io/test/github/jarcodallo/nestjs-terra)\n[![dependencies](https://img.shields.io/david/jarcodallo/nestjs-terra)](https://img.shields.io/david/jarcodallo/nestjs-terra)\n[![dependabot](https://badgen.net/dependabot/jarcodallo/nestjs-terra/?icon=dependabot)](https://badgen.net/dependabot/jarcodallo/nestjs-terra/?icon=dependabot)\n[![supported platforms](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)\n\n\nTerra blockchain utilities for NestJS based on [Terra.js](https://github.com/terra-project/terra.js)\n\n## Install\n\n```sh\nnpm i nestjs-terra\n```\n\n## Register module\n\n### Configuration params\n\n`nestjs-terra` can be configured with this options:\n\n```ts\ninterface TerraModuleOptions {\n  /**\n   * The base URL to wich Light Client Daemon (LCD) requests will be made.\n   * For example: https://lcd.terra.dev\n   */\n  URL: string;\n\n  /**\n   * Chain ID of the blockchain to connect to.\n   * For example:\n   *  - columbus-5: Mainnet\n   *  - tequila-0004: Testnet\n   *  - bombay-9: Testnet\n   */\n  chainID: string;\n\n  /**\n   * Optional parameter for gas prices to use for fee estimation.\n   */\n  gasPrices?: Coins.Input;\n\n  /**\n   * Optional parameter for gas adjustment value to use for fee estimation.\n   */\n  gasAdjustment?: Numeric.Input;\n}\n```\n\n### Synchronous configuration\n\nUse `TerraModule.forRoot` method with [Options interface](#configuration-params):\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Module({\n  imports: [\n    TerraModule.forRoot({\n      URL: MAINNET_LCD_BASE_URL,\n      chainID: MAINNET_CHAIN_ID,\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\n### Asynchronous configuration\n\nWith `TerraModule.forRootAsync` you can, for example, import your `ConfigModule` and inject `ConfigService` to use it in `useFactory` method.\n\n`useFactory` should return object with [Options interface](#configuration-params)\n\nHere's an example:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  providers: [ConfigService],\n  exports: [ConfigService]\n})\nclass ConfigModule {}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      imports: [ConfigModule],\n      inject: [ConfigService],\n      useFactory: async (config: ConfigService) => {\n        await somePromise();\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\nOr you can just pass `ConfigService` to `providers`, if you don't have any `ConfigModule`:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID,\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      providers: [ConfigService],\n      inject: [ConfigService],\n      useFactory: (config: ConfigService) => {\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  controllers: [TestController]\n})\nclass MyModule {}\n```\n\n## TerraLCDClient\n\n`TerraLCDClient` implements standard [LCDClient](https://github.com/terra-project/terra.js/wiki/Making-a-connection). So if you are familiar with it, you are ready to go.\n\n```ts\nimport { InjectTerraLCDClient, TerraLCDClient, MnemonicKey } from 'nestjs-terra';\n\n@Injectable()\nexport class TestService {\n  constructor(\n    @InjectTerraLCDClient()\n    private readonly terraClient: TerraLCDClient,\n  ) {}\n  async someMethod(): Promise<{ accountNumber: string }> {\n    const wallet = this.terraClient.wallet(\n      new MnemonicKey({\n        mnemonic: [\n          'satisfy',\n          'adjust',\n          'timber',\n          'high',\n          'purchase',\n          'tuition',\n          'stool',\n          'faith',\n          'fine',\n          'install',\n          'that',\n          'you',\n          'unaware',\n          'feed',\n          'domain',\n          'license',\n          'impose',\n          'boss',\n          'human',\n          'eager',\n          'hat',\n          'rent',\n          'enjoy',\n          'dawn',\n        ].join(' ')\n      }),\n    );\n    const accountNumber = await wallet.accountNumber();\n\n    return { accountNumber: accountNumber.toString() };\n  }\n}\n```\n\n## Testing a class that uses @InjectTerraLCDClient\n\nThis package exposes a getTerraToken() function that returns a prepared injection token based on the provided context. \nUsing this token, you can easily provide a mock implementation of the `TerraLCDClient` using any of the standard custom provider techniques, including useClass, useValue, and useFactory.\n\n```ts\n  const module: TestingModule = await Test.createTestingModule({\n    providers: [\n      MyService,\n      {\n        provide: getTerraToken(),\n        useValue: mockProvider,\n      },\n    ],\n  }).compile();\n```\n\n## Change Log\n\nSee [Changelog](CHANGELOG.md) for more information.\n\n## Contributing\n\nContributions welcome! See [Contributing](CONTRIBUTING.md).\n\n## Author\n\n**Jose Ramirez [Twitter](https://twitter.com/jarcodallo)**\n\n## License\n\nLicensed under the Apache 2.0 - see the [LICENSE](LICENSE) file for details.\n","gitHead":"2a304d0da7114afb5b3c8c1fa4bec952cd959e53","_id":"nestjs-terra@0.2.0-beta.2","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-ilBDtHH9vcrZ4VypQ5aAL8MPAeefvEQpJb0JJtbKXqu8Vvk4I0Nh1AfbMcI8DmNcb+aaGuiq8t60wTHUhXEhzw==","shasum":"d5496090a5913f7bfae548fc5606df795a251c6d","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.2.0-beta.2.tgz","fileCount":23,"unpackedSize":37781,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIiasCRA9TVsSAnZWagAAcvAQAIVthoB5W42fFnP1ScnX\nhyCdXfMZuL8bYUdDU0USJO94FOELf+hHtPetAbt2FFf4FIIWyof70mJKfqRQ\nz1JYSUOmdYPWG/pOINQIFWzkDHa7iIHDG4Qn3mQFE80OzNz8cgHdmIFSbDue\n6o/DwCPmXLZk26gI91HxXewhxW5OhuDFTvRa6m047D/92d6D4coukN+17zy3\nh9TJ09bWYiQ6DYGgYEiho6lr92vTkyexZPBmsfby8AE8SgqvBYSFOPxt2ak0\nQTFBqIblUpJLcp4mLpqUCgSQV3x/jxc+1mVaOojtZjqu9S12/8AgoKGpysIe\ndjmCt+HHwS+drS9yi58HnW5hT9bOapN9QytxFcVVxGtvuyQBMdDY3JNwbIf2\natacPiTD5rlKbpd9mL/aOyakc6C26Z0MlZM2ghMkL0PfkzsgcwGOcD/bICOQ\n9GF9L+W7TKLVDH1aYPMvUySpGcIsu0z+4mW5ANFLWtdWy0bpfUlJ6/W9E/Bk\nh6Q54wo3voAM36h14pW39nM9p8xC5XAn/D+sXKq8LcvqU4jZxqGoS59XcBbC\nJPcJX4ftW7xJ2igTA4FrXf2jL4pC+PkYmOexnjDXfx7Ef4Nc7IXtVkhTn2bF\ndWyRJrFM0doy7dMs2BOI8ZBb5ASPCBhvV/KMtLK0UL2aXlsC2F9TMxFKSBGQ\n8VVc\r\n=jdjN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3cAiRPWKMwgje92+rw57w43Y8z6UDtxcN0rS3G8a7TAIgSpVi0CJRUzGpOxJOPy+uIVRwBUTyQ6qLQYA4e5wQ1Uc="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.2.0-beta.2_1629628076440_0.0297632497610425"},"_hasShrinkwrap":false},"0.2.0-beta.3":{"name":"nestjs-terra","version":"0.2.0-beta.3","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","readmeFilename":"README.md","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"2.0.2"},"devDependencies":{"@nestjs/common":"^8.0.6","@nestjs/core":"^8.0.6","@nestjs/platform-express":"^8.0.6","@nestjs/platform-fastify":"^8.0.6","@nestjs/testing":"^8.0.6","@types/express":"^4.17.13","@types/jest":"^27.0.1","@types/node":"^16.7.1","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.29.2","@typescript-eslint/parser":"^4.29.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","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","ts-jest":"^27.0.5","ts-node":"^10.2.1","tsc-watch":"^4.5.0","tsconfig-paths":"^3.10.1","typescript":"^4.3.5"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"readme":"NestJS-Terra\n=============\n\n[![npm](https://img.shields.io/npm/v/nestjs-terra)](https://www.npmjs.com/package/nestjs-terra)\n[![CircleCI](https://circleci.com/gh/jarcodallo/nestjs-terra/tree/main.svg?style=svg)](https://circleci.com/gh/jarcodallo/nestjs-terra/tree/main)\n[![Coverage Status](https://coveralls.io/repos/github/jarcodallo/nestjs-terra/badge.svg?branch=main)](https://coveralls.io/github/jarcodallo/nestjs-terra?branch=main)\n[![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/nestjs-terra)](https://snyk.io/test/github/jarcodallo/nestjs-terra)\n[![dependencies](https://img.shields.io/david/jarcodallo/nestjs-terra)](https://img.shields.io/david/jarcodallo/nestjs-terra)\n[![dependabot](https://badgen.net/dependabot/jarcodallo/nestjs-terra/?icon=dependabot)](https://badgen.net/dependabot/jarcodallo/nestjs-terra/?icon=dependabot)\n[![supported platforms](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)\n\n\nTerra blockchain utilities for NestJS based on [Terra.js](https://github.com/terra-project/terra.js)\n\n## Install\n\n```sh\nnpm i nestjs-terra\n```\n\n## Register module\n\n### Configuration params\n\n`nestjs-terra` can be configured with this options:\n\n```ts\ninterface TerraModuleOptions {\n  /**\n   * The base URL to wich Light Client Daemon (LCD) requests will be made.\n   * For example: https://lcd.terra.dev\n   */\n  URL: string;\n\n  /**\n   * Chain ID of the blockchain to connect to.\n   * For example:\n   *  - columbus-5: Mainnet\n   *  - tequila-0004: Testnet\n   *  - bombay-9: Testnet\n   */\n  chainID: string;\n\n  /**\n   * Optional parameter for gas prices to use for fee estimation.\n   */\n  gasPrices?: Coins.Input;\n\n  /**\n   * Optional parameter for gas adjustment value to use for fee estimation.\n   */\n  gasAdjustment?: Numeric.Input;\n}\n```\n\n### Synchronous configuration\n\nUse `TerraModule.forRoot` method with [Options interface](#configuration-params):\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Module({\n  imports: [\n    TerraModule.forRoot({\n      URL: MAINNET_LCD_BASE_URL,\n      chainID: MAINNET_CHAIN_ID,\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\n### Asynchronous configuration\n\nWith `TerraModule.forRootAsync` you can, for example, import your `ConfigModule` and inject `ConfigService` to use it in `useFactory` method.\n\n`useFactory` should return object with [Options interface](#configuration-params)\n\nHere's an example:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  providers: [ConfigService],\n  exports: [ConfigService]\n})\nclass ConfigModule {}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      imports: [ConfigModule],\n      inject: [ConfigService],\n      useFactory: async (config: ConfigService) => {\n        await somePromise();\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\nOr you can just pass `ConfigService` to `providers`, if you don't have any `ConfigModule`:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID,\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      providers: [ConfigService],\n      inject: [ConfigService],\n      useFactory: (config: ConfigService) => {\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  controllers: [TestController]\n})\nclass MyModule {}\n```\n\n## TerraLCDClient\n\n`TerraLCDClient` implements standard [LCDClient](https://github.com/terra-project/terra.js/wiki/Making-a-connection). So if you are familiar with it, you are ready to go.\n\n```ts\nimport { InjectTerraLCDClient, TerraLCDClient, MnemonicKey } from 'nestjs-terra';\n\n@Injectable()\nexport class TestService {\n  constructor(\n    @InjectTerraLCDClient()\n    private readonly terraClient: TerraLCDClient,\n  ) {}\n  async someMethod(): Promise<{ accountNumber: string }> {\n    const wallet = this.terraClient.wallet(\n      new MnemonicKey({\n        mnemonic: [\n          'satisfy',\n          'adjust',\n          'timber',\n          'high',\n          'purchase',\n          'tuition',\n          'stool',\n          'faith',\n          'fine',\n          'install',\n          'that',\n          'you',\n          'unaware',\n          'feed',\n          'domain',\n          'license',\n          'impose',\n          'boss',\n          'human',\n          'eager',\n          'hat',\n          'rent',\n          'enjoy',\n          'dawn',\n        ].join(' ')\n      }),\n    );\n    const accountNumber = await wallet.accountNumber();\n\n    return { accountNumber: accountNumber.toString() };\n  }\n}\n```\n\n## Testing a class that uses @InjectTerraLCDClient\n\nThis package exposes a getTerraToken() function that returns a prepared injection token based on the provided context. \nUsing this token, you can easily provide a mock implementation of the `TerraLCDClient` using any of the standard custom provider techniques, including useClass, useValue, and useFactory.\n\n```ts\n  const module: TestingModule = await Test.createTestingModule({\n    providers: [\n      MyService,\n      {\n        provide: getTerraToken(),\n        useValue: mockProvider,\n      },\n    ],\n  }).compile();\n```\n\n## Change Log\n\nSee [Changelog](CHANGELOG.md) for more information.\n\n## Contributing\n\nContributions welcome! See [Contributing](CONTRIBUTING.md).\n\n## Author\n\n**Jose Ramirez [Twitter](https://twitter.com/jarcodallo)**\n\n## License\n\nLicensed under the Apache 2.0 - see the [LICENSE](LICENSE) file for details.\n","gitHead":"ccd23139f550ff97cf1bfbbf3708d2301e193d33","_id":"nestjs-terra@0.2.0-beta.3","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Ha3sDO1SqKPeN/15K/bRhhjjYG/Xc6wK5i7LY+i/2eRVTAOz4ulJLbE0QLMmEnCUT38W5vrmOqd0O2xvYTujGw==","shasum":"d0be69f791632cbc89debd1596cc5ddb0da0acfc","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.2.0-beta.3.tgz","fileCount":23,"unpackedSize":37787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJXbpCRA9TVsSAnZWagAAKkgQAJcplc451OndTNlUiJYY\n8l0oL8opJs68eBZLTTTdJl3J2WvDaZctY4dw2uv24Y8JO26/eUV7F/U1jJQ8\nsTNyaNDUTS2ord9ZzxCiHTJF7UM2TSl7QhJzFwcPplepjpdDX6dkG3PuV80C\njldTvwoy2z9UQ81R52TZ8PACvTCsSXU6XJHGtZ6kDEzSWzAXJ+RrJ34A4Dcm\n9GE/QQwpVIi0H3v9ps85p0AMfUYy+q8hjq2fQ9YkBCux7Nym+kMx3wXD+m8d\nYjREWcfiplA5zsdnOJ4uGxFaxuGKiUE3K8YvSd0bv8K7fVirIuJDzO3Lmse8\nZDoUcqtxDbJqOqzFOCXO8tOcFfmKRUcWQHWKpyUPDEuNoGJrdh3loCaMZ1w9\nZzOxii2+4t6nD/TXSFLk+vUCYKLzlI6B74mF4LR4Vp9egx76h7eOe+zftmyk\nDfDjCxee59exN+PjBo9vpBpWeK4TF4UGokwfSN24UGenqZsq4ARk6gJWwiyA\n+VFY8hpCkG4AISvT487Kw/OL3OX4WEk9m4Rt3PDi6mB6Zje6tjpa8gJd6B2L\nC2Dtnhx2xn5GiZd55DwmC368oTAj1f3fPPhnTYD7KKWPpK3HjC2dcrOgT/3W\nKD3jtXCuNoIrbn6ZYVdlOjlsvjHiX1VwdZoajHhMfBeGyGV2vVmH8mZpkrgP\n4VGM\r\n=XAkn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFv6gTQNoVtAalSFbEPLhhvW7NgmKkGxDcPsGAb30vFwIhAM1rNREHX6MazsZhSVNmPVEjvq/d79+yrmfQZgTxJ2/7"}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.2.0-beta.3_1629845225262_0.3408127311470115"},"_hasShrinkwrap":false},"0.2.0-beta.4":{"name":"nestjs-terra","version":"0.2.0-beta.4","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","readmeFilename":"README.md","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"2.0.2"},"devDependencies":{"@nestjs/common":"^8.0.6","@nestjs/core":"^8.0.6","@nestjs/platform-express":"^8.0.6","@nestjs/platform-fastify":"^8.0.6","@nestjs/testing":"^8.0.6","@types/express":"^4.17.13","@types/jest":"^27.0.1","@types/node":"^16.7.1","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.29.2","@typescript-eslint/parser":"^4.29.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.1","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","ts-jest":"^27.0.5","ts-node":"^10.2.1","tsc-watch":"^4.5.0","tsconfig-paths":"^3.10.1","typescript":"^4.3.5"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"readme":"NestJS-Terra\n=============\n\n[![npm](https://img.shields.io/npm/v/nestjs-terra)](https://www.npmjs.com/package/nestjs-terra)\n[![CircleCI](https://circleci.com/gh/jarcodallo/nestjs-terra/tree/main.svg?style=svg)](https://circleci.com/gh/jarcodallo/nestjs-terra/tree/main)\n[![Coverage Status](https://coveralls.io/repos/github/jarcodallo/nestjs-terra/badge.svg?branch=main)](https://coveralls.io/github/jarcodallo/nestjs-terra?branch=main)\n[![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/nestjs-terra)](https://snyk.io/test/github/jarcodallo/nestjs-terra)\n[![dependencies](https://img.shields.io/david/jarcodallo/nestjs-terra)](https://img.shields.io/david/jarcodallo/nestjs-terra)\n[![dependabot](https://badgen.net/dependabot/jarcodallo/nestjs-terra/?icon=dependabot)](https://badgen.net/dependabot/jarcodallo/nestjs-terra/?icon=dependabot)\n[![supported platforms](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)\n\n\nTerra blockchain utilities for NestJS based on [Terra.js](https://github.com/terra-project/terra.js)\n\n## Install\n\n```sh\nnpm i nestjs-terra\n```\n\n## Register module\n\n### Configuration params\n\n`nestjs-terra` can be configured with this options:\n\n```ts\ninterface TerraModuleOptions {\n  /**\n   * The base URL to wich Light Client Daemon (LCD) requests will be made.\n   * For example: https://lcd.terra.dev\n   */\n  URL: string;\n\n  /**\n   * Chain ID of the blockchain to connect to.\n   * For example:\n   *  - columbus-5: Mainnet\n   *  - tequila-0004: Testnet\n   *  - bombay-9: Testnet\n   */\n  chainID: string;\n\n  /**\n   * Optional parameter for gas prices to use for fee estimation.\n   */\n  gasPrices?: Coins.Input;\n\n  /**\n   * Optional parameter for gas adjustment value to use for fee estimation.\n   */\n  gasAdjustment?: Numeric.Input;\n}\n```\n\n### Synchronous configuration\n\nUse `TerraModule.forRoot` method with [Options interface](#configuration-params):\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Module({\n  imports: [\n    TerraModule.forRoot({\n      URL: MAINNET_LCD_BASE_URL,\n      chainID: MAINNET_CHAIN_ID,\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\n### Asynchronous configuration\n\nWith `TerraModule.forRootAsync` you can, for example, import your `ConfigModule` and inject `ConfigService` to use it in `useFactory` method.\n\n`useFactory` should return object with [Options interface](#configuration-params)\n\nHere's an example:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  providers: [ConfigService],\n  exports: [ConfigService]\n})\nclass ConfigModule {}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      imports: [ConfigModule],\n      inject: [ConfigService],\n      useFactory: async (config: ConfigService) => {\n        await somePromise();\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\nOr you can just pass `ConfigService` to `providers`, if you don't have any `ConfigModule`:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID,\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      providers: [ConfigService],\n      inject: [ConfigService],\n      useFactory: (config: ConfigService) => {\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  controllers: [TestController]\n})\nclass MyModule {}\n```\n\n## TerraLCDClient\n\n`TerraLCDClient` implements standard [LCDClient](https://github.com/terra-project/terra.js/wiki/Making-a-connection). So if you are familiar with it, you are ready to go.\n\n```ts\nimport { InjectTerraLCDClient, TerraLCDClient, MnemonicKey } from 'nestjs-terra';\n\n@Injectable()\nexport class TestService {\n  constructor(\n    @InjectTerraLCDClient()\n    private readonly terraClient: TerraLCDClient,\n  ) {}\n  async someMethod(): Promise<{ accountNumber: string }> {\n    const wallet = this.terraClient.wallet(\n      new MnemonicKey({\n        mnemonic: [\n          'satisfy',\n          'adjust',\n          'timber',\n          'high',\n          'purchase',\n          'tuition',\n          'stool',\n          'faith',\n          'fine',\n          'install',\n          'that',\n          'you',\n          'unaware',\n          'feed',\n          'domain',\n          'license',\n          'impose',\n          'boss',\n          'human',\n          'eager',\n          'hat',\n          'rent',\n          'enjoy',\n          'dawn',\n        ].join(' ')\n      }),\n    );\n    const accountNumber = await wallet.accountNumber();\n\n    return { accountNumber: accountNumber.toString() };\n  }\n}\n```\n\n## Testing a class that uses @InjectTerraLCDClient\n\nThis package exposes a getTerraToken() function that returns a prepared injection token based on the provided context. \nUsing this token, you can easily provide a mock implementation of the `TerraLCDClient` using any of the standard custom provider techniques, including useClass, useValue, and useFactory.\n\n```ts\n  const module: TestingModule = await Test.createTestingModule({\n    providers: [\n      MyService,\n      {\n        provide: getTerraToken(),\n        useValue: mockProvider,\n      },\n    ],\n  }).compile();\n```\n\n## Change Log\n\nSee [Changelog](CHANGELOG.md) for more information.\n\n## Contributing\n\nContributions welcome! See [Contributing](CONTRIBUTING.md).\n\n## Author\n\n**Jose Ramirez [Twitter](https://twitter.com/jarcodallo)**\n\n## License\n\nLicensed under the Apache 2.0 - see the [LICENSE](LICENSE) file for details.\n","gitHead":"ccd23139f550ff97cf1bfbbf3708d2301e193d33","_id":"nestjs-terra@0.2.0-beta.4","_nodeVersion":"14.17.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-4DBqpDqWDC1PAdpHTw7iKXBQUFKTphmDft/FiRrSCyNQ55L9aFihnZstxemC+3d0lkebnVXs5/w8Uum/YbkGLg==","shasum":"962c6963a3e3fdb093114b98691897fe87eebdd2","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.2.0-beta.4.tgz","fileCount":23,"unpackedSize":39235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJhY/CRA9TVsSAnZWagAA3u8P/iaF1slD6k1YyeANoAhM\nzcCXUquzT1OsnWtQh8AaparM7QOmF6e6n2o4pN1wsbTk2pS7eaOI4R0sB69V\nnKgUXGGPXYVPBWGNwvfy+In2s+H2blOLUZs7tNQqn+X75AuHWJBaz6MVRqhH\nzDPKfl2ImT7vIKQLTYaC+SqrWUiTdU5pXphwZXnnmkEZQcBKTHmmxJc/XMAP\n1HUJ25k1VBvG7WNtSqOg2Ar7Lzi4gXewhRXgcBgBsiO22BGTbeCr/uJ2TUwy\n/xNEUqG3p34T8eqgTmH3e6tNPjJQO8so1isGvaCHqNSnZNumLeSKPjzNptku\n5WCrw4Ej/sT3vJJWODUWpJrhAIUPdykEFW+Q+J0KT0bECOVkAEPcpdKlpyyQ\n0KIxETsGpJq4NOItvAHNCesmP6KLJ0/+wwsrumMteu+wkQNEsXqwujFCbg/P\n8E2jOt/zrKkv3ZdpCYmF7+c9X+bWQI4y3OWyJn1qkxJ93qWeMlS0ZYr8hc5h\neTD8+nOtXlybRmpH0IlOU6OUWkQspg1UCSvm5b7envIHT6KQre3s9sfG0c8q\nzZzmocXQyIZRLovsDFyuSemXUrD2x0mMzrERLTFIYuGnv93py3YgvUKpnkjj\nACsmoyyL8NYNKl200cdYOAWFxNXu12yAR8ZOVZ90WGY2Z4e6n7I8vM5pL8yf\n0cyJ\r\n=+mYx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCA3WpYyeSXFj7pavS9uhGiBWgcVJMd05FrIJPSAJKPcwIhAIm1cXIJenIGmUV8eqNX16HMDSF8IhZnb7+4L5XPg0cx"}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.2.0-beta.4_1629886015004_0.6009563217625069"},"_hasShrinkwrap":false},"0.2.1-beta.2":{"name":"nestjs-terra","version":"0.2.1-beta.2","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","readmeFilename":"README.md","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"^1.8.10","pre-commit":"^1.2.2"},"devDependencies":{"@nestjs/common":"^8.0.6","@nestjs/core":"^8.0.6","@nestjs/platform-express":"^8.0.6","@nestjs/platform-fastify":"^8.0.6","@nestjs/testing":"^8.0.6","@types/express":"^4.17.13","@types/jest":"^27.0.1","@types/node":"^16.9.4","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.31.1","@typescript-eslint/parser":"^4.31.1","axios":">=0.21.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","eslint-plugin-prettier":"^4.0.0","jest":"^27.2.0","nock":"^13.1.3","prettier":"^2.4.1","reflect-metadata":"^0.1.13","rxjs":"^7.3.0","supertest":"^6.1.6","ts-jest":"^27.0.5","ts-node":"^10.2.1","tsc-watch":"^4.5.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.3"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"readme":"NestJS-Terra\n=============\n\n[![npm](https://img.shields.io/npm/v/nestjs-terra)](https://www.npmjs.com/package/nestjs-terra)\n[![CircleCI](https://circleci.com/gh/blockcoders/nestjs-matic/tree/main.svg?style=svg)](https://circleci.com/gh/blockcoders/nestjs-matic/tree/main)\n[![Coverage Status](https://coveralls.io/repos/github/jarcodallo/nestjs-terra/badge.svg?branch=main)](https://coveralls.io/github/jarcodallo/nestjs-terra?branch=main)\n[![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/nestjs-terra)](https://snyk.io/test/github/jarcodallo/nestjs-terra)\n[![supported platforms](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)\n\n\nTerra blockchain utilities for NestJS based on [Terra.js](https://github.com/terra-project/terra.js)\n\n## Install\n\n```sh\nnpm i nestjs-terra\n```\n\n## Register module\n\n### Configuration params\n\n`nestjs-terra` can be configured with this options:\n\n```ts\ninterface TerraModuleOptions {\n  /**\n   * The base URL to wich Light Client Daemon (LCD) requests will be made.\n   * For example: https://lcd.terra.dev\n   */\n  URL: string;\n\n  /**\n   * Chain ID of the blockchain to connect to.\n   * For example:\n   *  - columbus-4: Mainnet\n   *  - tequila-0004: Testnet\n   */\n  chainID: string;\n\n  /**\n   * Optional parameter for gas prices to use for fee estimation.\n   */\n  gasPrices?: Coins.Input;\n\n  /**\n   * Optional parameter for gas adjustment value to use for fee estimation.\n   */\n  gasAdjustment?: Numeric.Input;\n}\n```\n\n### Synchronous configuration\n\nUse `TerraModule.forRoot` method with [Options interface](#configuration-params):\n\n```ts\nimport {\n  TerraModule,\n  TERRA_LCD_BASE_URL,\n  TERRA_MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Module({\n  imports: [\n    TerraModule.forRoot({\n      URL: TERRA_LCD_BASE_URL,\n      chainID: TERRA_MAINNET_CHAIN_ID,\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\n### Asynchronous configuration\n\nWith `TerraModule.forRootAsync` you can, for example, import your `ConfigModule` and inject `ConfigService` to use it in `useFactory` method.\n\n`useFactory` should return object with [Options interface](#configuration-params)\n\nHere's an example:\n\n```ts\nimport {\n  TerraModule,\n  TERRA_LCD_BASE_URL,\n  TERRA_MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = TERRA_LCD_BASE_URL;\n  public readonly chainID = TERRA_MAINNET_CHAIN_ID;\n}\n\n@Module({\n  providers: [ConfigService],\n  exports: [ConfigService]\n})\nclass ConfigModule {}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      imports: [ConfigModule],\n      inject: [ConfigService],\n      useFactory: async (config: ConfigService) => {\n        await somePromise();\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\nOr you can just pass `ConfigService` to `providers`, if you don't have any `ConfigModule`:\n\n```ts\nimport {\n  TerraModule,\n  TERRA_LCD_BASE_URL,\n  TERRA_MAINNET_CHAIN_ID,\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = TERRA_LCD_BASE_URL;\n  public readonly chainID = TERRA_MAINNET_CHAIN_ID;\n}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      providers: [ConfigService],\n      inject: [ConfigService],\n      useFactory: (config: ConfigService) => {\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  controllers: [TestController]\n})\nclass MyModule {}\n```\n\n## LCDClient\n\nif you are familiar with [LCDClient](https://github.com/terra-project/terra.js/wiki/Making-a-connection), you are ready to go.\n\n```ts\nimport { InjectLCDClient, LCDClient, MnemonicKey } from 'nestjs-terra';\n\n@Injectable()\nexport class TestService {\n  constructor(\n    @InjectLCDClient()\n    private readonly terraClient: LCDClient,\n  ) {}\n  async someMethod(): Promise<{ accountNumber: string }> {\n    const wallet = this.terraClient.wallet(\n      new MnemonicKey({\n        mnemonic: [\n          'satisfy',\n          'adjust',\n          'timber',\n          'high',\n          'purchase',\n          'tuition',\n          'stool',\n          'faith',\n          'fine',\n          'install',\n          'that',\n          'you',\n          'unaware',\n          'feed',\n          'domain',\n          'license',\n          'impose',\n          'boss',\n          'human',\n          'eager',\n          'hat',\n          'rent',\n          'enjoy',\n          'dawn',\n        ].join(' ')\n      }),\n    );\n    const accountNumber = await wallet.accountNumber();\n\n    return { accountNumber: accountNumber.toString() };\n  }\n}\n```\n\n## Testing a class that uses @InjectLCDClient\n\nThis package exposes a getTerraToken() function that returns a prepared injection token based on the provided context. \nUsing this token, you can easily provide a mock implementation of the `LCDClient` using any of the standard custom provider techniques, including useClass, useValue, and useFactory.\n\n```ts\n  const module: TestingModule = await Test.createTestingModule({\n    providers: [\n      MyService,\n      {\n        provide: getTerraToken(),\n        useValue: mockProvider,\n      },\n    ],\n  }).compile();\n```\n\n## Change Log\n\nSee [Changelog](CHANGELOG.md) for more information.\n\n## Contributing\n\nContributions welcome! See [Contributing](CONTRIBUTING.md).\n\n## Author\n\n**Jose Ramirez [Twitter](https://twitter.com/jarcodallo)**\n\n## License\n\nLicensed under the Apache 2.0 - see the [LICENSE](LICENSE) file for details.\n","gitHead":"f2462e80bcf15e700a705571dbbac35f3534f52d","_id":"nestjs-terra@0.2.1-beta.2","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-DUN8BLbxSqVZ5yc9tr9iGB3wVdbPTmj+Cvk4b8RrQ9K303oeA1rjayV69zsc8W2GxTSZMWtjYpATSZOVmW5zIw==","shasum":"83cc8091f820c927dbd3119a073ced4419a39d77","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.2.1-beta.2.tgz","fileCount":23,"unpackedSize":35037,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjPGla0YSFJuxRaxXauGCBgcuQaRy475UInM2RFqnYbAIgLBwoeB3ry+fMerUjucZnm4wFhRTCwpVJ4bCe3l3yA6Q="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.2.1-beta.2_1632086106905_0.19451034114169752"},"_hasShrinkwrap":false},"0.2.1":{"name":"nestjs-terra","version":"0.2.1","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"^1.8.10","pre-commit":"^1.2.2"},"devDependencies":{"@nestjs/common":"^8.0.6","@nestjs/core":"^8.0.6","@nestjs/platform-express":"^8.0.6","@nestjs/platform-fastify":"^8.0.6","@nestjs/testing":"^8.0.6","@types/express":"^4.17.13","@types/jest":"^27.0.1","@types/node":"^16.9.4","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.31.1","@typescript-eslint/parser":"^4.31.1","axios":">=0.21.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","eslint-plugin-prettier":"^4.0.0","jest":"^27.2.0","nock":"^13.1.3","prettier":"^2.4.1","reflect-metadata":"^0.1.13","rxjs":"^7.3.0","supertest":"^6.1.6","ts-jest":"^27.0.5","ts-node":"^10.2.1","tsc-watch":"^4.5.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.3"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"5a875bccca554248b7b713a94f7f878c4e112cfc","_id":"nestjs-terra@0.2.1","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-E6S8qhIoOPHTcQjWGxaFSvSLUJotwCfip/ExNVqybGuVagVPwxwI5Xu2OqJMdWRemnUT4xsJBMCtOZmusALgNQ==","shasum":"54a45516386d77b4b698128bee9b2ad506bb4860","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-0.2.1.tgz","fileCount":23,"unpackedSize":35522,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBo1S6Hvy0AYVLNJ99cPHrjPxTQPJ9AUAJawy2J5WrAdAiAUEnjAbmqWiYqje92q0riqQworqfPyFt6znGgky645rA=="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_0.2.1_1632086408306_0.7922069464123673"},"_hasShrinkwrap":false},"1.0.0-beta.5":{"name":"nestjs-terra","version":"1.0.0-beta.5","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","readmeFilename":"README.md","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"2.0.8"},"devDependencies":{"@nestjs/common":"^8.0.6","@nestjs/core":"^8.0.6","@nestjs/platform-express":"^8.0.6","@nestjs/platform-fastify":"^8.0.6","@nestjs/testing":"^8.0.6","@types/express":"^4.17.13","@types/jest":"^27.0.1","@types/node":"^16.9.4","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.31.1","@typescript-eslint/parser":"^4.31.1","axios":">=0.21.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","eslint-plugin-prettier":"^4.0.0","jest":"^27.2.0","nock":"^13.1.3","pre-commit":"^1.2.2","prettier":"^2.4.1","reflect-metadata":"^0.1.13","rxjs":"^7.3.0","supertest":"^6.1.6","ts-jest":"^27.0.5","ts-node":"^10.2.1","tsc-watch":"^4.5.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.3"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"readme":"NestJS-Terra\n=============\n\n[![npm](https://img.shields.io/npm/v/nestjs-terra)](https://www.npmjs.com/package/nestjs-terra)\n[![CircleCI](https://circleci.com/gh/blockcoders/nestjs-matic/tree/main.svg?style=svg)](https://circleci.com/gh/blockcoders/nestjs-matic/tree/main)\n[![Coverage Status](https://coveralls.io/repos/github/jarcodallo/nestjs-terra/badge.svg?branch=main)](https://coveralls.io/github/jarcodallo/nestjs-terra?branch=main)\n[![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/nestjs-terra)](https://snyk.io/test/github/jarcodallo/nestjs-terra)\n[![supported platforms](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)\n\n\nTerra blockchain utilities for NestJS based on [Terra.js](https://github.com/terra-project/terra.js)\n\n## Install\n\n```sh\nnpm i nestjs-terra\n```\n\n## Register module\n\n### Configuration params\n\n`nestjs-terra` can be configured with this options:\n\n```ts\ninterface TerraModuleOptions {\n  /**\n   * The base URL to wich Light Client Daemon (LCD) requests will be made.\n   * For example: https://lcd.terra.dev\n   */\n  URL: string;\n\n  /**\n   * Chain ID of the blockchain to connect to.\n   * For example:\n   *  - columbus-5: Mainnet\n   *  - tequila-0004: Testnet\n   *  - bombay-9: Testnet\n   */\n  chainID: string;\n\n  /**\n   * Optional parameter for gas prices to use for fee estimation.\n   */\n  gasPrices?: Coins.Input;\n\n  /**\n   * Optional parameter for gas adjustment value to use for fee estimation.\n   */\n  gasAdjustment?: Numeric.Input;\n}\n```\n\n### Synchronous configuration\n\nUse `TerraModule.forRoot` method with [Options interface](#configuration-params):\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Module({\n  imports: [\n    TerraModule.forRoot({\n      URL: MAINNET_LCD_BASE_URL,\n      chainID: MAINNET_CHAIN_ID,\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\n### Asynchronous configuration\n\nWith `TerraModule.forRootAsync` you can, for example, import your `ConfigModule` and inject `ConfigService` to use it in `useFactory` method.\n\n`useFactory` should return object with [Options interface](#configuration-params)\n\nHere's an example:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  providers: [ConfigService],\n  exports: [ConfigService]\n})\nclass ConfigModule {}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      imports: [ConfigModule],\n      inject: [ConfigService],\n      useFactory: async (config: ConfigService) => {\n        await somePromise();\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\nOr you can just pass `ConfigService` to `providers`, if you don't have any `ConfigModule`:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID,\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      providers: [ConfigService],\n      inject: [ConfigService],\n      useFactory: (config: ConfigService) => {\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  controllers: [TestController]\n})\nclass MyModule {}\n```\n\n## LCDClient\n\nif you are familiar with [LCDClient](https://github.com/terra-project/terra.js/wiki/Making-a-connection), you are ready to go.\n\n```ts\nimport { InjectLCDClient, LCDClient, MnemonicKey } from 'nestjs-terra';\n\n@Injectable()\nexport class TestService {\n  constructor(\n    @InjectLCDClient()\n    private readonly terraClient: LCDClient,\n  ) {}\n  async someMethod(): Promise<{ accountNumber: string }> {\n    const wallet = this.terraClient.wallet(\n      new MnemonicKey({\n        mnemonic: [\n          'satisfy',\n          'adjust',\n          'timber',\n          'high',\n          'purchase',\n          'tuition',\n          'stool',\n          'faith',\n          'fine',\n          'install',\n          'that',\n          'you',\n          'unaware',\n          'feed',\n          'domain',\n          'license',\n          'impose',\n          'boss',\n          'human',\n          'eager',\n          'hat',\n          'rent',\n          'enjoy',\n          'dawn',\n        ].join(' ')\n      }),\n    );\n    const accountNumber = await wallet.accountNumber();\n\n    return { accountNumber: accountNumber.toString() };\n  }\n}\n```\n\n## Testing a class that uses @InjectLCDClient\n\nThis package exposes a getTerraToken() function that returns a prepared injection token based on the provided context. \nUsing this token, you can easily provide a mock implementation of the `LCDClient` using any of the standard custom provider techniques, including useClass, useValue, and useFactory.\n\n```ts\n  const module: TestingModule = await Test.createTestingModule({\n    providers: [\n      MyService,\n      {\n        provide: getTerraToken(),\n        useValue: mockProvider,\n      },\n    ],\n  }).compile();\n```\n\n## Change Log\n\nSee [Changelog](CHANGELOG.md) for more information.\n\n## Contributing\n\nContributions welcome! See [Contributing](CONTRIBUTING.md).\n\n## Author\n\n**Jose Ramirez [Twitter](https://twitter.com/jarcodallo)**\n\n## License\n\nLicensed under the Apache 2.0 - see the [LICENSE](LICENSE) file for details.\n","gitHead":"dfb77db3e6afdb5a54e119f785485691eaa96dc8","_id":"nestjs-terra@1.0.0-beta.5","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-IwOnzUJqP6s+3ImG7rKQTuvA+lciU1IgAijlzxmUHfToFmVI9GLZrVlVYp+VUp4OCzq1L5fT45wL6Lc/SIh9fw==","shasum":"048b7e0edd2db3cf80b5f6a0ed84696f0b58b083","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-1.0.0-beta.5.tgz","fileCount":23,"unpackedSize":36650,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXT3YXhTWRSJow41nZ3c43u8dE+dGIki063I+NYDZGGgIgWT8UEGDM+E1W5pzXdvu09dohMEXuNOzBtcuycEvEpDo="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_1.0.0-beta.5_1632087637038_0.2721625200402267"},"_hasShrinkwrap":false},"1.0.0":{"name":"nestjs-terra","version":"1.0.0","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"2.0.8"},"devDependencies":{"@nestjs/common":"^8.0.6","@nestjs/core":"^8.0.6","@nestjs/platform-express":"^8.0.6","@nestjs/platform-fastify":"^8.0.6","@nestjs/testing":"^8.0.6","@types/express":"^4.17.13","@types/jest":"^27.0.1","@types/node":"^16.9.4","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.31.1","@typescript-eslint/parser":"^4.31.1","axios":">=0.21.2","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","eslint-plugin-prettier":"^4.0.0","jest":"^27.2.0","nock":"^13.1.3","pre-commit":"^1.2.2","prettier":"^2.4.1","reflect-metadata":"^0.1.13","rxjs":"^7.3.0","supertest":"^6.1.6","ts-jest":"^27.0.5","ts-node":"^10.2.1","tsc-watch":"^4.5.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.3"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"ea4790cca8070bebbaee5ff8af077f1a19fd457c","_id":"nestjs-terra@1.0.0","_nodeVersion":"14.17.6","_npmVersion":"6.14.15","dist":{"integrity":"sha512-KxLppCjGyNsaZzuPjZmns2vnd2qY3Ut5b/2hd311vt3aZbxW0I/WIte5Z8r61kNROo9fRk6oYccPYu4bGaYolg==","shasum":"4d96ae3233df9dafb60511423f2830ff53ffefbc","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-1.0.0.tgz","fileCount":23,"unpackedSize":36643,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHYqU8ordHKgzg0K7KHSCFukx796ctHnZ7CXnB2tVwSyAiEAzWUtAR++V5LoV77FY9eF3Rnn13i91N0xs0cVD0NZvH0="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_1.0.0_1632087788590_0.268078407216106"},"_hasShrinkwrap":false},"1.0.1":{"name":"nestjs-terra","version":"1.0.1","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"^2.0.x"},"devDependencies":{"@nestjs/common":"^8.0.11","@nestjs/core":"^8.0.11","@nestjs/platform-express":"^8.0.11","@nestjs/platform-fastify":"^8.0.11","@nestjs/testing":"^8.0.11","@types/express":"^4.17.13","@types/jest":"^27.0.2","@types/node":"^16.10.3","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^4.33.0","@typescript-eslint/parser":"^4.33.0","axios":">=0.22.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.24.2","eslint-plugin-prettier":"^4.0.0","jest":"^27.2.4","nock":"^13.1.3","pre-commit":"^1.2.2","prettier":"^2.4.1","reflect-metadata":"^0.1.13","rxjs":"^7.3.1","supertest":"^6.1.6","ts-jest":"^27.0.5","ts-node":"^10.2.1","tsc-watch":"^4.5.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.3"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"types":"./dist/index.d.ts","gitHead":"f1cce3366becd0c02eab0aba78a0f6a6384bfbf8","_id":"nestjs-terra@1.0.1","_nodeVersion":"14.17.6","_npmVersion":"7.24.1","dist":{"integrity":"sha512-3/jaCYHwehVilYsTvNFIv5Hnaad0iKKnueIqz9YVGhWE0Zl4jkjOTodahNL99vVqZtpFL4uAl8AgGBT+T6kTFQ==","shasum":"c3a2326cad9cf40942a7f944b89afbb440b71b0e","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-1.0.1.tgz","fileCount":23,"unpackedSize":36761,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlg1vg3dgLmilj44NEOAWp6koMYfrSTp5Jgu+khp08nAiEA2AHhwE6YHccgStOmcu11ru+1Y5v8l2pKoCL852jtFDw="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_1.0.1_1633552676221_0.9642493626657189"},"_hasShrinkwrap":false},"1.0.2":{"name":"nestjs-terra","version":"1.0.2","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"^2.0.x"},"devDependencies":{"@nestjs/common":"^8.1.2","@nestjs/core":"^8.1.2","@nestjs/platform-express":"^8.1.2","@nestjs/platform-fastify":"^8.1.2","@nestjs/testing":"^8.1.2","@types/express":"^4.17.13","@types/jest":"^27.0.2","@types/node":"^16.11.6","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^5.2.0","@typescript-eslint/parser":"^5.2.0","eslint":"^8.1.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.2","eslint-plugin-prettier":"^4.0.0","jest":"^27.3.1","nock":"^13.1.4","pre-commit":"^1.2.2","prettier":"^2.4.1","reflect-metadata":"^0.1.13","rxjs":"^7.4.0","supertest":"^6.1.6","ts-jest":"^27.0.7","ts-node":"^10.4.0","tsc-watch":"^4.5.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"68fcd2569ab8624979dccfbae50c06e0c3e67908","_id":"nestjs-terra@1.0.2","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-bypqsZHbVWpXDVqvZVFTPoNXa1GwklJwRejaDtKxBCJD0W+OzREbZdAJLPSDNH2HuNNHWzK0QVU4bty/euuoQQ==","shasum":"8c67f596744c0445a9f037ee9e9f3d7fdcb26bc5","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-1.0.2.tgz","fileCount":23,"unpackedSize":36897,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZ2+QJXarFAEtUl2L58Xbwns+MaHfwKJ23zLHMU7FtDAiEA3caw2CSj6CKZnxmRAKonWA5PomYW1m5rLDmfCZ5eriw="}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_1.0.2_1635410715115_0.22215190504163806"},"_hasShrinkwrap":false},"1.1.0":{"name":"nestjs-terra","version":"1.1.0","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"^2.1.x"},"devDependencies":{"@nestjs/common":"^8.1.2","@nestjs/core":"^8.1.2","@nestjs/platform-express":"^8.1.2","@nestjs/platform-fastify":"^8.1.2","@nestjs/testing":"^8.1.2","@types/express":"^4.17.13","@types/jest":"^27.0.2","@types/node":"^16.11.6","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^5.2.0","@typescript-eslint/parser":"^5.2.0","eslint":"^8.1.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.2","eslint-plugin-prettier":"^4.0.0","jest":"^27.3.1","nock":"^13.1.4","pre-commit":"^1.2.2","prettier":"^2.4.1","reflect-metadata":"^0.1.13","rxjs":"^7.4.0","supertest":"^6.1.6","ts-jest":"^27.0.7","ts-node":"^10.4.0","tsc-watch":"^4.5.0","tsconfig-paths":"^3.11.0","typescript":"^4.4.4"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"d7e502a1ce69fe8f34c0e4a8fa0441cb090243f6","_id":"nestjs-terra@1.1.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-1lgVycp2/Yh0ei0boVLdy25AxGy/KiP86zjVztZU9QbPbXIzUyz34bmCsAt7CWZQkQn9/pIc/ha5toWuXJ+zyw==","shasum":"38961ae02648f4e6754c2a4178d290415130d875","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-1.1.0.tgz","fileCount":23,"unpackedSize":37077,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeUlcfXoIN0c8NgXxhoA964afLbXYpqlKG6unAK18UkAIhANN3/WQVg3oQKzGKRfkCi3qC1ksp+NggRqaL6/j9M+2r"}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_1.1.0_1635411358180_0.9743859283279128"},"_hasShrinkwrap":false},"2.0.0":{"name":"nestjs-terra","version":"2.0.0","description":"Terra blockchain utilities for NestJS based on terra.js","author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"license":"Apache","main":"dist/index.js","engineStrict":false,"engines":{"node":"^12.22 || >=14.17 || >=16.4"},"scripts":{"build":"rm -rf ./dist && tsc --p tsconfig.build.json","prepare":"npm run build","format":"prettier --write \"src/**/*.ts\"","lint":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\" --fix","lint:ci":"eslint \"{src,apps,libs,test,__tests__}/**/*.ts\"","test":"jest --verbose","test:watch":"jest --watch","test:cov":"jest --verbose --coverage","prepublishOnly":"npm run lint:ci && npm run test"},"precommit":["lint:ci","test:cov"],"keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"dependencies":{"@terra-money/terra.js":"^3.0.x"},"devDependencies":{"@nestjs/common":"^8.2.3","@nestjs/core":"^8.2.3","@nestjs/platform-express":"^8.2.3","@nestjs/platform-fastify":"^8.2.3","@nestjs/testing":"^8.2.3","@types/express":"^4.17.13","@types/jest":"^27.0.3","@types/node":"^16.11.10","@types/supertest":"^2.0.11","@typescript-eslint/eslint-plugin":"^5.5.0","@typescript-eslint/parser":"^5.5.0","eslint":"^8.3.0","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-prettier":"^4.0.0","jest":"^27.4.0","nock":"^13.2.1","pre-commit":"^1.2.2","prettier":"^2.5.0","reflect-metadata":"^0.1.13","rxjs":"^7.4.0","supertest":"^6.1.6","ts-jest":"^27.0.7","ts-node":"^10.4.0","tsc-watch":"^4.5.0","tsconfig-paths":"^3.12.0","typescript":"^4.5.2"},"jest":{"testTimeout":20000,"moduleFileExtensions":["js","json","ts"],"testRegex":".spec.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"coverageDirectory":"./coverage","collectCoverageFrom":["src/**/*.ts"],"coveragePathIgnorePatterns":["src/index.ts"],"coverageThreshold":{"global":{"branches":50,"functions":70,"lines":70,"statements":85}},"testEnvironment":"node"},"gitHead":"bef727a08ec66865a1f775f7283c5e4d1f00480b","_id":"nestjs-terra@2.0.0","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-3OecH8PC7zfcOVoA1XxJcmLET67cpg8djz20pFBZzXULExIUjHMV8SmU9U97ysybUlR8Q4uXBox43TiIiHgctQ==","shasum":"74284f1a0c7a26238ea829ceb20415701407a58d","tarball":"https://registry.npmjs.org/nestjs-terra/-/nestjs-terra-2.0.0.tgz","fileCount":23,"unpackedSize":37245,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpUAACRA9TVsSAnZWagAAI9QP/1SDtlHiJ3JO0B7d4bXU\npflqo/rKhZhUPdk30FsXxf0pd8QoPRsFFKhot4hXvqg7d+aF6mG6Jq92fQ3Q\nyioLF9mov7G+x2GV93bVUmyEmhSjZXbX4HE2wxjYWBcbCF6S+y2QluVE+zYX\neaILlbg1Mxq3jeloMwzM268w80yyIFj6Dpcj5t4Ncb9UrY3YdqRCbhpa3ZDc\njx+upQCPE/6tQg5MIv1kNUvjCxNw58uiSVxforaRGTK66LuwooZ6+My9QZHf\nGMRzFux8saopO/Ooo9YaM5kFRK1JUZLWYtIxi/a2QsarThJqaIss9eqgp9gv\nFQO/ciwnOvv8Pb5tZQYi0qcID9Xqnc9DooJVazO9dpJpG/oSvJoLnmXsFVYW\nEazYHsbuFVkXZNBjSnkyghita//kNNGwfqGXPVc2xjB0N1Ioxr2HUhG2zuYl\n9IChMKXIkYbsiLHilbOXh2aRaCpefsdJPxXyeqB9zKntFTRkdz5E/zSTE1nI\nOcc4mTjHf5dt56q3luAIsZM+Bgf2NjkHcVZP1Ktbatf5E+cZtUyxWfUaWAO+\nYJ9LKORCh2pFr1QkFzlwQWORHkZkJOD7FwQQqDqBAg5E2AZvrl9mIDI3lK7/\nIOkd+O1BQuQPxS+Y6doJ0dxzRunxmlGuheKgJ+zy4DQvBH4bNxKHPRFtmwSD\nPbuf\r\n=eNOs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPzJo2qzeSgn+4fK5E0tl2Za98A6wU3LeGNddPHRnyVwIhAPSFNjGT0oh2gsNr/z5XqzbO4o7blvjidTeyn/rOk4QN"}]},"_npmUser":{"name":"jarcodallo","email":"jarcodallo@gmail.com"},"directories":{},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nestjs-terra_2.0.0_1638219776325_0.8258472257448177"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-21T20:21:06.617Z","0.1.0-beta.1":"2021-04-21T20:21:06.871Z","modified":"2022-05-10T12:54:48.677Z","0.1.0-beta.2":"2021-04-22T21:20:59.244Z","0.1.0-rc.1":"2021-04-23T11:45:55.567Z","0.1.0-rc.2":"2021-04-23T12:34:47.263Z","0.1.0-rc.3":"2021-04-23T16:51:07.866Z","0.1.0-rc.4":"2021-04-23T19:19:45.674Z","0.1.0":"2021-04-23T19:56:59.103Z","0.1.1":"2021-04-26T20:29:38.414Z","0.1.2":"2021-04-26T20:40:30.852Z","0.1.3-beta.1":"2021-06-28T20:16:38.139Z","0.1.3":"2021-06-28T20:46:41.936Z","0.1.4":"2021-07-13T15:32:15.745Z","0.1.5":"2021-08-11T20:29:44.050Z","0.2.0-beta.1":"2021-08-22T00:52:15.309Z","0.2.0-beta.2":"2021-08-22T10:27:56.588Z","0.2.0-beta.3":"2021-08-24T22:47:05.449Z","0.2.0-beta.4":"2021-08-25T10:06:55.125Z","0.2.1-beta.2":"2021-09-19T21:15:07.122Z","0.2.1":"2021-09-19T21:20:08.447Z","1.0.0-beta.5":"2021-09-19T21:40:37.167Z","1.0.0":"2021-09-19T21:43:08.753Z","1.0.1":"2021-10-06T20:37:56.454Z","1.0.2":"2021-10-28T08:45:15.270Z","1.1.0":"2021-10-28T08:55:58.336Z","2.0.0":"2021-11-29T21:02:56.603Z"},"maintainers":[{"name":"jarcodallo","email":"jarcodallo@gmail.com"}],"description":"Terra blockchain utilities for NestJS based on terra.js","homepage":"https://github.com/jarcodallo/nestjs-terra/blob/main/README.md","keywords":["terra","terra.js","terrajs","terra.money","terra.station","nestjs","nest.js","nest","blockchain"],"repository":{"type":"git","url":"git+https://github.com/jarcodallo/nestjs-terra.git"},"author":{"name":"Jose Ramirez","email":"jarcodallo@gmail.com"},"bugs":{"url":"https://github.com/jarcodallo/nestjs-terra/issues"},"license":"Apache","readme":"NestJS-Terra\n=============\n\n[![npm](https://img.shields.io/npm/v/nestjs-terra)](https://www.npmjs.com/package/nestjs-terra)\n[![CircleCI](https://circleci.com/gh/blockcoders/nestjs-matic/tree/main.svg?style=svg)](https://circleci.com/gh/blockcoders/nestjs-matic/tree/main)\n[![Coverage Status](https://coveralls.io/repos/github/jarcodallo/nestjs-terra/badge.svg?branch=main)](https://coveralls.io/github/jarcodallo/nestjs-terra?branch=main)\n[![vulnerabilities](https://img.shields.io/snyk/vulnerabilities/npm/nestjs-terra)](https://snyk.io/test/github/jarcodallo/nestjs-terra)\n[![supported platforms](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)](https://img.shields.io/badge/platforms-Express%20%26%20Fastify-green)\n\n\nTerra blockchain utilities for NestJS based on [Terra.js](https://github.com/terra-project/terra.js)\n\n## Install\n\n```sh\nnpm i nestjs-terra\n```\n\n## Register module\n\n### Configuration params\n\n`nestjs-terra` can be configured with this options:\n\n```ts\ninterface TerraModuleOptions {\n  /**\n   * The base URL to wich Light Client Daemon (LCD) requests will be made.\n   * For example: https://lcd.terra.dev\n   */\n  URL: string;\n\n  /**\n   * Chain ID of the blockchain to connect to.\n   * For example:\n   *  - columbus-5: Mainnet\n   *  - tequila-0004: Testnet\n   *  - bombay-9: Testnet\n   */\n  chainID: string;\n\n  /**\n   * Optional parameter for gas prices to use for fee estimation.\n   */\n  gasPrices?: Coins.Input;\n\n  /**\n   * Optional parameter for gas adjustment value to use for fee estimation.\n   */\n  gasAdjustment?: Numeric.Input;\n}\n```\n\n### Synchronous configuration\n\nUse `TerraModule.forRoot` method with [Options interface](#configuration-params):\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Module({\n  imports: [\n    TerraModule.forRoot({\n      URL: MAINNET_LCD_BASE_URL,\n      chainID: MAINNET_CHAIN_ID,\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\n### Asynchronous configuration\n\nWith `TerraModule.forRootAsync` you can, for example, import your `ConfigModule` and inject `ConfigService` to use it in `useFactory` method.\n\n`useFactory` should return object with [Options interface](#configuration-params)\n\nHere's an example:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  providers: [ConfigService],\n  exports: [ConfigService]\n})\nclass ConfigModule {}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      imports: [ConfigModule],\n      inject: [ConfigService],\n      useFactory: async (config: ConfigService) => {\n        await somePromise();\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  ...\n})\nclass MyModule {}\n```\n\nOr you can just pass `ConfigService` to `providers`, if you don't have any `ConfigModule`:\n\n```ts\nimport {\n  TerraModule,\n  MAINNET_LCD_BASE_URL,\n  MAINNET_CHAIN_ID,\n} from 'nestjs-terra';\n\n@Injectable()\nclass ConfigService {\n  public readonly URL = MAINNET_LCD_BASE_URL;\n  public readonly chainID = MAINNET_CHAIN_ID;\n}\n\n@Module({\n  imports: [\n    TerraModule.forRootAsync({\n      providers: [ConfigService],\n      inject: [ConfigService],\n      useFactory: (config: ConfigService) => {\n        return {\n          URL: config.URL,\n          chainID: config.chainID,\n        };\n      }\n    })\n  ],\n  controllers: [TestController]\n})\nclass MyModule {}\n```\n\n## LCDClient\n\nif you are familiar with [LCDClient](https://github.com/terra-project/terra.js/wiki/Making-a-connection), you are ready to go.\n\n```ts\nimport { InjectLCDClient, LCDClient, MnemonicKey } from 'nestjs-terra';\n\n@Injectable()\nexport class TestService {\n  constructor(\n    @InjectLCDClient()\n    private readonly terraClient: LCDClient,\n  ) {}\n  async someMethod(): Promise<{ accountNumber: string }> {\n    const wallet = this.terraClient.wallet(\n      new MnemonicKey({\n        mnemonic: [\n          'satisfy',\n          'adjust',\n          'timber',\n          'high',\n          'purchase',\n          'tuition',\n          'stool',\n          'faith',\n          'fine',\n          'install',\n          'that',\n          'you',\n          'unaware',\n          'feed',\n          'domain',\n          'license',\n          'impose',\n          'boss',\n          'human',\n          'eager',\n          'hat',\n          'rent',\n          'enjoy',\n          'dawn',\n        ].join(' ')\n      }),\n    );\n    const accountNumber = await wallet.accountNumber();\n\n    return { accountNumber: accountNumber.toString() };\n  }\n}\n```\n\n## Testing a class that uses @InjectLCDClient\n\nThis package exposes a getTerraToken() function that returns a prepared injection token based on the provided context. \nUsing this token, you can easily provide a mock implementation of the `LCDClient` using any of the standard custom provider techniques, including useClass, useValue, and useFactory.\n\n```ts\n  const module: TestingModule = await Test.createTestingModule({\n    providers: [\n      MyService,\n      {\n        provide: getTerraToken(),\n        useValue: mockProvider,\n      },\n    ],\n  }).compile();\n```\n\n## Change Log\n\nSee [Changelog](CHANGELOG.md) for more information.\n\n## Contributing\n\nContributions welcome! See [Contributing](CONTRIBUTING.md).\n\n## Author\n\n**Jose Ramirez [Twitter](https://twitter.com/jarcodallo)**\n\n## License\n\nLicensed under the Apache 2.0 - see the [LICENSE](LICENSE) file for details.\n","readmeFilename":"README.md"}