diff --git a/package.json b/package.json index 603790094..be036d37f 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "@vueuse/head": "^2.0.0", "autolinker": "^4.0.0", "bluebird": "^3.7.2", + "evm-proxy-detection": "^1.2.0", "graphql": "16.6.0", "graphql-tag": "^2.12.6", "js-sha256": "^0.10.1", diff --git a/src/assets/icons/tenderly.svg b/src/assets/icons/tenderly.svg new file mode 100644 index 000000000..697394e0e --- /dev/null +++ b/src/assets/icons/tenderly.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + diff --git a/src/plugins/oSnap/Create.vue b/src/plugins/oSnap/Create.vue index 7bbe3e9ff..df9e4aa2a 100644 --- a/src/plugins/oSnap/Create.vue +++ b/src/plugins/oSnap/Create.vue @@ -14,12 +14,10 @@ import { Transaction } from './types'; import { - allTransactionsValid, getGnosisSafeBalances, getGnosisSafeCollectibles, getIsOsnapEnabled, - getModuleAddressForTreasury, - validateOsnapTransaction + getModuleAddressForTreasury } from './utils'; import OsnapMarketingWidget from './components/OsnapMarketingWidget.vue'; @@ -286,6 +284,7 @@ onMounted(async () => { :collectables="collectables" :network="newPluginData.safe.network" :transactions="newPluginData.safe.transactions" + :safe="newPluginData.safe" @add-transaction="addTransaction" @remove-transaction="removeTransaction" @update-transaction="updateTransaction" diff --git a/src/plugins/oSnap/Proposal.vue b/src/plugins/oSnap/Proposal.vue index 4a2261290..ad5fc57fa 100644 --- a/src/plugins/oSnap/Proposal.vue +++ b/src/plugins/oSnap/Proposal.vue @@ -8,6 +8,7 @@ import ReadOnly from './components/Input/ReadOnly.vue'; import SafeLinkWithAvatar from './components/SafeLinkWithAvatar.vue'; import { GnosisSafe, Transaction } from './types'; import OsnapMarketingWidget from './components/OsnapMarketingWidget.vue'; +import TenderlySimulation from './components/TransactionBuilder/TenderlySimulation.vue'; const keyOrder = [ 'to', @@ -59,9 +60,11 @@ function enrichTransactionForDisplay(transaction: Transaction) { ...commonProperties, type: 'Contract interaction', 'method name': method.name, - ...Object.fromEntries(method.inputs.map((input,i)=>{ - return [`${input.name} (param ${i+1}): `,parameters[i]] - })) + ...Object.fromEntries( + method.inputs.map((input, i) => { + return [`${input.name} (param ${i + 1}): `, parameters[i]]; + }) + ) }; } if (transaction.type === 'transferFunds') { @@ -97,7 +100,7 @@ function enrichTransactionForDisplay(transaction: Transaction) {