Skip to content

Commit 561a2c5

Browse files
authored
Update OpenAPI schema - Substrate (#224)
1 parent 7b1a264 commit 561a2c5

File tree

3 files changed

+12
-63
lines changed

3 files changed

+12
-63
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.1.26",
3+
"version": "4.2.0",
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_payload.substring(2),
795+
content: tx.unsigned_tx_serialized.substring(2),
796796
},
797797
],
798798
},
@@ -840,7 +840,7 @@ export class FireblocksService {
840840
rawMessageData: {
841841
messages: [
842842
{
843-
content: tx.unsigned_tx_payload.substring(2),
843+
content: tx.unsigned_tx_serialized.substring(2),
844844
},
845845
],
846846
},

src/openapi/schema.ts

Lines changed: 9 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -9834,6 +9834,13 @@ export interface components {
98349834
* @example 0xe1f4acc0affB36a805474e3b6ab786738C6900A2
98359835
*/
98369836
wallet: string;
9837+
/**
9838+
* @description Ethereum address to be used as withdrawal credentials.
9839+
* If not specified, defaults to the wallet address.
9840+
*
9841+
* @example 0xe1f4acc0affB36a805474e3b6ab786738C6900A2
9842+
*/
9843+
withdrawal_credentials?: string;
98379844
/**
98389845
* @description Amount to stake in WEI.
98399846
* - If `compounding_withdrawal` is **false**, must be a multiple of "32000000000000000000" (32 ETH).
@@ -24250,40 +24257,11 @@ export interface components {
2425024257
signature: string;
2425124258
};
2425224259
DOTUnsignedTx: {
24253-
/**
24254-
* @description Hash of the unsigned transaction payload to sign
24255-
* @example 0x0600070010a5d4e803373c6f8e84c6822a9f87035f65cccf899eef3fcdee61077041a93e1805bab24eb5001d0100d624000016000000e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125
24256-
*/
24257-
unsigned_tx_payload: string;
2425824260
/**
2425924261
* @description Unsigned serialized transaction
24260-
* @example 7b2261646472657373223a2235444b38536871747975566b32773471724639487761424a6f695a5631627951733541525a336466325074385636566a222c2261737365744964223a302c22626c6f636b48617368223a22307832386333366166303134356663623963383738383531303136313739303439663035373938386263383035393930373332666461353664343563343865313235222c22626c6f636b4e756d626572223a2230783031313035303862222c22657261223a22307862353030222c2267656e6573697348617368223a22307865313433663233383033616335306538663666386536323639356431636539653465316436386161333663316364326366643135333430323133663334323365222c226d65746164617461527063223a223078222c226d6574686f64223a22307830363030303730303130613564346538303333373363366638653834633638323261396638373033356636356363636638393965656633666364656536313037373034316139336531383035626162323465222c226e6f6e6365223a2230783030303030303437222c227369676e6564457874656e73696f6e73223a5b22436865636b4e6f6e5a65726f53656e646572222c22436865636b5370656356657273696f6e222c22436865636b547856657273696f6e222c22436865636b47656e65736973222c22436865636b4d6f7274616c697479222c22436865636b4e6f6e6365222c22436865636b576569676874222c224368617267655472616e73616374696f6e5061796d656e74225d2c227370656356657273696f6e223a2230783030303032346436222c22746970223a2230783030303030303030303030303030303030303030303030303030303030303030222c227472616e73616374696f6e56657273696f6e223a2230783030303030303136222c2276657273696f6e223a347d
24262+
* @example 0x2903004e77db4fdd2080ccba70b9f7afc969e995678eaab353b500973eaed30306071a0700e87648178502480000c8550f001a000000b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe79f554cf30021735b24b20f5667fef7ffbc54bfc353fe12fda45920ad568f480011bb8290876bf473d9dc8dd6449f652be67145c0fb6c8cb0df1e2589058a79d0c
2426124263
*/
2426224264
unsigned_tx_serialized: string;
24263-
/**
24264-
* @description Transaction payload
24265-
* @example {
24266-
* "blockHash": "0x28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125",
24267-
* "eraPeriod": 64,
24268-
* "genesisHash": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
24269-
* "metadataRpc": "0x",
24270-
* "method": {
24271-
* "args": {
24272-
* "value": "1000000000000",
24273-
* "payee": {
24274-
* "account": "5DK8ShqtyuVk2w4qrF9HwaBJoiZV1byQs5ARZ3df2Pt8V6Vj"
24275-
* }
24276-
* },
24277-
* "name": "bond",
24278-
* "pallet": "staking"
24279-
* },
24280-
* "nonce": 71,
24281-
* "specVersion": 9430,
24282-
* "tip": 0,
24283-
* "transactionVersion": 22
24284-
* }
24285-
*/
24286-
unsigned_tx: Record<string, never>;
2428724265
};
2428824266
DOTCraftBondTxPayload: {
2428924267
/**
@@ -24845,40 +24823,11 @@ export interface components {
2484524823
signature: string;
2484624824
};
2484724825
KSMUnsignedTx: {
24848-
/**
24849-
* @description Hash of the unsigned transaction payload to sign
24850-
* @example 0x0600070010a5d4e803373c6f8e84c6822a9f87035f65cccf899eef3fcdee61077041a93e1805bab24eb5001d0100d624000016000000e143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125
24851-
*/
24852-
unsigned_tx_payload: string;
2485324826
/**
2485424827
* @description Unsigned serialized transaction
24855-
* @example 7b2261646472657373223a2235444b38536871747975566b32773471724639487761424a6f695a5631627951733541525a336466325074385636566a222c2261737365744964223a302c22626c6f636b48617368223a22307832386333366166303134356663623963383738383531303136313739303439663035373938386263383035393930373332666461353664343563343865313235222c22626c6f636b4e756d626572223a2230783031313035303862222c22657261223a22307862353030222c2267656e6573697348617368223a22307865313433663233383033616335306538663666386536323639356431636539653465316436386161333663316364326366643135333430323133663334323365222c226d65746164617461527063223a223078222c226d6574686f64223a22307830363030303730303130613564346538303333373363366638653834633638323261396638373033356636356363636638393965656633666364656536313037373034316139336531383035626162323465222c226e6f6e6365223a2230783030303030303437222c227369676e6564457874656e73696f6e73223a5b22436865636b4e6f6e5a65726f53656e646572222c22436865636b5370656356657273696f6e222c22436865636b547856657273696f6e222c22436865636b47656e65736973222c22436865636b4d6f7274616c697479222c22436865636b4e6f6e6365222c22436865636b576569676874222c224368617267655472616e73616374696f6e5061796d656e74225d2c227370656356657273696f6e223a2230783030303032346436222c22746970223a2230783030303030303030303030303030303030303030303030303030303030303030222c227472616e73616374696f6e56657273696f6e223a2230783030303030303136222c2276657273696f6e223a347d
24828+
* @example 0x2903004e77db4fdd2080ccba70b9f7afc969e995678eaab353b500973eaed30306071a0700e87648178502480000c8550f001a000000b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe79f554cf30021735b24b20f5667fef7ffbc54bfc353fe12fda45920ad568f480011bb8290876bf473d9dc8dd6449f652be67145c0fb6c8cb0df1e2589058a79d0c
2485624829
*/
2485724830
unsigned_tx_serialized: string;
24858-
/**
24859-
* @description Transaction payload
24860-
* @example {
24861-
* "blockHash": "0x28c36af0145fcb9c878851016179049f057988bc805990732fda56d45c48e125",
24862-
* "eraPeriod": 64,
24863-
* "genesisHash": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
24864-
* "metadataRpc": "0x",
24865-
* "method": {
24866-
* "args": {
24867-
* "value": "1000000000000",
24868-
* "payee": {
24869-
* "account": "5DK8ShqtyuVk2w4qrF9HwaBJoiZV1byQs5ARZ3df2Pt8V6Vj"
24870-
* }
24871-
* },
24872-
* "name": "bond",
24873-
* "pallet": "staking"
24874-
* },
24875-
* "nonce": 71,
24876-
* "specVersion": 9430,
24877-
* "tip": 0,
24878-
* "transactionVersion": 22
24879-
* }
24880-
*/
24881-
unsigned_tx: Record<string, never>;
2488224831
};
2488324832
KSMCraftBondTxPayload: {
2488424833
/**

0 commit comments

Comments
 (0)