Skip to content

Commit 00e7c1b

Browse files
authored
update cosmos chains + eth and matic with fireblocks raw signing changes (#114)
1 parent 4ac24a6 commit 00e7c1b

File tree

11 files changed

+44
-0
lines changed

11 files changed

+44
-0
lines changed

src/services/atom.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ export class AtomService extends Service {
129129
messages: [
130130
{
131131
content: tx.data.unsigned_tx_hash,
132+
preHash: {
133+
content: tx.data.unsigned_tx_serialized,
134+
hashAlgorithm: "SHA256",
135+
},
132136
},
133137
],
134138
},

src/services/dydx.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ export class DydxService extends Service {
137137
messages: [
138138
{
139139
content: tx.data.unsigned_tx_hash,
140+
preHash: {
141+
content: tx.data.unsigned_tx_serialized,
142+
hashAlgorithm: "SHA256",
143+
},
140144
},
141145
],
142146
},

src/services/eth.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ export class EthService extends Service {
6161
messages: [
6262
{
6363
content: tx.data.unsigned_tx_hash,
64+
preHash: {
65+
content: tx.data.unsigned_tx_serialized,
66+
hashAlgorithm: "KECCAK256",
67+
},
6468
},
6569
],
6670
},

src/services/fet.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ export class FetService extends Service {
147147
{
148148
content: tx.data.unsigned_tx_hash,
149149
derivationPath: [44, 118, integration.vaultId, 0, 0],
150+
preHash: {
151+
content: tx.data.unsigned_tx_serialized,
152+
hashAlgorithm: "SHA256",
153+
},
150154
},
151155
],
152156
algorithm: SigningAlgorithm.MPC_ECDSA_SECP256K1,

src/services/inj.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ export class InjService extends Service {
128128
messages: [
129129
{
130130
content: tx.data.unsigned_tx_hash,
131+
preHash: {
132+
content: tx.data.unsigned_tx_serialized,
133+
hashAlgorithm: "SHA256",
134+
},
131135
},
132136
],
133137
},

src/services/kava.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ export class KavaService extends Service {
128128
messages: [
129129
{
130130
content: tx.data.unsigned_tx_hash,
131+
preHash: {
132+
content: tx.data.unsigned_tx_serialized,
133+
hashAlgorithm: "SHA256",
134+
},
131135
},
132136
],
133137
},

src/services/matic.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ export class MaticService extends Service {
128128
messages: [
129129
{
130130
content: tx.data.unsigned_tx_hash,
131+
preHash: {
132+
content: tx.data.unsigned_tx_serialized,
133+
hashAlgorithm: "KECCAK256",
134+
},
131135
},
132136
],
133137
},

src/services/noble.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ export class NobleService extends Service {
7171
messages: [
7272
{
7373
content: tx.data.unsigned_tx_hash,
74+
preHash: {
75+
content: tx.data.unsigned_tx_serialized,
76+
hashAlgorithm: "SHA256",
77+
},
7478
},
7579
],
7680
},

src/services/osmo.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ export class OsmoService extends Service {
129129
messages: [
130130
{
131131
content: tx.data.unsigned_tx_hash,
132+
preHash: {
133+
content: tx.data.unsigned_tx_serialized,
134+
hashAlgorithm: "SHA256",
135+
},
132136
},
133137
],
134138
},

src/services/tia.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ export class TiaService extends Service {
128128
messages: [
129129
{
130130
content: tx.data.unsigned_tx_hash,
131+
preHash: {
132+
content: tx.data.unsigned_tx_serialized,
133+
hashAlgorithm: "SHA256",
134+
},
131135
},
132136
],
133137
},

0 commit comments

Comments
 (0)