From 20b8529fe344dd7b0f48d5662c9bf75aff6938f8 Mon Sep 17 00:00:00 2001 From: Kiln Bot Date: Wed, 21 May 2025 12:36:30 +0000 Subject: [PATCH 1/3] Update OpenAPI schema --- src/openapi/schema.ts | 69 ++++++------------------------------------- 1 file changed, 9 insertions(+), 60 deletions(-) diff --git a/src/openapi/schema.ts b/src/openapi/schema.ts index b43ca79..c51dd15 100644 --- a/src/openapi/schema.ts +++ b/src/openapi/schema.ts @@ -9834,6 +9834,13 @@ export interface components { * @example 0xe1f4acc0affB36a805474e3b6ab786738C6900A2 */ wallet: string; + /** + * @description Ethereum address to be used as withdrawal credentials. + * If not specified, defaults to the wallet address. + * + * @example 0xe1f4acc0affB36a805474e3b6ab786738C6900A2 + */ + withdrawal_credentials?: string; /** * @description Amount to stake in WEI. * - If `compounding_withdrawal` is **false**, must be a multiple of "32000000000000000000" (32 ETH). @@ -24250,40 +24257,11 @@ export interface components { signature: string; }; DOTUnsignedTx: { - /** - * @description Hash of the unsigned transaction payload to sign - * @example 0x0600070010a5d4e803373c6f8e84c6822a9f87035f65cccf899eef3fcdee61077041a93e1805bab24eb5001d0100d624000016000000e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125 - */ - unsigned_tx_payload: string; /** * @description Unsigned serialized transaction - * @example 7b2261646472657373223a2235444b38536871747975566b32773471724639487761424a6f695a5631627951733541525a336466325074385636566a222c2261737365744964223a302c22626c6f636b48617368223a22307832386333366166303134356663623963383738383531303136313739303439663035373938386263383035393930373332666461353664343563343865313235222c22626c6f636b4e756d626572223a2230783031313035303862222c22657261223a22307862353030222c2267656e6573697348617368223a22307865313433663233383033616335306538663666386536323639356431636539653465316436386161333663316364326366643135333430323133663334323365222c226d65746164617461527063223a223078222c226d6574686f64223a22307830363030303730303130613564346538303333373363366638653834633638323261396638373033356636356363636638393965656633666364656536313037373034316139336531383035626162323465222c226e6f6e6365223a2230783030303030303437222c227369676e6564457874656e73696f6e73223a5b22436865636b4e6f6e5a65726f53656e646572222c22436865636b5370656356657273696f6e222c22436865636b547856657273696f6e222c22436865636b47656e65736973222c22436865636b4d6f7274616c697479222c22436865636b4e6f6e6365222c22436865636b576569676874222c224368617267655472616e73616374696f6e5061796d656e74225d2c227370656356657273696f6e223a2230783030303032346436222c22746970223a2230783030303030303030303030303030303030303030303030303030303030303030222c227472616e73616374696f6e56657273696f6e223a2230783030303030303136222c2276657273696f6e223a347d + * @example 0x2903004e77db4fdd2080ccba70b9f7afc969e995678eaab353b500973eaed30306071a0700e87648178502480000c8550f001a000000b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe79f554cf30021735b24b20f5667fef7ffbc54bfc353fe12fda45920ad568f480011bb8290876bf473d9dc8dd6449f652be67145c0fb6c8cb0df1e2589058a79d0c */ unsigned_tx_serialized: string; - /** - * @description Transaction payload - * @example { - * "blockHash": "0x28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125", - * "eraPeriod": 64, - * "genesisHash": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e", - * "metadataRpc": "0x", - * "method": { - * "args": { - * "value": "1000000000000", - * "payee": { - * "account": "5DK8ShqtyuVk2w4qrF9HwaBJoiZV1byQs5ARZ3df2Pt8V6Vj" - * } - * }, - * "name": "bond", - * "pallet": "staking" - * }, - * "nonce": 71, - * "specVersion": 9430, - * "tip": 0, - * "transactionVersion": 22 - * } - */ - unsigned_tx: Record; }; DOTCraftBondTxPayload: { /** @@ -24845,40 +24823,11 @@ export interface components { signature: string; }; KSMUnsignedTx: { - /** - * @description Hash of the unsigned transaction payload to sign - * @example 0x0600070010a5d4e803373c6f8e84c6822a9f87035f65cccf899eef3fcdee61077041a93e1805bab24eb5001d0100d624000016000000e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125 - */ - unsigned_tx_payload: string; /** * @description Unsigned serialized transaction - * @example 7b2261646472657373223a2235444b38536871747975566b32773471724639487761424a6f695a5631627951733541525a336466325074385636566a222c2261737365744964223a302c22626c6f636b48617368223a22307832386333366166303134356663623963383738383531303136313739303439663035373938386263383035393930373332666461353664343563343865313235222c22626c6f636b4e756d626572223a2230783031313035303862222c22657261223a22307862353030222c2267656e6573697348617368223a22307865313433663233383033616335306538663666386536323639356431636539653465316436386161333663316364326366643135333430323133663334323365222c226d65746164617461527063223a223078222c226d6574686f64223a22307830363030303730303130613564346538303333373363366638653834633638323261396638373033356636356363636638393965656633666364656536313037373034316139336531383035626162323465222c226e6f6e6365223a2230783030303030303437222c227369676e6564457874656e73696f6e73223a5b22436865636b4e6f6e5a65726f53656e646572222c22436865636b5370656356657273696f6e222c22436865636b547856657273696f6e222c22436865636b47656e65736973222c22436865636b4d6f7274616c697479222c22436865636b4e6f6e6365222c22436865636b576569676874222c224368617267655472616e73616374696f6e5061796d656e74225d2c227370656356657273696f6e223a2230783030303032346436222c22746970223a2230783030303030303030303030303030303030303030303030303030303030303030222c227472616e73616374696f6e56657273696f6e223a2230783030303030303136222c2276657273696f6e223a347d + * @example 0x2903004e77db4fdd2080ccba70b9f7afc969e995678eaab353b500973eaed30306071a0700e87648178502480000c8550f001a000000b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe79f554cf30021735b24b20f5667fef7ffbc54bfc353fe12fda45920ad568f480011bb8290876bf473d9dc8dd6449f652be67145c0fb6c8cb0df1e2589058a79d0c */ unsigned_tx_serialized: string; - /** - * @description Transaction payload - * @example { - * "blockHash": "0x28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125", - * "eraPeriod": 64, - * "genesisHash": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e", - * "metadataRpc": "0x", - * "method": { - * "args": { - * "value": "1000000000000", - * "payee": { - * "account": "5DK8ShqtyuVk2w4qrF9HwaBJoiZV1byQs5ARZ3df2Pt8V6Vj" - * } - * }, - * "name": "bond", - * "pallet": "staking" - * }, - * "nonce": 71, - * "specVersion": 9430, - * "tip": 0, - * "transactionVersion": 22 - * } - */ - unsigned_tx: Record; }; KSMCraftBondTxPayload: { /** From 594c5cb347878b32d9991eb6de1c694fe9fd6a87 Mon Sep 17 00:00:00 2001 From: Hugo Maitre Date: Wed, 21 May 2025 14:41:27 +0200 Subject: [PATCH 2/3] Update data --- src/fireblocks.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fireblocks.ts b/src/fireblocks.ts index a2201d9..529088c 100644 --- a/src/fireblocks.ts +++ b/src/fireblocks.ts @@ -792,7 +792,7 @@ export class FireblocksService { rawMessageData: { messages: [ { - content: tx.unsigned_tx_payload.substring(2), + content: tx.unsigned_tx_serialized.substring(2), }, ], }, @@ -840,7 +840,7 @@ export class FireblocksService { rawMessageData: { messages: [ { - content: tx.unsigned_tx_payload.substring(2), + content: tx.unsigned_tx_serialized.substring(2), }, ], }, From 834c0acfd35c9c0d31e7f09dbfed80782388fbf5 Mon Sep 17 00:00:00 2001 From: Hugo Maitre Date: Wed, 21 May 2025 14:43:48 +0200 Subject: [PATCH 3/3] Bump minor version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2ada44f..d297c7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kilnfi/sdk", - "version": "4.1.26", + "version": "4.2.0", "autor": "Kiln (https://kiln.fi)", "license": "BUSL-1.1", "description": "JavaScript sdk for Kiln API",