Skip to content
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
Empty file added PR_BODY.md
Empty file.
4 changes: 2 additions & 2 deletions examples/get-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Once setup locally, you will be able to run the scripts included within this
repo using `esrun`:

```shell
npx esrun ./src/<script>
pnpx esrun ./src/<script>
npx esrun ./scripts/<script>
pnpx esrun ./scripts/<script>
```

> From the [esrun](https://www.npmjs.com/package/esrun) readme:
Expand Down
32 changes: 32 additions & 0 deletions examples/get-started/scripts/gen-key.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import fs from "fs";
import os from "os";
import path from "path";

(async () => {
try {
const keyPair = await crypto.subtle.generateKey(
'Ed25519',
true,
['sign', 'verify']
);
const jwk = await crypto.subtle.exportKey('jwk', keyPair.privateKey);

const d = Buffer.from(jwk.d, 'base64url');
const x = Buffer.from(jwk.x, 'base64url');

const fullBytes = new Uint8Array([...d, ...x]);
const json = JSON.stringify(Array.from(fullBytes));

const configDir = path.join(os.homedir(), ".config", "solana");
if (!fs.existsSync(configDir)) {
fs.mkdirSync(configDir, { recursive: true });
}

const keyPath = path.join(configDir, "id.json");
fs.writeFileSync(keyPath, json);
console.log(`Generated keypair at ${keyPath}`);
} catch (err) {
console.error(err);
process.exit(1);
}
})();
12 changes: 6 additions & 6 deletions examples/get-started/src/intro.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {
createSolanaClient,
createTransaction,
getExplorerLink,
getSignatureFromTransaction,
signTransactionMessageWithSigners,
SolanaClusterMoniker,
createSolanaClient,
createTransaction,
getExplorerLink,
getSignatureFromTransaction,
signTransactionMessageWithSigners,
type SolanaClusterMoniker,
} from "gill";
import { loadKeypairSignerFromFile } from "gill/node";
import { getAddMemoInstruction } from "gill/programs";
Expand Down
6 changes: 3 additions & 3 deletions packages/gill/src/core/create-solana-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ export function createSolanaClient<TCluster extends ModifiedClusterUrl>({
rpc,
rpcSubscriptions,
sendAndConfirmTransaction: sendAndConfirmTransactionWithSignersFactory({
// @ts-ignore - TODO(FIXME:nick)
// @ts-ignore - TODO: Fix type mismatch between generic Rpc and factory requirements
rpc,
// @ts-ignore - TODO(FIXME:nick)
// @ts-ignore - TODO: Fix type mismatch between generic RpcSubscriptions and factory requirements
rpcSubscriptions,
}),
// @ts-ignore
// @ts-ignore - TODO: Fix type mismatch
simulateTransaction: simulateTransactionFactory({ rpc }),
urlOrMoniker: urlOrMoniker.toString() as TCluster,
};
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/__tests__/placeholder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import assert from "node:assert";

describe("placeholder", () => {
test("this is a placeholder test to satisfy github actions", () => {});
it.todo("should have tests");
});
1 change: 1 addition & 0 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ export * from "@solana/wallet-standard-features";
export * from "@wallet-standard/core";
export * from "@wallet-standard/react";
export * from "@wallet-standard/ui";

4 changes: 4 additions & 0 deletions packages/svelte/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# @gillsdk/svelte

This package is currently under active development. Features and APIs are subject to change.

Please refer to the [main repository](https://github.com/gillsdk/gill) for the latest updates and contribution guidelines.
2 changes: 1 addition & 1 deletion packages/svelte/src/__tests__/placeholder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import assert from "node:assert";

describe("placeholder", () => {
test("this is a placeholder test to satisfy github actions", () => {});
it.todo("should have tests");
});
4 changes: 4 additions & 0 deletions packages/vue/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# @gillsdk/vue

This package is currently under active development. Features and APIs are subject to change.

Please refer to the [main repository](https://github.com/gillsdk/gill) for the latest updates and contribution guidelines.
2 changes: 1 addition & 1 deletion packages/vue/src/__tests__/placeholder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import assert from "node:assert";

describe("placeholder", () => {
test("this is a placeholder test to satisfy github actions", () => {});
it.todo("should have tests");
});