Skip to content

Commit

Permalink
Merge pull request #76 from The-Poolz/tempMultiSender
Browse files Browse the repository at this point in the history
add tempMultiSender
  • Loading branch information
ashwinarora authored Mar 26, 2024
2 parents c4654df + 432b0e3 commit 9c9fa8c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/contracts/configs/BinanceTest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export const BinanceTestChainConfig: TChainConfig = {
address: "0x2206E8B1639800AF0868e503A1e51276E93B47a7",
nameVersion: "[email protected]"
},
tempMultiSender: {
address: "0x3810fdF19f5736dE064bFFCcB1FAe4dcA62C21A7",
nameVersion: "[email protected]"
},
delayVaultProvider: {
address: "0x9fd743f499d852E3A2cFEAC037e5562126468D28",
nameVersion: "[email protected]"
Expand Down
6 changes: 5 additions & 1 deletion src/contracts/configs/Manta.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,9 @@ export const MantaChainConfig: TChainConfig = {
simpleRefundBuilder: {
address: "0x65f62efEb1A43064081443791d8C10Db0A1FB511",
nameVersion: "[email protected]"
}
},
tempMultiSender: {
address: "0xB1Ecee4191daaD9381DD38A545b31DDcDba7A9A9",
nameVersion: "[email protected]"
},
}
13 changes: 13 additions & 0 deletions src/poolz/ThePoolz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ThePoolz implements IThePoolzInterface {
public simpleRefundBuilderContract: IThePoolzInterface["simpleRefundBuilderContract"]
public multiSenderContract: IThePoolzInterface["multiSenderContract"]
public multiSenderV2Contract: IThePoolzInterface["multiSenderV2Contract"]
public tempMultiSenderContract: IThePoolzInterface["tempMultiSenderContract"]
public delayVaultProviderContract: IThePoolzInterface["delayVaultProviderContract"]
public delayVaultMigratorContract: IThePoolzInterface["delayVaultMigratorContract"]
public tokenNFTConnectorContract: IThePoolzInterface["tokenNFTConnectorContract"]
Expand Down Expand Up @@ -103,6 +104,7 @@ class ThePoolz implements IThePoolzInterface {
simpleRefundBuilder,
multiSender,
multiSenderV2,
tempMultiSender,
delayVaultProvider,
delayVaultMigrator,
tokenNFTConnector
Expand Down Expand Up @@ -310,6 +312,17 @@ class ThePoolz implements IThePoolzInterface {
})
)
}
if (tempMultiSender) {
abifetchPromises.push(
this.fetchContractAbi(tempMultiSender.nameVersion)
.then((abi) => {
this.tempMultiSenderContract = { ...tempMultiSender, contract: new this.web3.eth.Contract(abi as AbiItem[], tempMultiSender.address) }
})
.catch((e) => {
console.error(e)
})
)
}
if (delayVaultProvider) {
abifetchPromises.push(
this.fetchContractAbi(delayVaultProvider.nameVersion)
Expand Down
2 changes: 2 additions & 0 deletions src/types/IThePoolzInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export interface IThePoolzInterface {
simpleRefundBuilderContract?: IContractInfo
multiSenderContract?: IContractInfo
multiSenderV2Contract?: IContractInfo
tempMultiSenderContract?: IContractInfo
delayVaultProviderContract?: IContractInfo
delayVaultMigratorContract?: IContractInfo
tokenNFTConnectorContract?: IContractInfo
Expand Down Expand Up @@ -122,6 +123,7 @@ export interface IChainConfig {
simpleRefundBuilder: Omit<NonNullable<IThePoolzInterface["simpleRefundBuilderContract"]>, "contract">
multiSender: Omit<NonNullable<IThePoolzInterface["multiSenderContract"]>, "contract">
multiSenderV2: Omit<NonNullable<IThePoolzInterface["multiSenderV2Contract"]>, "contract">
tempMultiSender: Omit<NonNullable<IThePoolzInterface["tempMultiSenderContract"]>, "contract">
delayVaultProvider: Omit<NonNullable<IThePoolzInterface["delayVaultProviderContract"]>, "contract">
delayVaultMigrator: Omit<NonNullable<IThePoolzInterface["delayVaultMigratorContract"]>, "contract">
tokenNFTConnector: Omit<NonNullable<IThePoolzInterface["tokenNFTConnectorContract"]>, "contract">
Expand Down

0 comments on commit 9c9fa8c

Please sign in to comment.