Skip to content

Commit 61ef701

Browse files
authored
Sending direct deposit transactions to the pool (#5)
1 parent 3c3d163 commit 61ef701

File tree

13 files changed

+2835
-25
lines changed

13 files changed

+2835
-25
lines changed

lib/networks/client.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ export declare abstract class Client {
2424
approve(tokenAddress: string, spender: string, amount: string): Promise<string>;
2525
increaseAllowance(tokenAddress: string, spender: string, additionalAmount: string): Promise<string>;
2626
allowance(tokenAddress: string, spender: string): Promise<bigint>;
27+
getDirectDepositContract(poolAddress: string): Promise<string>;
28+
directDeposit(poolAddress: string, amount: string, zkAddress: string): Promise<string>;
2729
getTransactionUrl(hash: string): string;
2830
/**
2931
*

lib/networks/client.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/networks/client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/networks/evm/client.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export declare class EthereumClient extends Client {
88
private web3;
99
private token;
1010
private minter;
11+
private pool;
12+
private dd;
13+
private ddContractAddresses;
14+
gasMultiplier: number;
1115
constructor(provider: provider, config?: Config);
1216
getChainId(): Promise<number>;
1317
getAddress(): Promise<string>;
@@ -32,6 +36,8 @@ export declare class EthereumClient extends Client {
3236
approve(tokenAddress: string, spender: string, amount: string): Promise<string>;
3337
increaseAllowance(tokenAddress: string, spender: string, additionalAmount: string): Promise<string>;
3438
allowance(tokenAddress: string, spender: string): Promise<bigint>;
39+
getDirectDepositContract(poolAddress: string): Promise<string>;
40+
directDeposit(poolAddress: string, amount: string, zkAddress: string): Promise<string>;
3541
sign(data: string): Promise<string>;
3642
signTypedData(data: object): Promise<string>;
3743
}

lib/networks/evm/client.js

Lines changed: 52 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)