-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
449 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...-kit/src/adapters/ethers/contracts/SimulateTxAccessor/SimulateTxAccessorEthersContract.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { | ||
Simulate_tx_accessor as SimulateTxAccessor_V1_3_0, | ||
Simulate_tx_accessorInterface as SimulateTxAccessorInterface | ||
} from '@safe-global/protocol-kit/typechain/src/ethers-v5/v1.3.0/Simulate_tx_accessor' | ||
import { Simulate_tx_accessor as SimulateTxAccessor_V1_4_1 } from '@safe-global/protocol-kit/typechain/src/ethers-v5/v1.4.1/Simulate_tx_accessor' | ||
import { SimulateTxAccessorContract } from '@safe-global/safe-core-sdk-types' | ||
|
||
abstract class SimulateTxAccessorEthersContract implements SimulateTxAccessorContract { | ||
constructor(public contract: SimulateTxAccessor_V1_4_1 | SimulateTxAccessor_V1_3_0) {} | ||
|
||
getAddress(): string { | ||
return this.contract.address | ||
} | ||
|
||
encode: SimulateTxAccessorInterface['encodeFunctionData'] = ( | ||
methodName: any, | ||
params: any | ||
): string => { | ||
return this.contract.interface.encodeFunctionData(methodName, params) | ||
} | ||
} | ||
|
||
export default SimulateTxAccessorEthersContract |
10 changes: 10 additions & 0 deletions
10
...rs/ethers/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_V1_3_0_Ethers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Simulate_tx_accessor as SimulateTxAccessor } from '@safe-global/protocol-kit/typechain/src/ethers-v5/v1.3.0/Simulate_tx_accessor' | ||
import SimulateTxAccessorEthersContract from '../SimulateTxAccessorEthersContract' | ||
|
||
class SimulateTxAccessorContract_V1_3_0_Ethers extends SimulateTxAccessorEthersContract { | ||
constructor(public contract: SimulateTxAccessor) { | ||
super(contract) | ||
} | ||
} | ||
|
||
export default SimulateTxAccessorContract_V1_3_0_Ethers |
10 changes: 10 additions & 0 deletions
10
...rs/ethers/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_V1_4_1_Ethers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Simulate_tx_accessor as SimulateTxAccessor } from '@safe-global/protocol-kit/typechain/src/ethers-v5/v1.4.1/Simulate_tx_accessor' | ||
import SimulateTxAccessorEthersContract from '../SimulateTxAccessorEthersContract' | ||
|
||
class SimulateTxAccessorContract_V1_4_1_Ethers extends SimulateTxAccessorEthersContract { | ||
constructor(public contract: SimulateTxAccessor) { | ||
super(contract) | ||
} | ||
} | ||
|
||
export default SimulateTxAccessorContract_V1_4_1_Ethers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.