-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2585 from dirvine/docs_and_nodejs
feat: Comprehensive update with documentation, Node.js integration, a…
- Loading branch information
Showing
41 changed files
with
9,044 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Deploy Documentation | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- data_further_refactor | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install mkdocs-material mkdocstrings mkdocstrings-python mkdocs-git-revision-date-localized-plugin | ||
- name: Deploy Documentation | ||
run: | | ||
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
mkdocs gh-deploy --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,10 @@ uv.lock | |
*.swp | ||
|
||
/vendor/ | ||
count.sh | ||
|
||
|
||
# Node.js | ||
node_modules/ | ||
|
||
# MkDocs | ||
site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { LinkedListOptions, PaymentOption } from './types'; | ||
export declare class LinkedList { | ||
private nativeList; | ||
private constructor(); | ||
static create(address: string): Promise<LinkedList>; | ||
get(): Promise<any[]>; | ||
put(options: LinkedListOptions, payment: PaymentOption): Promise<void>; | ||
getCost(key: string): Promise<string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LinkedList = void 0; | ||
class LinkedList { | ||
constructor(nativeList) { | ||
this.nativeList = nativeList; | ||
} | ||
static async create(address) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async get() { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async put(options, payment) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async getCost(key) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
} | ||
exports.LinkedList = LinkedList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { PointerOptions, PaymentOption } from './types'; | ||
export declare class Pointer { | ||
private nativePointer; | ||
private constructor(); | ||
static create(address: string): Promise<Pointer>; | ||
get(): Promise<any>; | ||
put(options: PointerOptions, payment: PaymentOption): Promise<void>; | ||
getCost(key: string): Promise<string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Pointer = void 0; | ||
class Pointer { | ||
constructor(nativePointer) { | ||
this.nativePointer = nativePointer; | ||
} | ||
static async create(address) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async get() { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async put(options, payment) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async getCost(key) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
} | ||
exports.Pointer = Pointer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { VaultOptions, PaymentOption, UserData } from './types'; | ||
export declare class Vault { | ||
private nativeVault; | ||
private constructor(); | ||
static create(address: string): Promise<Vault>; | ||
getCost(key: string): Promise<string>; | ||
writeBytes(data: Buffer, payment: PaymentOption, options: VaultOptions): Promise<string>; | ||
fetchAndDecrypt(key: string): Promise<[Buffer, number]>; | ||
getUserData(key: string): Promise<UserData>; | ||
putUserData(key: string, payment: PaymentOption, userData: UserData): Promise<void>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Vault = void 0; | ||
class Vault { | ||
constructor(nativeVault) { | ||
this.nativeVault = nativeVault; | ||
} | ||
static async create(address) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async getCost(key) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async writeBytes(data, payment, options) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async fetchAndDecrypt(key) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async getUserData(key) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async putUserData(key, payment, userData) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
} | ||
exports.Vault = Vault; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NetworkConfig } from './types'; | ||
export interface WalletConfig { | ||
privateKey?: string; | ||
address?: string; | ||
} | ||
export declare class Wallet { | ||
private nativeWallet; | ||
private constructor(); | ||
static create(config: NetworkConfig & WalletConfig): Promise<Wallet>; | ||
getAddress(): Promise<string>; | ||
getBalance(): Promise<string>; | ||
signMessage(message: string): Promise<string>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Wallet = void 0; | ||
class Wallet { | ||
constructor(nativeWallet) { | ||
this.nativeWallet = nativeWallet; | ||
} | ||
static async create(config) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async getAddress() { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async getBalance() { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
async signMessage(message) { | ||
// TODO: Implement native binding call | ||
throw new Error('Not implemented'); | ||
} | ||
} | ||
exports.Wallet = Wallet; |
Oops, something went wrong.