diff --git a/packages/backend/package.json b/packages/backend/package.json index 33dcec30..a7a5d34b 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "main": "index.js", "dependencies": { - "@cerc-io/registry-sdk": "^0.2.5", + "@cerc-io/registry-sdk": "^0.2.11", "@graphql-tools/schema": "^10.0.2", "@graphql-tools/utils": "^10.0.12", "@octokit/oauth-app": "^6.1.0", diff --git a/packages/backend/src/registry.ts b/packages/backend/src/registry.ts index b4338ac1..daab9ed9 100644 --- a/packages/backend/src/registry.ts +++ b/packages/backend/src/registry.ts @@ -3,7 +3,7 @@ import assert from 'assert'; import { inc as semverInc } from 'semver'; 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 { @@ -100,7 +100,7 @@ export class Registry { ...(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( { @@ -192,7 +192,7 @@ export class Registry { 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( { @@ -286,7 +286,7 @@ export class Registry { 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( { diff --git a/packages/backend/test/initialize-registry.ts b/packages/backend/test/initialize-registry.ts index 38e37d39..0a264929 100644 --- a/packages/backend/test/initialize-registry.ts +++ b/packages/backend/test/initialize-registry.ts @@ -1,6 +1,6 @@ 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'; @@ -20,7 +20,7 @@ async function main () { const bondId = await registry.getNextBondId(registryConfig.privateKey); 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( { denom: DENOM, amount: BOND_AMOUNT }, diff --git a/packages/backend/test/publish-deploy-records.ts b/packages/backend/test/publish-deploy-records.ts index af83273c..f128e399 100644 --- a/packages/backend/test/publish-deploy-records.ts +++ b/packages/backend/test/publish-deploy-records.ts @@ -2,7 +2,7 @@ import debug from 'debug'; import { DataSource } from 'typeorm'; 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 { Deployment, DeploymentStatus, Environment } from '../src/entity/Deployment'; @@ -59,7 +59,7 @@ async function main() { 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( { diff --git a/packages/backend/test/publish-deployment-removal-records.ts b/packages/backend/test/publish-deployment-removal-records.ts index 4d36a395..85b1996f 100644 --- a/packages/backend/test/publish-deployment-removal-records.ts +++ b/packages/backend/test/publish-deployment-removal-records.ts @@ -2,7 +2,7 @@ import debug from 'debug'; import { DataSource } from 'typeorm'; 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 { Deployment, DeploymentStatus } from '../src/entity/Deployment'; @@ -45,7 +45,7 @@ async function main () { 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( {