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(build): update imports to use web export from ao-sdk #29

Merged
merged 1 commit into from
Oct 29, 2024
Merged
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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@linaria/react": "^4.3.8",
"@metamask/providers": "^18.1.0",
"@othent/kms": "2.1.1",
"@project-kardeshev/ao-sdk": "1.0.3",
"@project-kardeshev/ao-sdk": "1.0.0-alpha.3",
"@tanstack/react-query": "^5.59.15",
"@wagmi/connectors": "^5.2.2",
"@wagmi/core": "^2.13.9",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/ao_signer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AoSigner } from '@project-kardeshev/ao-sdk';
import { AoSigner } from '@project-kardeshev/ao-sdk/web';
import { useEffect, useState } from 'react';

import { useActiveStrategy } from './strategy';
Expand Down
7 changes: 1 addition & 6 deletions src/modals/RestoreSession.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@
});
}
})();
}, [
state?.config.permissions,
state?.config.ensurePermissions,
dispatch,
modalController,
]);
}, []);

Check warning on line 51 in src/modals/RestoreSession.tsx

View workflow job for this annotation

GitHub Actions / build / build (20.x, lint)

React Hook useEffect has missing dependencies: 'dispatch', 'modalController', 'state?.config.ensurePermissions', and 'state?.config.permissions'. Either include them or remove the dependency array

// remove previous session data
function clearSession() {
Expand Down
2 changes: 1 addition & 1 deletion src/strategy/Strategy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AoSigner } from '@project-kardeshev/ao-sdk';
import { AoSigner } from '@project-kardeshev/ao-sdk/web';
import {
AppInfo,
DataItem,
Expand Down
2 changes: 1 addition & 1 deletion src/strategy/strategies/BrowserWallet.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AoSigner, createAoSigner } from '@project-kardeshev/ao-sdk';
import { AoSigner, createAoSigner } from '@project-kardeshev/ao-sdk/web';
import {
AppInfo,
DataItem,
Expand Down
2 changes: 1 addition & 1 deletion src/strategy/strategies/Othent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Othent, AppInfo as OthentAppInfo, OthentOptions } from '@othent/kms';
import { AoSigner } from '@project-kardeshev/ao-sdk';
import { AoSigner } from '@project-kardeshev/ao-sdk/web';
import {
DataItem,
DispatchResult,
Expand Down
2 changes: 1 addition & 1 deletion src/strategy/strategies/Wagmi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AoSigner } from '@project-kardeshev/ao-sdk';
import { AoSigner } from '@project-kardeshev/ao-sdk/web';
import { connect, disconnect, getAccount } from '@wagmi/core';
import { DataItem, DispatchResult, PermissionType } from 'arconnect';
import { SignatureOptions } from 'arweave/node/lib/crypto/crypto-interface';
Expand Down
184 changes: 92 additions & 92 deletions yarn.lock

Large diffs are not rendered by default.