Skip to content

Commit

Permalink
remove unused import -- @layerzero packages are all v3.XX.XX
Browse files Browse the repository at this point in the history
Signed-off-by: shankar <[email protected]>
  • Loading branch information
shankars99 committed Dec 19, 2024
1 parent 0dd9406 commit 504c40d
Show file tree
Hide file tree
Showing 19 changed files with 97 additions and 135 deletions.
4 changes: 2 additions & 2 deletions examples/oft-aptos/aptos.layerzero.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { ExecutorOptionType } from '@layerzerolabs/lz-v2-utilities-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'
import { ExecutorOptionType } from '@layerzerolabs/lz-v2-utilities'

import { bscConfig } from './evmOAppConfig'

Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/evmOAppConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ExecutorOptionType } from '@layerzerolabs/lz-v2-utilities-v3'
import { ExecutorOptionType } from '@layerzerolabs/lz-v2-utilities'

import type { OAppEdgeConfig, OAppNodeConfig } from '@layerzerolabs/toolbox-hardhat'

Expand Down
2 changes: 0 additions & 2 deletions examples/oft-aptos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@
"@layerzerolabs/eslint-config-next": "~2.3.39",
"@layerzerolabs/lz-config-types": "^3.0.15",
"@layerzerolabs/lz-definitions": "^3.0.21",
"@layerzerolabs/lz-definitions-v3": "npm:@layerzerolabs/lz-definitions@^3.0.19",
"@layerzerolabs/lz-evm-messagelib-v2": "^3.0.12",
"@layerzerolabs/lz-evm-protocol-v2": "^3.0.12",
"@layerzerolabs/lz-evm-sdk-v2": "^3.0.27",
"@layerzerolabs/lz-evm-v1-0.7": "^3.0.12",
"@layerzerolabs/lz-movevm-sdk-v2": "^3.0.15",
"@layerzerolabs/lz-serdes": "^3.0.19",
"@layerzerolabs/lz-v2-utilities": "^3.0.12",
"@layerzerolabs/lz-v2-utilities-v3": "npm:@layerzerolabs/lz-v2-utilities@^3.0.19",
"@layerzerolabs/move-definitions": "^3.0.15",
"@layerzerolabs/oapp-evm": "^0.3.0",
"@layerzerolabs/oft-evm": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/sdk/endpoint.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Aptos } from '@aptos-labs/ts-sdk'

import { EndpointId, getNetworkForChainId } from '@layerzerolabs/lz-definitions-v3'
import { EndpointId, getNetworkForChainId } from '@layerzerolabs/lz-definitions'

interface LibraryTimeoutResponse {
expiry: bigint
Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/sdk/msgLib.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Aptos } from '@aptos-labs/ts-sdk'

import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'

interface MoveVectorResponse {
vec: UlnConfig[]
Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/sdk/oapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SimpleTransaction,
} from '@aptos-labs/ts-sdk'

import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'

import { hexAddrToAptosBytesAddr } from './utils'

Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/sdk/oft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SimpleTransaction,
} from '@aptos-labs/ts-sdk'

import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'

import { hexAddrToAptosBytesAddr } from './utils'

Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/tasks/evm/wire-evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const privateKey = process.env.PRIVATE_KEY
*/
async function main() {
const { network } = await parseYaml()
const EID_APTOS = getEidFromAptosNetwork(network)
const EID_APTOS = getEidFromAptosNetwork('aptos', network)

// @todo grow connectionsToWire by taking in non-evm connections instead of only APTOS.
const connectionsToWire = getConfigConnections('to', EID_APTOS)
Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/tasks/evm/wire/setEnforcedOptions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Contract } from 'ethers'

import { ExecutorOptionType, Options } from '@layerzerolabs/lz-v2-utilities-v3'
import { ExecutorOptionType, Options } from '@layerzerolabs/lz-v2-utilities'

import { diffPrinter } from '../../shared/utils'

Expand Down
4 changes: 2 additions & 2 deletions examples/oft-aptos/tasks/move/sendFromMoveVM.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Aptos, AptosConfig } from '@aptos-labs/ts-sdk'

