Update registry-sdk version
Some checks failed
Lint / lint (20.x) (pull_request) Failing after 20s

This commit is contained in:
IshaVenikar 2024-10-07 18:23:53 +05:30
parent 24f64466d3
commit 0466632426
5 changed files with 11 additions and 11 deletions

View File

@ -4,7 +4,7 @@
"version": "1.0.0", "version": "1.0.0",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@cerc-io/registry-sdk": "^0.2.5", "@cerc-io/registry-sdk": "^0.2.11",
"@graphql-tools/schema": "^10.0.2", "@graphql-tools/schema": "^10.0.2",
"@graphql-tools/utils": "^10.0.12", "@graphql-tools/utils": "^10.0.12",
"@octokit/oauth-app": "^6.1.0", "@octokit/oauth-app": "^6.1.0",

View File

@ -3,7 +3,7 @@ import assert from 'assert';
import { inc as semverInc } from 'semver'; import { inc as semverInc } from 'semver';
import { DateTime } from 'luxon'; import { DateTime } from 'luxon';
import { Registry as LaconicRegistry, Util } from '@cerc-io/registry-sdk'; import { Registry as LaconicRegistry, parseGasAndFees } from '@cerc-io/registry-sdk';
import { RegistryConfig } from './config'; import { RegistryConfig } from './config';
import { import {
@ -100,7 +100,7 @@ export class Registry {
...(packageJSON.version && { app_version: packageJSON.version }) ...(packageJSON.version && { app_version: packageJSON.version })
}; };
const fee = Util.parseGasAndFees(this.registryConfig.fee.gas, this.registryConfig.fee.fees); const fee = parseGasAndFees(this.registryConfig.fee.gas, this.registryConfig.fee.fees);
const result = await this.registry.setRecord( const result = await this.registry.setRecord(
{ {
@ -192,7 +192,7 @@ export class Registry {
await sleep(SLEEP_DURATION); await sleep(SLEEP_DURATION);
const fee = Util.parseGasAndFees(this.registryConfig.fee.gas, this.registryConfig.fee.fees); const fee = parseGasAndFees(this.registryConfig.fee.gas, this.registryConfig.fee.fees);
const result = await this.registry.setRecord( const result = await this.registry.setRecord(
{ {
@ -286,7 +286,7 @@ export class Registry {
deployment: data.deploymentId deployment: data.deploymentId
}; };
const fee = Util.parseGasAndFees(this.registryConfig.fee.gas, this.registryConfig.fee.fees); const fee = parseGasAndFees(this.registryConfig.fee.gas, this.registryConfig.fee.fees);
const result = await this.registry.setRecord( const result = await this.registry.setRecord(
{ {

View File

@ -1,6 +1,6 @@
import debug from 'debug'; import debug from 'debug';
import { Registry, Util } from '@cerc-io/registry-sdk'; import { parseGasAndFees, Registry } from '@cerc-io/registry-sdk';
import { getConfig } from '../src/utils'; import { getConfig } from '../src/utils';
@ -20,7 +20,7 @@ async function main () {
const bondId = await registry.getNextBondId(registryConfig.privateKey); const bondId = await registry.getNextBondId(registryConfig.privateKey);
log('bondId:', bondId); log('bondId:', bondId);
const fee = Util.parseGasAndFees(registryConfig.fee.gas, registryConfig.fee.fees); const fee = parseGasAndFees(registryConfig.fee.gas, registryConfig.fee.fees);
await registry.createBond( await registry.createBond(
{ denom: DENOM, amount: BOND_AMOUNT }, { denom: DENOM, amount: BOND_AMOUNT },

View File

@ -2,7 +2,7 @@ import debug from 'debug';
import { DataSource } from 'typeorm'; import { DataSource } from 'typeorm';
import path from 'path'; import path from 'path';
import { Registry, Util } from '@cerc-io/registry-sdk'; import { parseGasAndFees, Registry } from '@cerc-io/registry-sdk';
import { getConfig } from '../src/utils'; import { getConfig } from '../src/utils';
import { Deployment, DeploymentStatus, Environment } from '../src/entity/Deployment'; import { Deployment, DeploymentStatus, Environment } from '../src/entity/Deployment';
@ -59,7 +59,7 @@ async function main() {
url url
}; };
const fee = Util.parseGasAndFees(registryConfig.fee.gas, registryConfig.fee.fees); const fee = parseGasAndFees(registryConfig.fee.gas, registryConfig.fee.fees);
const result = await registry.setRecord( const result = await registry.setRecord(
{ {

View File

@ -2,7 +2,7 @@ import debug from 'debug';
import { DataSource } from 'typeorm'; import { DataSource } from 'typeorm';
import path from 'path'; import path from 'path';
import { Registry, Util } from '@cerc-io/registry-sdk'; import { parseGasAndFees, Registry } from '@cerc-io/registry-sdk';
import { getConfig } from '../src/utils'; import { getConfig } from '../src/utils';
import { Deployment, DeploymentStatus } from '../src/entity/Deployment'; import { Deployment, DeploymentStatus } from '../src/entity/Deployment';
@ -45,7 +45,7 @@ async function main () {
request: deployment.applicationDeploymentRemovalRequestId, request: deployment.applicationDeploymentRemovalRequestId,
} }
const fee = Util.parseGasAndFees(registryConfig.fee.gas, registryConfig.fee.fees); const fee = parseGasAndFees(registryConfig.fee.gas, registryConfig.fee.fees);
const result = await registry.setRecord( const result = await registry.setRecord(
{ {