Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/json abi imports #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It provides the necessary methods and functions to interact with a DID and resol

## Pre-requisites

- NodeJS > 14.4
- NodeJS > 16.20 or above

## Usage

Expand Down
4 changes: 2 additions & 2 deletions lib/lac1/lac1Did.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import DID from "../did.js";
import * as ethers from "ethers";
import base58 from "bs58";
import lacchain from "@lacchain/gas-model-provider";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json";
import DIDRegistryContract from "./DIDRegistry.json";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json" assert { type: 'json'};
import DIDRegistryContract from "./DIDRegistry.json" assert { type: 'json'};
import { getResolver } from "./resolver.js";
import Lac1DIDRegistry from "./lac1registry.js";
import basex from "base-x";
Expand Down
4 changes: 2 additions & 2 deletions lib/lac1/lac1registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import {
stringToBytes,
signData,
} from "../utils.js";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json";
import DIDRegistryContract from "./DIDRegistry.json";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json" assert { type: 'json'};
import DIDRegistryContract from "./DIDRegistry.json" assert { type: 'json'};
export default class Lac1DIDRegistry extends DIDRegistry {
constructor(conf = {}) {
super(conf);
Expand Down
2 changes: 1 addition & 1 deletion lib/lac1/resolver.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as ethers from "ethers";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json";
import DIDRegistryContractGM from "./DIDRegistryRecoverableGM-270-RC1-1f3dc10f.json" assert { type: 'json'};
import lacchain from "@lacchain/gas-model-provider";
import { wrapDidDocument } from "./lac1resolverUtils.js";
import DIDLac1 from "./lac1Did.js";
Expand Down
4 changes: 2 additions & 2 deletions lib/registry.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as ethers from 'ethers';
import lacchain from "@lacchain/gas-model-provider";
import DIDRegistryContract from './DIDRegistry.json';
import DIDRegistryContractOld from './DIDRegistry_old.json';
import DIDRegistryContract from './DIDRegistry.json' assert { type: 'json'};
import DIDRegistryContractOld from './DIDRegistry_old.json' assert { type: 'json'};
import { Buffer } from 'buffer'
import { attributeToHex, signData, stringToBytes, stripHexPrefix } from "./utils.js";

Expand Down
2 changes: 1 addition & 1 deletion lib/registryrecoverable.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DIDRegistry from "./registry.js";
import * as ethers from "ethers";
import DIDRegistryRecoverableContract from "./DIDRegistryRecoverable.json";
import DIDRegistryRecoverableContract from "./DIDRegistryRecoverable.json" assert { type: 'json'};

export default class DIDRegistryRecoverable extends DIDRegistry {
constructor(conf = {}) {
Expand Down
2 changes: 1 addition & 1 deletion lib/resolver.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import bs58 from "bs58";
import * as ethers from "ethers";
import DIDRegistryContract from "./DIDRegistry.json";
import DIDRegistryContract from "./DIDRegistry.json" assert { type: 'json'};
import DIDDocument from "./document.js";
import { bytes32toString, keyAlgorithms, parseDID } from "./utils.js";
import lacchain from "@lacchain/gas-model-provider";
Expand Down
13 changes: 11 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lacchain/did",
"version": "1.7.0",
"version": "1.8.0",
"description": "The LACChain DID Method NodeJS Implementation",
"author": "Sergio Ceron Figueroa <[email protected]>",
"keywords": [
Expand Down
Loading