import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { Options } from '@layerzerolabs/lz-v2-utilities-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'
import { Options } from '@layerzerolabs/lz-v2-utilities'

import { OFT } from '../../sdk/oft'
import { hexAddrToAptosBytesAddr } from '../../sdk/utils'
Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/tasks/move/utils/aptosNetworkParser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Network as AptosNetworkStage } from '@aptos-labs/ts-sdk'

import { EndpointId, Stage } from '@layerzerolabs/lz-definitions-v3'
import { EndpointId, Stage } from '@layerzerolabs/lz-definitions'

import { loadAptosYamlConfig } from './config'

Expand Down
4 changes: 2 additions & 2 deletions examples/oft-aptos/tasks/move/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'
import { Deserializer, Serializer } from '@layerzerolabs/lz-serdes'
import { addressToBytes32, trim0x } from '@layerzerolabs/lz-v2-utilities-v3'
import { addressToBytes32, trim0x } from '@layerzerolabs/lz-v2-utilities'

/**
* Interface representing the limits.
Expand Down
4 changes: 2 additions & 2 deletions examples/oft-aptos/tasks/move/utils/moveVMOftConfigOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as path from 'path'

import { InputGenerateTransactionPayloadData } from '@aptos-labs/ts-sdk'

import { EndpointId, Stage, endpointIdToStage, getNetworkForChainId } from '@layerzerolabs/lz-definitions-v3'
import { ExecutorOptionType, Options } from '@layerzerolabs/lz-v2-utilities-v3'
import { EndpointId, Stage, endpointIdToStage, getNetworkForChainId } from '@layerzerolabs/lz-definitions'
import { ExecutorOptionType, Options } from '@layerzerolabs/lz-v2-utilities'

import { Endpoint } from '../../../sdk/endpoint'
import { MsgLib } from '../../../sdk/msgLib'
Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/tasks/move/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as readline from 'readline'

import { Aptos } from '@aptos-labs/ts-sdk'

import { EndpointId, Stage } from '@layerzerolabs/lz-definitions-v3'
import { EndpointId, Stage } from '@layerzerolabs/lz-definitions'

import lzConfigAptos from '../../../aptos.layerzero.config'
import { OFT } from '../../../sdk/oft'
Expand Down
4 changes: 2 additions & 2 deletions examples/oft-aptos/test/jest/aptosOftConfigOps.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Aptos, AptosConfig, Network } from '@aptos-labs/ts-sdk'
import { expect } from 'chai'

import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { ExecutorOptionType } from '@layerzerolabs/lz-v2-utilities-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'
import { ExecutorOptionType } from '@layerzerolabs/lz-v2-utilities'

import { Endpoint } from '../../sdk/endpoint'
import { OFT } from '../../sdk/oft'
Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/test/jest/endpoint.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Aptos, AptosConfig, Network } from '@aptos-labs/ts-sdk'
import { expect } from 'chai'

import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'

import { Endpoint } from '../../sdk/endpoint'
const ENDPOINT_ADDRESS = '0xa53352d6eb261173560111b83eb898611a8e87f7dabada415159f749fbd185e4'
Expand Down
2 changes: 1 addition & 1 deletion examples/oft-aptos/test/jest/msgLib.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Aptos, AptosConfig, Network } from '@aptos-labs/ts-sdk'
import { expect } from 'chai'

import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'

import { MsgLib } from '../../sdk/msgLib'

Expand Down
4 changes: 2 additions & 2 deletions examples/oft-aptos/test/tests/aptosOftConfigOps.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Aptos, AptosConfig, Network } from '@aptos-labs/ts-sdk'

import { EndpointId } from '@layerzerolabs/lz-definitions-v3'
import { ExecutorOptionType } from '@layerzerolabs/lz-v2-utilities-v3'
import { EndpointId } from '@layerzerolabs/lz-definitions'
import { ExecutorOptionType } from '@layerzerolabs/lz-v2-utilities'

import { Endpoint } from '../../sdk/endpoint'
import { OFT } from '../../sdk/oft'
Expand Down
Loading

0 comments on commit 504c40d

Please sign in to comment.