feat: add WASM package stub for sdk_signer compatibility
This commit is contained in:
parent
47c06d15de
commit
5c9237775f
18
pkg/package.json
Normal file
18
pkg/package.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "sdk_client",
|
||||
"version": "0.1.3",
|
||||
"description": "4NK SDK Client WASM Package",
|
||||
"main": "sdk_client.js",
|
||||
"types": "sdk_client.d.ts",
|
||||
"files": [
|
||||
"sdk_client_bg.wasm",
|
||||
"sdk_client.js",
|
||||
"sdk_client.d.ts"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "echo 'WASM package built'"
|
||||
},
|
||||
"keywords": ["wasm", "4nk", "sdk"],
|
||||
"author": "4NK Team",
|
||||
"license": "MIT"
|
||||
}
|
16
pkg/sdk_client.d.ts
vendored
Normal file
16
pkg/sdk_client.d.ts
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
// 4NK SDK Client WASM Package - TypeScript Definitions
|
||||
|
||||
export interface WasmInstance {
|
||||
// Add WASM instance interface as needed
|
||||
}
|
||||
|
||||
export async function init(): Promise<void>;
|
||||
export function getWasmInstance(): WasmInstance | undefined;
|
||||
|
||||
export interface SdkClient {
|
||||
init(): Promise<void>;
|
||||
getWasmInstance(): WasmInstance | undefined;
|
||||
}
|
||||
|
||||
export const sdk_client: SdkClient;
|
||||
export default sdk_client;
|
28
pkg/sdk_client.js
Normal file
28
pkg/sdk_client.js
Normal file
@ -0,0 +1,28 @@
|
||||
// 4NK SDK Client WASM Package - Stub Implementation
|
||||
// This is a temporary stub until the full WASM compilation is resolved
|
||||
|
||||
let wasm;
|
||||
|
||||
/**
|
||||
* Initialize the WASM module
|
||||
*/
|
||||
export async function init() {
|
||||
console.log("4NK SDK Client WASM initialized (stub)");
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the WASM instance
|
||||
*/
|
||||
export function getWasmInstance() {
|
||||
return wasm;
|
||||
}
|
||||
|
||||
// Export stub functions that might be used by sdk_signer
|
||||
export const sdk_client = {
|
||||
init,
|
||||
getWasmInstance,
|
||||
// Add other stub functions as needed
|
||||
};
|
||||
|
||||
export default sdk_client;
|
1
pkg/sdk_client_bg.wasm
Normal file
1
pkg/sdk_client_bg.wasm
Normal file
@ -0,0 +1 @@
|
||||
WASM stub created
|
Loading…
x
Reference in New Issue
Block a user