File tree Expand file tree Collapse file tree 4 files changed +192
-192
lines changed
Expand file tree Collapse file tree 4 files changed +192
-192
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const vault: FireblocksIntegration = {
1919
2020try {
2121 console . log ( 'crafting...' ) ;
22- const tx = await k . client . POST ( '/mantra /transaction/stake' , {
22+ const tx = await k . client . POST ( '/om /transaction/stake' , {
2323 body : {
2424 account_id : process . env . KILN_ACCOUNT_ID as string ,
2525 pubkey : '028dfa6f41c655e38a0f8f2e3f3aa3e1246907a9bb299933f11996e2a345a21e10' ,
@@ -32,10 +32,10 @@ try {
3232 console . log ( tx ) ;
3333 console . log ( 'signing...' ) ;
3434 if ( ! tx . data ?. data ) throw new Error ( 'No data in response' ) ;
35- const signResponse = await k . fireblocks . signMantraTx ( vault , tx . data . data ) ;
35+ const signResponse = await k . fireblocks . signOmTx ( vault , tx . data . data ) ;
3636 console . log ( 'broadcasting...' ) ;
3737 if ( ! signResponse . signed_tx ?. data ?. signed_tx_serialized ) throw new Error ( 'No signed_tx in response' ) ;
38- const broadcastedTx = await k . client . POST ( '/mantra /transaction/broadcast' , {
38+ const broadcastedTx = await k . client . POST ( '/om /transaction/broadcast' , {
3939 body : {
4040 tx_serialized : signResponse . signed_tx . data . signed_tx_serialized ,
4141 } ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @kilnfi/sdk" ,
3- "version" : " 4.0.5 " ,
3+ "version" : " 4.0.6 " ,
44 "autor" :
" Kiln <[email protected] > (https://kiln.fi)" ,
55 "license" : " BUSL-1.1" ,
66 "description" : " JavaScript sdk for Kiln API" ,
Original file line number Diff line number Diff line change @@ -345,14 +345,14 @@ export class FireblocksService {
345345 }
346346
347347 /**
348- * Sign a MANTRA transaction on Fireblocks
348+ * Sign a OM transaction on Fireblocks
349349 */
350- async signMantraTx (
350+ async signOmTx (
351351 integration : FireblocksIntegration ,
352- tx : components [ 'schemas' ] [ 'MANTRAUnsignedTx ' ] | components [ 'schemas' ] [ 'MANTRAStakeUnsignedTx ' ] ,
352+ tx : components [ 'schemas' ] [ 'OMUnsignedTx ' ] | components [ 'schemas' ] [ 'OMStakeUnsignedTx ' ] ,
353353 note ?: string ,
354354 ) : Promise < {
355- signed_tx : { data : components [ 'schemas' ] [ 'MANTRASignedTx ' ] } ;
355+ signed_tx : { data : components [ 'schemas' ] [ 'OMSignedTx ' ] } ;
356356 fireblocks_tx : TransactionResponse ;
357357 } > {
358358 const payload = {
@@ -372,15 +372,15 @@ export class FireblocksService {
372372 } ;
373373
374374 const fbSigner = this . getSigner ( integration ) ;
375- const fbNote = note ? note : 'MANTRA tx from @kilnfi/sdk' ;
375+ const fbNote = note ? note : 'OM tx from @kilnfi/sdk' ;
376376 const fbTx = await fbSigner . sign ( payload , undefined , fbNote ) ;
377377 const signature = fbTx . signedMessages ?. [ 0 ] ?. signature . fullSig ;
378378
379379 if ( ! signature ) {
380380 throw new Error ( 'Fireblocks signature is missing' ) ;
381381 }
382382
383- const preparedTx = await this . client . POST ( '/mantra /transaction/prepare' , {
383+ const preparedTx = await this . client . POST ( '/om /transaction/prepare' , {
384384 body : {
385385 pubkey : tx . pubkey ,
386386 tx_body : tx . tx_body ,
You can’t perform that action at this time.
0 commit comments