Skip to content

Commit 2f479f3

Browse files
committed
Revert substrate signing methods - Update substrate schemas (#225)
1 parent 561a2c5 commit 2f479f3

File tree

3 files changed

+63
-11
lines changed

3 files changed

+63
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kilnfi/sdk",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"autor": "Kiln <[email protected]> (https://kiln.fi)",
55
"license": "BUSL-1.1",
66
"description": "JavaScript sdk for Kiln API",

src/fireblocks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ export class FireblocksService {
792792
rawMessageData: {
793793
messages: [
794794
{
795-
content: tx.unsigned_tx_serialized.substring(2),
795+
content: tx.unsigned_tx_payload.substring(2),
796796
},
797797
],
798798
},
@@ -840,7 +840,7 @@ export class FireblocksService {
840840
rawMessageData: {
841841
messages: [
842842
{
843-
content: tx.unsigned_tx_serialized.substring(2),
843+
content: tx.unsigned_tx_payload.substring(2),
844844
},
845845
],
846846
},

src/openapi/schema.ts

Lines changed: 60 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24257,11 +24257,40 @@ export interface components {
2425724257
signature: string;
2425824258
};
2425924259
DOTUnsignedTx: {
24260+
/**
24261+
* @description Hash of the unsigned transaction payload to sign
24262+
* @example 0x27010000e1f505000000000000000000000000c5026c0000e1510f001a00000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3fd5fa68be2d12fa7d1e7aaa62781baffb8a0d8e5cf18b81931828eda0c2dce3f00
24263+
*/
24264+
unsigned_tx_payload: string;
2426024265
/**
2426124266
* @description Unsigned serialized transaction
24262-
* @example 0x2903004e77db4fdd2080ccba70b9f7afc969e995678eaab353b500973eaed30306071a0700e87648178502480000c8550f001a000000b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe79f554cf30021735b24b20f5667fef7ffbc54bfc353fe12fda45920ad568f480011bb8290876bf473d9dc8dd6449f652be67145c0fb6c8cb0df1e2589058a79d0c
24267+
* @example 7b227370656356657273696f6e223a2230783030306635316531222c227472616e73616374696f6e56657273696f6e223a2230783030303030303161222c2261646472657373223a2231763970757652376b5244446d596e637a597442674e636a3775364564436742337042754135455437546848386e66222c2261737365744964223a6e756c6c2c22626c6f636b48617368223a22307866643566613638626532643132666137643165376161613632373831626166666238613064386535636631386238313933313832386564613063326463653366222c22626c6f636b4e756d626572223a2230783030303030303030222c22657261223a22307863353032222c2267656e6573697348617368223a22307839316231373162623135386532643338343866613233613966316332353138326662386532303331336232633165623439323139646137613730636539306333222c226d6574616461746148617368223a6e756c6c2c226d6574686f64223a2230783237303130303030653166353035303030303030303030303030303030303030303030303030222c226d6f6465223a302c226e6f6e6365223a2230783030303030303162222c227369676e6564457874656e73696f6e73223a5b5d2c22746970223a2230783030303030303030303030303030303030303030303030303030303030303030222c2276657273696f6e223a342c22776974685369676e65645472616e73616374696f6e223a66616c73657d
2426324268
*/
2426424269
unsigned_tx_serialized: string;
24270+
/**
24271+
* @description Transaction payload
24272+
* @example {
24273+
* "blockHash": "0x28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125",
24274+
* "eraPeriod": 64,
24275+
* "genesisHash": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
24276+
* "metadataRpc": "0x",
24277+
* "method": {
24278+
* "args": {
24279+
* "value": "1000000000000",
24280+
* "payee": {
24281+
* "account": "5DK8ShqtyuVk2w4qrF9HwaBJoiZV1byQs5ARZ3df2Pt8V6Vj"
24282+
* }
24283+
* },
24284+
* "name": "bond",
24285+
* "pallet": "staking"
24286+
* },
24287+
* "nonce": 71,
24288+
* "specVersion": 9430,
24289+
* "tip": 0,
24290+
* "transactionVersion": 22
24291+
* }
24292+
*/
24293+
unsigned_tx: Record<string, never>;
2426524294
};
2426624295
DOTCraftBondTxPayload: {
2426724296
/**
@@ -24823,11 +24852,40 @@ export interface components {
2482324852
signature: string;
2482424853
};
2482524854
KSMUnsignedTx: {
24855+
/**
24856+
* @description Hash of the unsigned transaction payload to sign
24857+
* @example 0x27010000e1f505000000000000000000000000c5026c0000e1510f001a00000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3fd5fa68be2d12fa7d1e7aaa62781baffb8a0d8e5cf18b81931828eda0c2dce3f00
24858+
*/
24859+
unsigned_tx_payload: string;
2482624860
/**
2482724861
* @description Unsigned serialized transaction
24828-
* @example 0x2903004e77db4fdd2080ccba70b9f7afc969e995678eaab353b500973eaed30306071a0700e87648178502480000c8550f001a000000b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe79f554cf30021735b24b20f5667fef7ffbc54bfc353fe12fda45920ad568f480011bb8290876bf473d9dc8dd6449f652be67145c0fb6c8cb0df1e2589058a79d0c
24862+
* @example 7b227370656356657273696f6e223a2230783030306635316531222c227472616e73616374696f6e56657273696f6e223a2230783030303030303161222c2261646472657373223a2231763970757652376b5244446d596e637a597442674e636a3775364564436742337042754135455437546848386e66222c2261737365744964223a6e756c6c2c22626c6f636b48617368223a22307866643566613638626532643132666137643165376161613632373831626166666238613064386535636631386238313933313832386564613063326463653366222c22626c6f636b4e756d626572223a2230783030303030303030222c22657261223a22307863353032222c2267656e6573697348617368223a22307839316231373162623135386532643338343866613233613966316332353138326662386532303331336232633165623439323139646137613730636539306333222c226d6574616461746148617368223a6e756c6c2c226d6574686f64223a2230783237303130303030653166353035303030303030303030303030303030303030303030303030222c226d6f6465223a302c226e6f6e6365223a2230783030303030303162222c227369676e6564457874656e73696f6e73223a5b5d2c22746970223a2230783030303030303030303030303030303030303030303030303030303030303030222c2276657273696f6e223a342c22776974685369676e65645472616e73616374696f6e223a66616c73657d
2482924863
*/
2483024864
unsigned_tx_serialized: string;
24865+
/**
24866+
* @description Transaction payload
24867+
* @example {
24868+
* "blockHash": "0x28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125",
24869+
* "eraPeriod": 64,
24870+
* "genesisHash": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
24871+
* "metadataRpc": "0x",
24872+
* "method": {
24873+
* "args": {
24874+
* "value": "1000000000000",
24875+
* "payee": {
24876+
* "account": "5DK8ShqtyuVk2w4qrF9HwaBJoiZV1byQs5ARZ3df2Pt8V6Vj"
24877+
* }
24878+
* },
24879+
* "name": "bond",
24880+
* "pallet": "staking"
24881+
* },
24882+
* "nonce": 71,
24883+
* "specVersion": 9430,
24884+
* "tip": 0,
24885+
* "transactionVersion": 22
24886+
* }
24887+
*/
24888+
unsigned_tx: Record<string, never>;
2483124889
};
2483224890
KSMCraftBondTxPayload: {
2483324891
/**
@@ -39139,9 +39197,6 @@ export interface operations {
3913939197
[name: string]: unknown;
3914039198
};
3914139199
content: {
39142-
/** @example {
39143-
* "message": "No rewards to claim."
39144-
* } */
3914539200
"application/json; charset=utf-8": unknown;
3914639201
};
3914739202
};
@@ -39205,9 +39260,6 @@ export interface operations {
3920539260
[name: string]: unknown;
3920639261
};
3920739262
content: {
39208-
/** @example {
39209-
* "message": "No checkpoint proofs to process."
39210-
* } */
3921139263
"application/json; charset=utf-8": unknown;
3921239264
};
3921339265
};

0 commit comments

Comments
 (0)