Skip to content

Commit

Permalink
chore: PRO-2373 modular sdk examples refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
kanthgithub committed Jul 25, 2024
1 parent e251d7e commit a4c271f
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 39 deletions.
3 changes: 0 additions & 3 deletions examples/basics/add-guardians.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ async function main() {
bundlerApiKey
);// Testnets dont need apiKey on bundlerProvider


console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down
3 changes: 0 additions & 3 deletions examples/basics/callGasLimit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ async function main() {
bundlerApiKey
);// Testnets dont need apiKey on bundlerProvider


console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet...
const address: string = await modularSdk.getCounterFactualAddress();
console.log('\x1b[33m%s\x1b[0m', `EtherspotWallet address: ${address}`);
Expand Down
3 changes: 0 additions & 3 deletions examples/basics/concurrent-userops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ async function main() {
bundlerApiKey
);// Testnets dont need apiKey on bundlerProvider


console.log('address: ', modularSdk.getEOAAddress());

const publicClient = getPublicClient({
chainId: Number(process.env.CHAIN_ID),
transport: http(bundlerApiKey)
Expand Down
2 changes: 0 additions & 2 deletions examples/basics/transfer-erc20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ async function main() {
bundlerApiKey
);// Testnets dont need apiKey on bundlerProvider

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet...
const address: string = await modularSdk.getCounterFactualAddress();
console.log('\x1b[33m%s\x1b[0m', `EtherspotWallet address: ${address}`);
Expand Down
2 changes: 0 additions & 2 deletions examples/basics/transfer-funds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ async function main() {
bundlerApiKey
);// Testnets dont need apiKey on bundlerProvider

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet...
const address: string = await modularSdk.getCounterFactualAddress();
console.log('\x1b[33m%s\x1b[0m', `EtherspotWallet address: ${address}`);
Expand Down
2 changes: 0 additions & 2 deletions examples/basics/transfer-nft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ async function main() {
bundlerApiKey
);// Testnets dont need apiKey on bundlerProvider

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet...
const address: string = await modularSdk.getCounterFactualAddress();
console.log('\x1b[33m%s\x1b[0m', `EtherspotWallet address: ${address}`);
Expand Down
2 changes: 0 additions & 2 deletions examples/helpers/sdk-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export const generateModularSDKInstance = (privateKey: string, chainId: number,
index: index
})

console.log('address: ', modularSdk.getEOAAddress());

return modularSdk;
}

Expand Down
2 changes: 0 additions & 2 deletions examples/modules/generate-module-uninstall-deinitdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ async function main() {
bundlerApiKey
);// Testnets dont need apiKey on bundlerProvider

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down
2 changes: 0 additions & 2 deletions examples/modules/get-previous-address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ async function main() {
bundlerProvider: new EtherspotBundler(Number(process.env.CHAIN_ID), bundlerApiKey)
})

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down
3 changes: 0 additions & 3 deletions examples/modules/install-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ async function main() {
bundlerProvider: new EtherspotBundler(Number(process.env.CHAIN_ID), bundlerApiKey)
})

const eoaAddress = await modularSdk.getEOAAddress();
console.log('\x1b[33m%s\x1b[0m', `EOA Address: ${eoaAddress}`);

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down
2 changes: 0 additions & 2 deletions examples/modules/is-module-installed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ async function main() {
bundlerApiKey
);// Testnets dont need apiKey on bundlerProvider

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down
2 changes: 0 additions & 2 deletions examples/modules/list-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ async function main() {
bundlerProvider: new EtherspotBundler(Number(process.env.CHAIN_ID), bundlerApiKey)
})

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down
2 changes: 0 additions & 2 deletions examples/modules/uninstall-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ async function main() {
bundlerProvider: new EtherspotBundler(Number(process.env.CHAIN_ID), bundlerApiKey)
})

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down
3 changes: 0 additions & 3 deletions examples/paymaster/paymaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ async function main() {
bundlerApiKey
);// Testnets dont need apiKey on bundlerProvider


console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet...
const address: string = await modularSdk.getCounterFactualAddress();
console.log('\x1b[33m%s\x1b[0m', `EtherspotWallet address: ${address}`);
Expand Down
2 changes: 0 additions & 2 deletions examples/sessionkeys/disable-sessionkey-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ async function main() {
bundlerProvider: new EtherspotBundler(Number(process.env.CHAIN_ID), bundlerApiKey)
})

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down
2 changes: 0 additions & 2 deletions examples/sessionkeys/enable-sessionkey-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ async function main() {
bundlerProvider: new EtherspotBundler(Number(process.env.CHAIN_ID), bundlerApiKey)
})

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down
2 changes: 0 additions & 2 deletions examples/sessionkeys/rotate-sessionkey-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ async function main() {
bundlerProvider: new EtherspotBundler(Number(process.env.CHAIN_ID), bundlerApiKey)
})

console.log('address: ', modularSdk.getEOAAddress());

// get address of EtherspotWallet
const address: string = await modularSdk.getCounterFactualAddress();

Expand Down

0 comments on commit a4c271f

Please sign in to comment.