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

Remove anchor wallet local implementation #59

Merged
merged 7 commits into from
Jun 13, 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 clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const SetupAssetControllerArgs = {
*/
};

const setupIx = await rwaClient.assetController.setUpNewRegistry(
const setupIx = await rwaClient.assetController.setupNewRegistry(
SetupAssetControllerArgs
);
const txnId = await sendAndConfirmTransaction(
Expand Down
3 changes: 2 additions & 1 deletion clients/rwa-token-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"homepage": "https://github.com/bridgesplit/rwa-token#readme",
"scripts": {
"test": "vitest run --testTimeout=240000",
"lint": "eslint . --ext .ts"
"lint": "eslint . --ext .ts",
"build": "tsc"
},
"repository": {
"type": "git",
Expand Down
16 changes: 1 addition & 15 deletions clients/rwa-token-sdk/src/classes/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,7 @@ import { AssetController } from "./AssetController";
import { IdentityRegistry } from "./IdentityRegistry";
import { PolicyEngine } from "./PolicyEngine";
import { DataRegistry } from "./DataRegistry";
import { AnchorProvider } from "@coral-xyz/anchor";
import { Transaction, VersionedTransaction, PublicKey } from "@solana/web3.js";

/**
* Copy of Anchor Wallet due to version typing mismatch.
*/
export interface Wallet {
signTransaction<T extends Transaction | VersionedTransaction>(
tx: T
): Promise<T>;
signAllTransactions<T extends Transaction | VersionedTransaction>(
txs: T[]
): Promise<T[]>;
publicKey: PublicKey;
}
import { AnchorProvider, Wallet } from "@coral-xyz/anchor";

/**
* Represents a client for interacting with Real World Assets (RWA).
Expand Down
7 changes: 5 additions & 2 deletions clients/rwa-token-sdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true,
"strictNullChecks": true,
"skipLibCheck": true,
}
"skipLibCheck": true
},
"exclude": [
"tests" // Add this line to exclude the "tests" directory from the build output
]
}
Loading