Skip to content

Commit

Permalink
deprecate old multiSender
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinarora committed May 9, 2024
1 parent 6538bb0 commit 6c38738
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 44 deletions.
4 changes: 0 additions & 4 deletions src/contracts/configs/ArbitrumOne.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ export const ArbitrumOneChainConfig: TChainConfig = {
address: "0x7Ff9315f538dF7eC76Ec4815249Dd30519726460",
nameVersion: "[email protected]"
},
multiSender: {
address: "0x2dd5b5e374b2d32152507100a42ca15f7707f504",
nameVersion: "[email protected]"
},
multiSenderV2: {
address: "0x25ea5cf98a46dbabefd042b6ceebc501b659be78",
nameVersion: "[email protected]"
Expand Down
4 changes: 0 additions & 4 deletions src/contracts/configs/BinanceMain.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export const BinanceMainChainConfig: TChainConfig = {
poolzBackWithdraw: "0x7Ff9315f538dF7eC76Ec4815249Dd30519726460",
poolzTokenAddress: "0xbAeA9aBA1454DF334943951d51116aE342eAB255",
delayVault: { address: "0x5eb57B1210338b13E3D5572d5e1670285Aa71702", nameVersion: "[email protected]" },
multiSender: {
address: "0x0759EdEd403B704dc8e76b4c73026782b58E0ED7",
nameVersion: "[email protected]"
},
multiSenderV2: {
address: "0x114DAdDE8112A5c43aaBc6373473c282e14948Fa",
nameVersion: "[email protected]"
Expand Down
4 changes: 0 additions & 4 deletions src/contracts/configs/BinanceTest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ export const BinanceTestChainConfig: TChainConfig = {
address: "0x1C371DE722Bd7eCFA921AA9e3AD500c8fd9A64FC",
nameVersion: "[email protected]"
},
multiSender: {
address: "0xCEC38FA35B3ea4cB56019C4e00d33F5C2307E7eB",
nameVersion: "[email protected]"
},
multiSenderV2: {
address: "0xaF2F6E827728a9e0288d69b0ea97Bd188DfBb3b1",
nameVersion: "[email protected]"
Expand Down
4 changes: 0 additions & 4 deletions src/contracts/configs/Eth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export const EthMainChainConfig: TChainConfig = {
address: "0x285B4866257eF51FfBDD239c10dE5f9493413d8f",
nameVersion: "[email protected]"
},
multiSender: {
address: "0xf283bee36abb08c2702d1d6d2fc2c4c6a8cb5ed1",
nameVersion: "[email protected]"
},
multiSenderV2: {
address: "0x658bcdfe51795ba43e9fd1ae9e39ddfbb1e70c5f",
nameVersion: "[email protected]"
Expand Down
4 changes: 0 additions & 4 deletions src/contracts/configs/MaticMain.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ export const MaticMainChainConfig: TChainConfig = {
address: "0x9D13B213852669077131f8A24A676f27ab0C2931",
nameVersion: "[email protected]"
},
multiSender: {
address: "0x5a3892bab5c7f38c96e45f4f378056574a32df4b",
nameVersion: "[email protected]"
},
multiSenderV2: {
address: "0x9c8f78e0aeab8190c9d1df7bed0b26c1edcb8de6",
nameVersion: "[email protected]"
Expand Down
4 changes: 0 additions & 4 deletions src/contracts/configs/Neon.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ export const NeonChainConfig: TChainConfig = {
address: "0x7ff9315f538df7ec76ec4815249dd30519726460",
nameVersion: "[email protected]"
},
multiSender: {
address: "0x7521ff2baca97397c8936e35dac225f6bc1070cf",
nameVersion: "[email protected]"
},
whiteListAddress: "0x9c8f78e0aeab8190c9d1df7bed0b26c1edcb8de6",
}
4 changes: 0 additions & 4 deletions src/contracts/configs/TelosMain.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import type { TChainConfig } from "../../types/IThePoolzInterface"

export const TelosMainChainConfig: TChainConfig = {
multiSender: {
address: "0x7Ff9315f538dF7eC76Ec4815249Dd30519726460",
nameVersion: "[email protected]"
},
whiteListAddress: "0xb16BBDf683fFd6D92290F7610bb10f22f9c71e9e",
lockDealNFT: {
address: "0x6d77B5147CDE6Fa287c1266A33e09a09651D36d0",
Expand Down
13 changes: 0 additions & 13 deletions src/poolz/ThePoolz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class ThePoolz implements IThePoolzInterface {
public refundProviderContract: IThePoolzInterface["refundProviderContract"]
public simpleBuilderContract: IThePoolzInterface["simpleBuilderContract"]
public simpleRefundBuilderContract: IThePoolzInterface["simpleRefundBuilderContract"]
public multiSenderContract: IThePoolzInterface["multiSenderContract"]
public multiSenderV2Contract: IThePoolzInterface["multiSenderV2Contract"]
public delayVaultProviderContract: IThePoolzInterface["delayVaultProviderContract"]
public delayVaultMigratorContract: IThePoolzInterface["delayVaultMigratorContract"]
Expand Down Expand Up @@ -104,7 +103,6 @@ class ThePoolz implements IThePoolzInterface {
refundProvider,
simpleBuilder,
simpleRefundBuilder,
multiSender,
multiSenderV2,
delayVaultProvider,
delayVaultMigrator,
Expand Down Expand Up @@ -291,17 +289,6 @@ class ThePoolz implements IThePoolzInterface {
})
)
}
if (multiSender) {
abifetchPromises.push(
this.fetchContractAbi(multiSender.nameVersion)
.then((abi) => {
this.multiSenderContract = { ...multiSender, contract: new this.web3.eth.Contract(abi as AbiItem[], multiSender.address) }
})
.catch((e) => {
console.error(e)
})
)
}
if (multiSenderV2) {
abifetchPromises.push(
this.fetchContractAbi(multiSenderV2.nameVersion)
Expand Down
4 changes: 1 addition & 3 deletions src/types/IThePoolzInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export type AcceptableContractNames =
| "RefundProvider"
| "SimpleBuilder"
| "SimpleRefundBuilder"
| "MultiSender"
| "DelayVaultProvider"
| "DelayVaultMigrator"
| "TokenNFTConnector"
Expand Down Expand Up @@ -104,7 +103,6 @@ export interface IThePoolzInterface {
refundProviderContract?: IContractInfo
simpleBuilderContract?: IContractInfo
simpleRefundBuilderContract?: IContractInfo
multiSenderContract?: IContractInfo
multiSenderV2Contract?: IContractInfo
delayVaultProviderContract?: IContractInfo
delayVaultMigratorContract?: IContractInfo
Expand Down Expand Up @@ -153,7 +151,7 @@ export interface IChainConfig {
refundProvider: Omit<NonNullable<IThePoolzInterface["refundProviderContract"]>, "contract">
simpleBuilder: Omit<NonNullable<IThePoolzInterface["simpleBuilderContract"]>, "contract">
simpleRefundBuilder: Omit<NonNullable<IThePoolzInterface["simpleRefundBuilderContract"]>, "contract">
multiSender: Omit<NonNullable<IThePoolzInterface["multiSenderContract"]>, "contract">

multiSenderV2: Omit<NonNullable<IThePoolzInterface["multiSenderV2Contract"]>, "contract">
delayVaultProvider: Omit<NonNullable<IThePoolzInterface["delayVaultProviderContract"]>, "contract">
delayVaultMigrator: Omit<NonNullable<IThePoolzInterface["delayVaultMigratorContract"]>, "contract">
Expand Down

0 comments on commit 6c38738

Please sign in to comment.