-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
…nd AttoTokens fix - Documentation: Added mkdocs configuration, online documentation structure, and GitHub Actions workflow for docs deployment. Enhanced documentation with Node.js integration guide. - Node.js Integration: Added Node.js bindings and examples, local testnet action for testing, and comprehensive Node.js documentation. - Bug Fixes: Fixed AttoTokens parsing to handle large values correctly, added proper validation for excessive values, and updated test cases. - Infrastructure: Added .gitignore rules, updated Cargo.lock, and added GitHub Actions workflow configuration.
- Loading branch information
There are no files selected for viewing
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,9 @@ uv.lock | |
*.swp | ||
|
||
/vendor/ | ||
|
||
# Node.js | ||
node_modules/ | ||
|
||
# MkDocs | ||
site/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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>; | ||
} |
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 | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async get() { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async put(options, payment) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async getCost(key) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
} | ||
exports.LinkedList = LinkedList; |
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>; | ||
} |
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 | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async get() { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async put(options, payment) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async getCost(key) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
} | ||
exports.Pointer = Pointer; |
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>; | ||
} |
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 | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async getCost(key) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async writeBytes(data, payment, options) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async fetchAndDecrypt(key) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async getUserData(key) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async putUserData(key, payment, userData) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
} | ||
exports.Vault = Vault; |
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>; | ||
} |
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 | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async getAddress() { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async getBalance() { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
async signMessage(message) { | ||
// TODO: Implement native binding call | ||
Check notice Code scanning / devskim A "TODO" or similar was left in source code, possibly indicating incomplete functionality Note
Suspicious comment
|
||
throw new Error('Not implemented'); | ||
} | ||
} | ||
exports.Wallet = Wallet; |