Skip to content

Commit

Permalink
remove ABI export from smart-account package
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed Aug 29, 2024
1 parent 1e1c833 commit 34d2cbc
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions packages/lib/smart-account/src/lukso/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import ERC725ABI from './ERC725ABI.json';
export { LuksoKeyStore } from './LuksoKeyStore';
export { ERC725ABI };
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Lukso } from '@dm3-org/dm3-lib-smart-account';
import { ethers } from 'ethers';
import { DM3Configuration } from '../../../interfaces/config';
import { SmartAccountConnector } from './SmartAccountConnector';
import ERC725Abi from './ERC725Abi.json';

declare global {
interface Window {
Expand Down Expand Up @@ -30,7 +31,7 @@ export class LuksoConnector {
//Instance of the UP contract
const upContract = new ethers.Contract(
upAddress,
Lukso.ERC725ABI,
ERC725Abi,
upController,
);
const keyStore = new Lukso.LuksoKeyStore(upContract);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Lukso, Constants } from '@dm3-org/dm3-lib-smart-account';
import { mockUserProfile } from '@dm3-org/dm3-lib-test-helper';
import { ethers } from 'ethers';
import { SmartAccountConnector, Success } from './SmartAccountConnector';
import ERC725Abi from './ERC725Abi.json';
import { ERC725ABI } from '@dm3-org/dm3-lib-smart-account/dist/lukso';

describe('SmartAccountConnector', () => {
describe('SignUp', () => {
Expand All @@ -18,7 +20,7 @@ describe('SmartAccountConnector', () => {

const c = new ethers.Contract(
ethers.Wallet.createRandom().address,
Lukso.ERC725ABI,
ERC725Abi,
upController1,
);

Expand Down
1 change: 1 addition & 0 deletions packages/offchain-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@dm3-org/dm3-lib-crypto": "workspace:^",
"@dm3-org/dm3-lib-profile": "workspace:^",
"@dm3-org/dm3-lib-shared": "workspace:^",
"@dm3-org/dm3-lib-smart-account": "workspace:^",
"@dm3-org/dm3-lib-test-helper": "workspace:^",
"@erc725/erc725.js": "^0.27.1",
"@prisma/client": "^4.15.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//It supports
//1. Profiles signed by an EOA
//2. Profiles signed by an Lukso Universal profile
import abiJson from './ERC725Abi.json';

import {
checkUserProfileWithAddress,
Expand All @@ -11,6 +10,7 @@ import {
} from '@dm3-org/dm3-lib-profile';
import { stringify } from '@dm3-org/dm3-lib-shared';
import { ethers } from 'ethers';
import ERC725Abi from './ERC725Abi.json';

//ERC-1271 constants can be found at lsp6-contracts/contracts/constants.sol
const ERC1271_SUCCESSVALUE = '0x1626ba7e';
Expand All @@ -36,7 +36,7 @@ export class ProfileValidator {
) {
const upContract = new ethers.Contract(
address,
abiJson,
ERC725Abi,
this.luksoProvider,
);
//Get the message that the up users has signed earlier to create their profile
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2513,6 +2513,7 @@ __metadata:
"@dm3-org/dm3-lib-crypto": "workspace:^"
"@dm3-org/dm3-lib-profile": "workspace:^"
"@dm3-org/dm3-lib-shared": "workspace:^"
"@dm3-org/dm3-lib-smart-account": "workspace:^"
"@dm3-org/dm3-lib-test-helper": "workspace:^"
"@erc725/erc725.js": ^0.27.1
"@istanbuljs/nyc-config-typescript": ^1.0.2
Expand Down

0 comments on commit 34d2cbc

Please sign in to comment.