@wormhole-foundation/sdk-evm-tokenbridge
Advanced tools
Comparing version 0.5.0-beta.10 to 0.5.0-beta.11
@@ -5,3 +5,3 @@ import type { AccountAddress, AutomaticTokenBridge, ChainAddress, ChainsConfig, Contracts, NativeAddress, Network, TokenAddress } from '@wormhole-foundation/sdk-connect'; | ||
import type { Provider } from 'ethers'; | ||
import { ethers_contracts } from '.'; | ||
import { ethers_contracts } from './index.js'; | ||
import '@wormhole-foundation/sdk-evm-core'; | ||
@@ -8,0 +8,0 @@ export declare class EvmAutomaticTokenBridge<N extends Network, C extends EvmChains> implements AutomaticTokenBridge<N, C> { |
@@ -6,3 +6,3 @@ "use strict"; | ||
const sdk_evm_1 = require("@wormhole-foundation/sdk-evm"); | ||
const _1 = require("."); | ||
const index_js_1 = require("./index.js"); | ||
require("@wormhole-foundation/sdk-evm-core"); | ||
@@ -28,3 +28,3 @@ class EvmAutomaticTokenBridge { | ||
throw new Error(`Wormhole Token Bridge contract for domain ${chain} not found`); | ||
this.tokenBridge = _1.ethers_contracts.Bridge__factory.connect(tokenBridgeAddress, provider); | ||
this.tokenBridge = index_js_1.ethers_contracts.Bridge__factory.connect(tokenBridgeAddress, provider); | ||
const relayerAddress = this.contracts.tokenBridgeRelayer; | ||
@@ -34,3 +34,3 @@ if (!relayerAddress) | ||
this.tokenBridgeRelayer = | ||
_1.ethers_contracts.TokenBridgeRelayer__factory.connect(relayerAddress, provider); | ||
index_js_1.ethers_contracts.TokenBridgeRelayer__factory.connect(relayerAddress, provider); | ||
} | ||
@@ -37,0 +37,0 @@ async *redeem(sender, vaa) { |
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from 'ethers'; | ||
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from './common'; | ||
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from './common.js'; | ||
export declare namespace BridgeStructs { | ||
@@ -4,0 +4,0 @@ type TransferStruct = { |
@@ -1,3 +0,3 @@ | ||
export * from './Bridge__factory'; | ||
export * from './TokenBridgeRelayer__factory'; | ||
export * from './Bridge__factory.js'; | ||
export * from './TokenBridgeRelayer__factory.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -17,4 +17,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./Bridge__factory"), exports); | ||
__exportStar(require("./TokenBridgeRelayer__factory"), exports); | ||
__exportStar(require("./Bridge__factory.js"), exports); | ||
__exportStar(require("./TokenBridgeRelayer__factory.js"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './factories'; | ||
export { Bridge as TokenBridgeContract } from './Bridge'; | ||
export { TokenBridgeRelayer } from './TokenBridgeRelayer'; | ||
export * from './factories/index.js'; | ||
export { Bridge as TokenBridgeContract } from './Bridge.js'; | ||
export { TokenBridgeRelayer } from './TokenBridgeRelayer.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./factories"), exports); | ||
__exportStar(require("./factories/index.js"), exports); | ||
//# sourceMappingURL=index.js.map |
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from 'ethers'; | ||
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from './common'; | ||
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from './common.js'; | ||
export declare namespace TokenBridgeRelayerStructs { | ||
@@ -4,0 +4,0 @@ type SwapRateUpdateStruct = { |
@@ -1,4 +0,4 @@ | ||
export * as ethers_contracts from './ethers-contracts'; | ||
export * from './tokenBridge'; | ||
export * from './automaticTokenBridge'; | ||
export * as ethers_contracts from './ethers-contracts/index.js'; | ||
export * from './tokenBridge.js'; | ||
export * from './automaticTokenBridge.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -32,9 +32,9 @@ "use strict"; | ||
const sdk_evm_1 = require("@wormhole-foundation/sdk-evm"); | ||
const tokenBridge_1 = require("./tokenBridge"); | ||
const automaticTokenBridge_1 = require("./automaticTokenBridge"); | ||
(0, sdk_connect_1.registerProtocol)(sdk_evm_1._platform, 'TokenBridge', tokenBridge_1.EvmTokenBridge); | ||
(0, sdk_connect_1.registerProtocol)(sdk_evm_1._platform, 'AutomaticTokenBridge', automaticTokenBridge_1.EvmAutomaticTokenBridge); | ||
exports.ethers_contracts = __importStar(require("./ethers-contracts")); | ||
__exportStar(require("./tokenBridge"), exports); | ||
__exportStar(require("./automaticTokenBridge"), exports); | ||
const tokenBridge_js_1 = require("./tokenBridge.js"); | ||
const automaticTokenBridge_js_1 = require("./automaticTokenBridge.js"); | ||
(0, sdk_connect_1.registerProtocol)(sdk_evm_1._platform, 'TokenBridge', tokenBridge_js_1.EvmTokenBridge); | ||
(0, sdk_connect_1.registerProtocol)(sdk_evm_1._platform, 'AutomaticTokenBridge', automaticTokenBridge_js_1.EvmAutomaticTokenBridge); | ||
exports.ethers_contracts = __importStar(require("./ethers-contracts/index.js")); | ||
__exportStar(require("./tokenBridge.js"), exports); | ||
__exportStar(require("./automaticTokenBridge.js"), exports); | ||
//# sourceMappingURL=index.js.map |
import type { AccountAddress, Chain, ChainAddress, ChainsConfig, Contracts, NativeAddress, Network, Platform, TokenAddress, TokenBridge, TokenId } from '@wormhole-foundation/sdk-connect'; | ||
import type { Provider } from 'ethers'; | ||
import type { TokenBridgeContract } from './ethers-contracts'; | ||
import type { TokenBridgeContract } from './ethers-contracts/index.js'; | ||
import type { EvmChains } from '@wormhole-foundation/sdk-evm'; | ||
@@ -5,0 +5,0 @@ import { EvmUnsignedTransaction } from '@wormhole-foundation/sdk-evm'; |
@@ -5,3 +5,3 @@ "use strict"; | ||
const sdk_connect_1 = require("@wormhole-foundation/sdk-connect"); | ||
const _1 = require("."); | ||
const index_js_1 = require("./index.js"); | ||
const sdk_evm_1 = require("@wormhole-foundation/sdk-evm"); | ||
@@ -27,3 +27,3 @@ require("@wormhole-foundation/sdk-evm-core"); | ||
this.tokenBridgeAddress = tokenBridgeAddress; | ||
this.tokenBridge = _1.ethers_contracts.Bridge__factory.connect(this.tokenBridgeAddress, provider); | ||
this.tokenBridge = index_js_1.ethers_contracts.Bridge__factory.connect(this.tokenBridgeAddress, provider); | ||
} | ||
@@ -30,0 +30,0 @@ static async fromRpc(provider, config) { |
@@ -5,3 +5,3 @@ import type { AccountAddress, AutomaticTokenBridge, ChainAddress, ChainsConfig, Contracts, NativeAddress, Network, TokenAddress } from '@wormhole-foundation/sdk-connect'; | ||
import type { Provider } from 'ethers'; | ||
import { ethers_contracts } from '.'; | ||
import { ethers_contracts } from './index.js'; | ||
import '@wormhole-foundation/sdk-evm-core'; | ||
@@ -8,0 +8,0 @@ export declare class EvmAutomaticTokenBridge<N extends Network, C extends EvmChains> implements AutomaticTokenBridge<N, C> { |
import { isNative, serialize, toNative, nativeChainIds, toChainId, } from '@wormhole-foundation/sdk-connect'; | ||
import { EvmAddress, EvmPlatform, EvmUnsignedTransaction, addChainId, addFrom, } from '@wormhole-foundation/sdk-evm'; | ||
import { ethers_contracts } from '.'; | ||
import { ethers_contracts } from './index.js'; | ||
import '@wormhole-foundation/sdk-evm-core'; | ||
@@ -5,0 +5,0 @@ export class EvmAutomaticTokenBridge { |
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from 'ethers'; | ||
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from './common'; | ||
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from './common.js'; | ||
export declare namespace BridgeStructs { | ||
@@ -4,0 +4,0 @@ type TransferStruct = { |
@@ -1,3 +0,3 @@ | ||
export * from './Bridge__factory'; | ||
export * from './TokenBridgeRelayer__factory'; | ||
export * from './Bridge__factory.js'; | ||
export * from './TokenBridgeRelayer__factory.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,3 +0,3 @@ | ||
export * from './Bridge__factory'; | ||
export * from './TokenBridgeRelayer__factory'; | ||
export * from './Bridge__factory.js'; | ||
export * from './TokenBridgeRelayer__factory.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,4 @@ | ||
export * from './factories'; | ||
export { Bridge as TokenBridgeContract } from './Bridge'; | ||
export { TokenBridgeRelayer } from './TokenBridgeRelayer'; | ||
export * from './factories/index.js'; | ||
export { Bridge as TokenBridgeContract } from './Bridge.js'; | ||
export { TokenBridgeRelayer } from './TokenBridgeRelayer.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export * from './factories'; | ||
export * from './factories/index.js'; | ||
//# sourceMappingURL=index.js.map |
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from 'ethers'; | ||
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from './common'; | ||
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from './common.js'; | ||
export declare namespace TokenBridgeRelayerStructs { | ||
@@ -4,0 +4,0 @@ type SwapRateUpdateStruct = { |
@@ -1,4 +0,4 @@ | ||
export * as ethers_contracts from './ethers-contracts'; | ||
export * from './tokenBridge'; | ||
export * from './automaticTokenBridge'; | ||
export * as ethers_contracts from './ethers-contracts/index.js'; | ||
export * from './tokenBridge.js'; | ||
export * from './automaticTokenBridge.js'; | ||
//# sourceMappingURL=index.d.ts.map |
import { registerProtocol } from '@wormhole-foundation/sdk-connect'; | ||
import { _platform } from '@wormhole-foundation/sdk-evm'; | ||
import { EvmTokenBridge } from './tokenBridge'; | ||
import { EvmAutomaticTokenBridge } from './automaticTokenBridge'; | ||
import { EvmTokenBridge } from './tokenBridge.js'; | ||
import { EvmAutomaticTokenBridge } from './automaticTokenBridge.js'; | ||
registerProtocol(_platform, 'TokenBridge', EvmTokenBridge); | ||
registerProtocol(_platform, 'AutomaticTokenBridge', EvmAutomaticTokenBridge); | ||
export * as ethers_contracts from './ethers-contracts'; | ||
export * from './tokenBridge'; | ||
export * from './automaticTokenBridge'; | ||
export * as ethers_contracts from './ethers-contracts/index.js'; | ||
export * from './tokenBridge.js'; | ||
export * from './automaticTokenBridge.js'; | ||
//# sourceMappingURL=index.js.map |
import type { AccountAddress, Chain, ChainAddress, ChainsConfig, Contracts, NativeAddress, Network, Platform, TokenAddress, TokenBridge, TokenId } from '@wormhole-foundation/sdk-connect'; | ||
import type { Provider } from 'ethers'; | ||
import type { TokenBridgeContract } from './ethers-contracts'; | ||
import type { TokenBridgeContract } from './ethers-contracts/index.js'; | ||
import type { EvmChains } from '@wormhole-foundation/sdk-evm'; | ||
@@ -5,0 +5,0 @@ import { EvmUnsignedTransaction } from '@wormhole-foundation/sdk-evm'; |
import { ErrNotWrapped, UniversalAddress, isNative, keccak256, nativeChainIds, serialize, toChain, toChainId, toNative, } from '@wormhole-foundation/sdk-connect'; | ||
import { ethers_contracts } from '.'; | ||
import { ethers_contracts } from './index.js'; | ||
import { EvmAddress, EvmPlatform, EvmUnsignedTransaction, EvmZeroAddress, addChainId, addFrom, unusedArbiterFee, unusedNonce, } from '@wormhole-foundation/sdk-evm'; | ||
@@ -4,0 +4,0 @@ import '@wormhole-foundation/sdk-evm-core'; |
{ | ||
"name": "@wormhole-foundation/sdk-evm-tokenbridge", | ||
"version": "0.5.0-beta.10", | ||
"version": "0.5.0-beta.11", | ||
"repository": { | ||
@@ -17,9 +17,8 @@ "type": "git", | ||
"main": "./dist/cjs/index.js", | ||
"types": "./dist/cjs/index.d.ts", | ||
"module": "./dist/esm/index.js", | ||
"types": "./dist/cjs/index.d.ts", | ||
"author": "", | ||
"description": "SDK for EVM chains, used in conjunction with @wormhole-foundation/sdk", | ||
"files": [ | ||
"dist/cjs", | ||
"dist/esm" | ||
"dist/esm", | ||
"dist/cjs" | ||
], | ||
@@ -45,5 +44,5 @@ "keywords": [ | ||
"scripts": { | ||
"build:cjs": "tsc -p ./tsconfig.cjs.json", | ||
"build:cjs": "tsc -p ./tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", | ||
"build:esm": "tsc -p ./tsconfig.esm.json", | ||
"build": "npm run build:cjs && npm run build:esm", | ||
"build": "npm run build:esm && npm run build:cjs", | ||
"rebuild": "npm run clean && npm run build", | ||
@@ -55,9 +54,22 @@ "clean": "rm -rf ./dist && rm -rf ./.turbo", | ||
"dependencies": { | ||
"@wormhole-foundation/sdk-connect": "0.5.0-beta.10", | ||
"@wormhole-foundation/sdk-evm": "0.5.0-beta.10", | ||
"@wormhole-foundation/sdk-evm-core": "0.5.0-beta.10", | ||
"@wormhole-foundation/sdk-connect": "0.5.0-beta.11", | ||
"@wormhole-foundation/sdk-evm": "0.5.0-beta.11", | ||
"@wormhole-foundation/sdk-evm-core": "0.5.0-beta.11", | ||
"typechain": "^8.2.0", | ||
"ethers": "^6.5.1", | ||
"@typechain/ethers-v6": "^0.4.0" | ||
}, | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"default": "./dist/cjs/index.js", | ||
"types": "./dist/cjs/index.d.ts" | ||
} | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
957456
82
Yes
+ Added@wormhole-foundation/sdk-base@0.5.0-beta.11(transitive)
+ Added@wormhole-foundation/sdk-connect@0.5.0-beta.11(transitive)
+ Added@wormhole-foundation/sdk-definitions@0.5.0-beta.11(transitive)
+ Added@wormhole-foundation/sdk-evm@0.5.0-beta.11(transitive)
+ Added@wormhole-foundation/sdk-evm-core@0.5.0-beta.11(transitive)
- Removed@wormhole-foundation/sdk-base@0.5.0-beta.10(transitive)
- Removed@wormhole-foundation/sdk-connect@0.5.0-beta.10(transitive)
- Removed@wormhole-foundation/sdk-definitions@0.5.0-beta.10(transitive)
- Removed@wormhole-foundation/sdk-evm@0.5.0-beta.10(transitive)
- Removed@wormhole-foundation/sdk-evm-core@0.5.0-beta.10(transitive)