@wormhole-foundation/sdk-definitions
Advanced tools
Comparing version 0.2.0-beta.4 to 0.2.0-beta.5
@@ -21,3 +21,3 @@ import { Chain, Network, Platform, PlatformToChains, ProtocolName } from "@wormhole-foundation/sdk-base"; | ||
protected ibcBridge?: IbcBridge<N, P, C>; | ||
constructor(chain: C, platform: PlatformContext<N, P>); | ||
constructor(chain: C, platform: PlatformContext<N, P>, rpc?: RpcConnection<P>); | ||
getRpc(): Promise<RpcConnection<P>>; | ||
@@ -24,0 +24,0 @@ getDecimals(token: TokenAddress<C>): Promise<bigint>; |
@@ -17,3 +17,3 @@ "use strict"; | ||
ibcBridge; | ||
constructor(chain, platform) { | ||
constructor(chain, platform, rpc) { | ||
this.config = platform.config[chain]; | ||
@@ -23,2 +23,3 @@ this.platform = platform; | ||
this.network = this.config.network; | ||
this.rpc = rpc; | ||
} | ||
@@ -25,0 +26,0 @@ getRpc() { |
@@ -28,3 +28,3 @@ import { Chain, Network, Platform, PlatformToChains, ProtocolName } from "@wormhole-foundation/sdk-base"; | ||
abstract getRpc<C extends PlatformToChains<P>>(chain: C): RpcConnection<P>; | ||
abstract getChain<C extends PlatformToChains<P>>(chain: C): ChainContext<N, P, C>; | ||
abstract getChain<C extends PlatformToChains<P>>(chain: C, rpc?: RpcConnection<P>): ChainContext<N, P, C>; | ||
getProtocol<PN extends ProtocolName, T>(protocol: PN, rpc: RpcConnection<P>): Promise<T>; | ||
@@ -31,0 +31,0 @@ parseWormholeMessages<C extends PlatformToChains<P>>(chain: C, rpc: RpcConnection<P>, txid: TxHash): Promise<WormholeMessageId[]>; |
@@ -21,3 +21,3 @@ import { Chain, Network, Platform, PlatformToChains, ProtocolName } from "@wormhole-foundation/sdk-base"; | ||
protected ibcBridge?: IbcBridge<N, P, C>; | ||
constructor(chain: C, platform: PlatformContext<N, P>); | ||
constructor(chain: C, platform: PlatformContext<N, P>, rpc?: RpcConnection<P>); | ||
getRpc(): Promise<RpcConnection<P>>; | ||
@@ -24,0 +24,0 @@ getDecimals(token: TokenAddress<C>): Promise<bigint>; |
@@ -14,3 +14,3 @@ import { protocolIsRegistered } from "./protocol"; | ||
ibcBridge; | ||
constructor(chain, platform) { | ||
constructor(chain, platform, rpc) { | ||
this.config = platform.config[chain]; | ||
@@ -20,2 +20,3 @@ this.platform = platform; | ||
this.network = this.config.network; | ||
this.rpc = rpc; | ||
} | ||
@@ -22,0 +23,0 @@ getRpc() { |
@@ -28,3 +28,3 @@ import { Chain, Network, Platform, PlatformToChains, ProtocolName } from "@wormhole-foundation/sdk-base"; | ||
abstract getRpc<C extends PlatformToChains<P>>(chain: C): RpcConnection<P>; | ||
abstract getChain<C extends PlatformToChains<P>>(chain: C): ChainContext<N, P, C>; | ||
abstract getChain<C extends PlatformToChains<P>>(chain: C, rpc?: RpcConnection<P>): ChainContext<N, P, C>; | ||
getProtocol<PN extends ProtocolName, T>(protocol: PN, rpc: RpcConnection<P>): Promise<T>; | ||
@@ -31,0 +31,0 @@ parseWormholeMessages<C extends PlatformToChains<P>>(chain: C, rpc: RpcConnection<P>, txid: TxHash): Promise<WormholeMessageId[]>; |
{ | ||
"name": "@wormhole-foundation/sdk-definitions", | ||
"version": "0.2.0-beta.4", | ||
"version": "0.2.0-beta.5", | ||
"repository": { | ||
@@ -33,4 +33,4 @@ "type": "git", | ||
"@noble/hashes": "^1.3.1", | ||
"@wormhole-foundation/sdk-base": "^0.2.0-beta.4" | ||
"@wormhole-foundation/sdk-base": "^0.2.0-beta.5" | ||
} | ||
} |
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
689150
8919