Skip to content

Commit

Permalink
prettify ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Sep 7, 2023
1 parent 11331f9 commit dcbf133
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/deployer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function main() {
const turnkeySigner = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID!,
process.env.PRIVATE_KEY_ID!
);

// Connect it with a Provider (https://docs.ethers.org/v5/api/providers/)
Expand Down
2 changes: 1 addition & 1 deletion examples/rebalancer/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function getTurnkeySigner(
const turnkeySigner = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
privateKeyId,
privateKeyId
);

return turnkeySigner.connect(provider);
Expand Down
4 changes: 2 additions & 2 deletions examples/sweeper/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function getProvider(
// getTurnkeySigner returns a TurnkeySigner connected to the passed-in Provider
// (https://docs.ethers.org/v5/api/providers/)
export function getTurnkeySigner(
provider: ethers.providers.Provider,
provider: ethers.providers.Provider
): TurnkeySigner {
const turnkeyClient = new TurnkeyClient(
{
Expand All @@ -49,7 +49,7 @@ export function getTurnkeySigner(
const turnkeySigner = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID!,
process.env.PRIVATE_KEY_ID!
);

return turnkeySigner.connect(provider);
Expand Down
2 changes: 1 addition & 1 deletion examples/trading-runner/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function getTurnkeySigner(
const turnkeySigner = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
privateKeyId,
privateKeyId
);

return turnkeySigner.connect(provider);
Expand Down
2 changes: 1 addition & 1 deletion examples/with-ethers/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function main() {
const turnkeySigner = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID!,
process.env.PRIVATE_KEY_ID!
);

// Bring your own provider (such as Alchemy or Infura: https://docs.ethers.org/v5/api/providers/)
Expand Down
2 changes: 1 addition & 1 deletion examples/with-ethers/src/legacySepolia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function main() {
const turnkeySigner = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID!,
process.env.PRIVATE_KEY_ID!
);

// Bring your own provider (such as Alchemy or Infura: https://docs.ethers.org/v5/api/providers/)
Expand Down
6 changes: 3 additions & 3 deletions examples/with-gnosis/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ async function main() {
const turnkeySigner1 = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID_1!,
process.env.PRIVATE_KEY_ID_1!
);

const turnkeySigner2 = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID_2!,
process.env.PRIVATE_KEY_ID_2!
);

const turnkeySigner3 = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID_3!,
process.env.PRIVATE_KEY_ID_3!
);

// Bring your own provider (for the sake of this demo, we recommend using Sepolia + Infura)
Expand Down
2 changes: 1 addition & 1 deletion examples/with-nonce-manager/src/managedOptimistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async function main() {
const turnkeySigner = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID!,
process.env.PRIVATE_KEY_ID!
);

// Bring your own provider (such as Alchemy or Infura: https://docs.ethers.org/v5/api/providers/)
Expand Down
2 changes: 1 addition & 1 deletion examples/with-nonce-manager/src/simpleSequential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function main() {
const turnkeySigner = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID!,
process.env.PRIVATE_KEY_ID!
);

// Bring your own provider (such as Alchemy or Infura: https://docs.ethers.org/v5/api/providers/)
Expand Down
4 changes: 2 additions & 2 deletions examples/with-uniswap/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function getProvider(
// getTurnkeySigner returns a TurnkeySigner connected to the passed-in Provider
// (https://docs.ethers.org/v5/api/providers/)
export function getTurnkeySigner(
provider: ethers.providers.Provider,
provider: ethers.providers.Provider
): TurnkeySigner {
const turnkeyClient = new TurnkeyClient(
{
Expand All @@ -49,7 +49,7 @@ export function getTurnkeySigner(
const turnkeySigner = new TurnkeySigner(
turnkeyClient,
process.env.ORGANIZATION_ID!,
process.env.PRIVATE_KEY_ID!,
process.env.PRIVATE_KEY_ID!
);

return turnkeySigner.connect(provider);
Expand Down

0 comments on commit dcbf133

Please sign in to comment.