Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update skale-contracts, add google tag manager #290

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bun.lockb
Binary file not shown.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />

<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-W6PFM6Q6');</script>

<script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=3a800d63-155b-4add-9207-8562e05d29eb">
</script>

Expand All @@ -30,6 +36,8 @@
</head>

<body>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W6PFM6Q6"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<div id="root"></div>
<script type="module" src="/src/Main.tsx"></script>
</body>
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
"@mui/icons-material": "^5.15.14",
"@mui/material": "^5.15.14",
"@skalenetwork/metaport": "2.1.1-develop.2",
"@skalenetwork/skale-contracts-ethers-v6": "1.0.1-develop.2",
"@skalenetwork/skale-contracts-ethers-v6": "1.0.1",
"@transak/transak-sdk": "^3.1.1",
"@types/react-copy-to-clipboard": "^5.0.4",
"@vercel/analytics": "^1.0.2",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^39.1.0",
"ethers-multicall-provider": "^6.2.0",
"prettier": "^3.0.3",
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.1.0",
Expand Down
5 changes: 2 additions & 3 deletions src/core/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
*/

import debug from 'debug'
import { type Contract, type AbstractProvider, type Signer } from 'ethers'
import { MulticallWrapper } from 'ethers-multicall-provider'
import { type Contract, type Signer } from 'ethers'
import { skaleContracts, type Instance } from '@skalenetwork/skale-contracts-ethers-v6'
import { type MetaportCore, type interfaces } from '@skalenetwork/metaport'

Expand All @@ -37,7 +36,7 @@ type PROJECT_TYPE = 'manager' | 'allocator' | 'grants'

export async function initContracts(mpc: MetaportCore): Promise<ISkaleContractsMap> {
log('Initializing contracts')
const provider = MulticallWrapper.wrap(mpc.provider('mainnet') as AbstractProvider)
const provider = mpc.provider('mainnet')
const network = await skaleContracts.getNetworkByProvider(provider)
const managerProject = await network.getProject('skale-manager')
const manager = await getInstance(managerProject, mpc.config.skaleNetwork, 'manager')
Expand Down
Loading