Skip to content
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
3 changes: 1 addition & 2 deletions packages/wasm-sdk/AI_REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,6 @@ Parameters (in addition to identity/key):
- `tokenPosition` (number, required) - Token Contract Position
- `amount` (text, required) - Amount to Purchase
- `totalAgreedPrice` (text, optional) - Total Agreed Price (in credits) - Optional, fetches from pricing schedule if not provided
- `keyId` (number, required) - Key ID (for signing)

Example:
```javascript
Expand Down Expand Up @@ -1175,7 +1174,7 @@ const result = await sdk.tokenUnfreeze(identityHex, /* params */, privateKeyHex)
Parameters (in addition to identity/key):
- `contractId` (text, required) - Data Contract ID
- `tokenPosition` (number, required) - Token Contract Position
- `identityId` (text, required) - Identity ID whose frozen tokens to destroy
- `frozenIdentityId` (text, required) - Identity ID whose frozen tokens to destroy
- `publicNote` (text, optional) - Public Note

Example:
Expand Down
6 changes: 0 additions & 6 deletions packages/wasm-sdk/api-definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1875,12 +1875,6 @@
"type": "text",
"label": "Total Agreed Price (in credits) - Optional, fetches from pricing schedule if not provided",
"required": false
},
{
"name": "keyId",
"type": "number",
"label": "Key ID (for signing)",
"required": true
}
]
},
Expand Down
5 changes: 0 additions & 5 deletions packages/wasm-sdk/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -2639,11 +2639,6 @@ <h5>Parameters:</h5>
<span class="param-type">text</span>
<span class="param-optional">(optional)</span>
</div>
<div class="parameter">
<span class="param-name">Key ID (for signing)</span>
<span class="param-type">number</span>
<span class="param-required">(required)</span>
</div>
</div>

<div class="example-container">
Expand Down
2 changes: 1 addition & 1 deletion packages/wasm-sdk/docs_manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"generated_at": "2025-09-02T17:31:30.731295+00:00",
"generated_at": "2025-09-03T20:55:56.075308+00:00",
"queries": {
"getIdentity": {
"category": "identity",
Expand Down
15 changes: 5 additions & 10 deletions packages/wasm-sdk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3296,8 +3296,7 @@ <h2>Results</h2>
identityId,
JSON.stringify(documentData),
BigInt(loadedDocumentRevision),
privateKey,
0 // key_id - using 0 as default
privateKey
);

// Pass the result object directly to displayResult
Expand All @@ -3314,8 +3313,7 @@ <h2>Results</h2>
values.documentType,
values.documentId,
identityId,
privateKey,
0 // key_id - using 0 as default
privateKey
);

// Pass the result object directly to displayResult
Expand All @@ -3329,8 +3327,7 @@ <h2>Results</h2>
values.documentId,
identityId,
values.recipientId,
privateKey,
0 // key_id - using 0 as default
privateKey
);

// Pass the result object directly to displayResult
Expand All @@ -3344,8 +3341,7 @@ <h2>Results</h2>
values.documentId,
identityId,
BigInt(values.price || 0), // price in credits, 0 to remove price
privateKey,
0 // key_id - using 0 as default
privateKey
);

// Pass the result object directly to displayResult
Expand Down Expand Up @@ -3478,8 +3474,7 @@ <h2>Results</h2>
values.documentId,
identityId,
BigInt(values.price),
privateKey,
0 // key_id - using 0 as default
privateKey
);

// Pass the result object directly to displayResult
Expand Down
10 changes: 0 additions & 10 deletions packages/wasm-sdk/src/state_transitions/documents/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ impl WasmSdk {
/// * `document_data` - The new document data as a JSON string
/// * `revision` - The current revision of the document
/// * `private_key_wif` - The private key in WIF format for signing
/// * `key_id` - The key ID to use for signing
///
/// # Returns
///
Expand All @@ -523,7 +522,6 @@ impl WasmSdk {
document_data: String,
revision: u64,
private_key_wif: String,
_key_id: u32,
) -> Result<JsValue, JsValue> {
let sdk = self.inner_clone();

Expand Down Expand Up @@ -794,7 +792,6 @@ impl WasmSdk {
/// * `document_id` - The ID of the document to delete
/// * `owner_id` - The identity ID of the document owner
/// * `private_key_wif` - The private key in WIF format for signing
/// * `key_id` - The key ID to use for signing
///
/// # Returns
///
Expand All @@ -807,7 +804,6 @@ impl WasmSdk {
document_id: String,
owner_id: String,
private_key_wif: String,
_key_id: u32,
) -> Result<JsValue, JsValue> {
let sdk = self.inner_clone();

Expand Down Expand Up @@ -921,7 +917,6 @@ impl WasmSdk {
/// * `owner_id` - The current owner's identity ID
/// * `recipient_id` - The new owner's identity ID
/// * `private_key_wif` - The private key in WIF format for signing
/// * `key_id` - The key ID to use for signing
///
/// # Returns
///
Expand All @@ -935,7 +930,6 @@ impl WasmSdk {
owner_id: String,
recipient_id: String,
private_key_wif: String,
_key_id: u32,
) -> Result<JsValue, JsValue> {
let sdk = self.inner_clone();

Expand Down Expand Up @@ -1056,7 +1050,6 @@ impl WasmSdk {
/// * `buyer_id` - The buyer's identity ID
/// * `price` - The purchase price in credits
/// * `private_key_wif` - The private key in WIF format for signing
/// * `key_id` - The key ID to use for signing
///
/// # Returns
///
Expand All @@ -1070,7 +1063,6 @@ impl WasmSdk {
buyer_id: String,
price: u64,
private_key_wif: String,
key_id: u32,
) -> Result<JsValue, JsValue> {
let sdk = self.inner_clone();

Expand Down Expand Up @@ -1222,7 +1214,6 @@ impl WasmSdk {
/// * `owner_id` - The owner's identity ID
/// * `price` - The price in credits (0 to remove price)
/// * `private_key_wif` - The private key in WIF format for signing
/// * `key_id` - The key ID to use for signing
///
/// # Returns
///
Expand All @@ -1236,7 +1227,6 @@ impl WasmSdk {
owner_id: String,
price: u64,
private_key_wif: String,
key_id: u32,
) -> Result<JsValue, JsValue> {
let sdk = self.inner_clone();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,6 @@ const testData = {
tokenPosition: 0,
amount: "1",
totalAgreedPrice: "10",
keyId: 0,
description: "Direct purchase of tokens at configured price"
}
]
Expand Down
Loading