Upgrade from laconic-sdk to registry-sdk #1
@ -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",
|
||||
|
@ -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(
|
||||
{
|
||||
|
@ -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 },
|
||||
|
@ -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(
|
||||
{
|
||||
|
@ -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(
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user