Skip to content

Commit

Permalink
fix(DEV-11410): remove l16 network (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
doubleppereira authored Sep 9, 2024
1 parent 6423c2c commit f43732e
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 56 deletions.
2 changes: 1 addition & 1 deletion src/components/endpoints/CustomRelayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const web3 = useWeb3Connection()
const name = ref('My Relayer')
const apiUrl = ref('https://service-relayer.staging.lukso.dev/api')
const chainId = ref('2828')
const chainId = ref('4201')
const chainIds = ref<number[]>([+chainId.value])
const showLabel = ref(false)
Expand Down
18 changes: 0 additions & 18 deletions src/components/endpoints/GetNetworkId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,6 @@ const networks = [
id: 'mainnet',
chainId: '0x2a',
},
{
name: 'L16 Testnet',
http: {
url: 'https://rpc.l16.lukso.network',
},
ws: {
url: 'wss://ws.rpc.l16.lukso.network',
},
relayer: {
url: 'https://service-relayer.staging.lukso.dev/api',
},
explorer: {
url: 'https://explorer.execution.l16.lukso.network/tx/{transactionId}/internal-transactions',
},
isCustom: false,
id: 'l16',
chainId: '0xb0c',
},
{
name: 'Base Sepolia',
http: {
Expand Down
6 changes: 3 additions & 3 deletions src/components/endpoints/__tests__/CustomRelayer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { render, fireEvent, screen } from '@testing-library/vue'

const data = {
name: 'my test relayer',
apiUrl: 'https://relayer.l16.staging.lukso.dev/api/v3/',
chainIds: [2828],
apiUrl: 'https://relayer.testnet.lukso.network/v1/relayer',
chainIds: [4201],
}

const mockSendRequest = jest.fn()
Expand All @@ -23,7 +23,7 @@ test('can add relayer', async () => {
await fireEvent.update(screen.getByTestId('relayer-url'), data.apiUrl)
await fireEvent.click(screen.getByTestId('add-relayer'))

expect(screen.getByTestId('chain-id-list')).toHaveTextContent(/2828/)
expect(screen.getByTestId('chain-id-list')).toHaveTextContent(/4201/)

expect(mockSendRequest).toHaveBeenCalledWith({
method: 'up_addTransactionRelayer',
Expand Down
1 change: 0 additions & 1 deletion src/compositions/useWalletConnectV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const setupWCV2Provider = async () => {
},
rpcMap: {
42: 'https://rpc.mainnet.lukso.network',
2828: 'https://rpc.l16.lukso.network',
4201: 'https://rpc.testnet.lukso.network',
},
showQrModal: true,
Expand Down
32 changes: 0 additions & 32 deletions src/helpers/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,6 @@ const DEFAULT_NETWORK: NetworkType = 'testnet'
const SELECTED_NETWORK_KEY = 'selected-network'

export const NETWORKS: { [K in NetworkType]: NetworkInfo } = {
l16: {
name: 'l16',
rpc: {
url: 'https://rpc.l16.lukso.network',
},
cache: {
url: 'https://erc725cache.l16.lukso.network/graphql',
},
ipfs: {
url: 'https://api.universalprofile.cloud/ipfs',
},
blockscout: {
url: 'https://explorer.execution.l16.lukso.network',
},
chainId: 2828,

sampleEoA: '0x311611C9A46a192C14Ea993159a0498EDE5578aC',
sampleUP: '0x8A6735585B824401CaB08D7c92FcdFB4b143256E',
sampleSC: '0xcAC51571007DaAB53f26C2387b3B16420491dE18',
errorContract: '0xFDb952E4dC30A1C55F76cdC2Ca14c13cFb69E62c',
// ERC20
erc20TokenWithEip165: '0xF5443372766a48faF098244c8C769c5AEa02f321',
erc20TokenWithoutEip165: '0xB29c50a9F3D90FA3aDF394f2960BD6D8e0Ff5E9D',
// ERC777
erc777TokenWithEip165: '0xC719f454C8F9a0C7eEC4203B21766B88d8a5B073',
erc777TokenWithoutEip165: '0xD7549C70A6122cA01043831f0f0c65152C4877d6',
// LSP7
lsp7TokenDivisible: '0x314E7a56B08AF8E729612930dBAd70BB5A3575D9',
lsp7TokenNonDivisible: '0xF5d8FD6599Cb1971b8EEba218FFE31da34a257a9',
// ERC721
erc721TokenWithEip165: '0x57b8e4f3C96180088652dc361473bB91266bb080',
},
testnet: {
name: 'testnet',
rpc: {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/network.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type NetworkType = 'l16' | 'testnet'
export type NetworkType = 'testnet'

export type NetworkInfo = {
name: string
Expand Down

0 comments on commit f43732e

Please sign in to comment.