Skip to content

Commit 5d14f75

Browse files
nooxxloicttn
authored andcommitted
update kiln integration config
1 parent 9790090 commit 5d14f75

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const k = new Kiln({
3535
import { Kiln } from "../src/kiln";
3636
const fs = require('fs');
3737

38-
const apiSecretPath = fs.readFileSync(__dirname + '/path_to_fireblocks_secret', 'utf8');
38+
const apiSecret = fs.readFileSync(__dirname + '/path_to_fireblocks_secret', 'utf8');
3939

4040
const k = new Kiln({
4141
testnet: true,
@@ -45,7 +45,7 @@ const k = new Kiln({
4545
name: 'vault1',
4646
provider: 'fireblocks',
4747
fireblocksApiKey: 'fireblocks_api_key',
48-
fireblocksSecretKeyPath: apiSecretPath,
48+
fireblocksSecretKey: apiSecret,
4949
vaultAccountId: 'vault_account_id'
5050
}
5151
],

examples/atom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const f = async () => {
1212
name: 'vault1',
1313
provider: 'fireblocks',
1414
fireblocksApiKey: '53aee35e-04b7-9314-8f28-135a66c8af2c',
15-
fireblocksSecretKeyPath: apiSecretPath,
15+
fireblocksSecretKey: apiSecretPath,
1616
vaultAccountId: '7'
1717
}
1818
],

examples/eth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const f = async () => {
1414
name: 'vault1',
1515
provider: 'fireblocks',
1616
fireblocksApiKey: '53aee35e-04b7-9314-8f28-135a66c8af2c',
17-
fireblocksSecretKeyPath: apiSecretPath,
17+
fireblocksSecretKey: apiSecretPath,
1818
vaultAccountId: '7'
1919
}
2020
],

examples/sol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const f = async () => {
1212
name: 'vault1',
1313
provider: 'fireblocks',
1414
fireblocksApiKey: '53aee35e-04b7-9314-8f28-135a66c8af2c',
15-
fireblocksSecretKeyPath: apiSecretPath,
15+
fireblocksSecretKey: apiSecretPath,
1616
vaultAccountId: '7'
1717
}
1818
],

src/services/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class Service {
1616
// Fireblocks integration
1717
const fireblocksIntegration = integrations?.find(integration => integration.provider === 'fireblocks');
1818
if (fireblocksIntegration) {
19-
this.fbSdk = new FireblocksSDK(fireblocksIntegration.fireblocksSecretKeyPath, fireblocksIntegration.fireblocksApiKey);
19+
this.fbSdk = new FireblocksSDK(fireblocksIntegration.fireblocksSecretKey, fireblocksIntegration.fireblocksApiKey);
2020
this.fbSigner = new FbSigner(this.fbSdk, fireblocksIntegration.vaultAccountId);
2121
}
2222
}

src/types/integrations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type FireblocksIntegration = {
44
name: string;
55
provider: SupportedProviders;
66
fireblocksApiKey: string;
7-
fireblocksSecretKeyPath: string;
7+
fireblocksSecretKey: string;
88
vaultAccountId: string;
99
};
1010

0 commit comments

Comments
 (0)