@layerzerolabs/devtools
Advanced tools
Comparing version 0.3.7 to 0.3.8
@@ -724,2 +724,15 @@ import { EndpointId } from '@layerzerolabs/lz-definitions'; | ||
declare const vectorFromNodes: (a: OmniNode, b: OmniNode) => OmniVector; | ||
/** | ||
* Helper function to add an `eid` to arbitrary values, converting them to `WithEid` | ||
* | ||
* This is useful to reduce repetition when e.g. creating multiple `OmniPoint` instances on the same network: | ||
* | ||
* ``` | ||
* const onMainnet = withEid(EndpointId.ETHEREUM_V2_MAINNET) | ||
* | ||
* const onePoint = onMainnet({ address: '0x0' }) | ||
* const anotherPoint = onMainnet({ address: '0x1' }) | ||
* ``` | ||
*/ | ||
declare const withEid: (eid: EndpointId) => <T>(value: T) => WithEid<T>; | ||
@@ -868,2 +881,2 @@ type Hash = string | number | boolean | bigint; | ||
export { AddressSchema, AsyncRetriable, type Bytes, type Bytes20, type Bytes32, type ComposeSpec, type ComposeSpecDependencyCondition, type ComposeSpecDependsOnDefinition, type ComposeSpecPort, type ComposeSpecPortDefinition, type ComposeSpecPortNumber, type ComposeSpecService, type ComposeSpecServiceBuild, type ComposeSpecServiceCommand, type ComposeSpecServiceDependsOn, type ComposeSpecServiceHealthcheck, type ComposeSpecServiceVolume, type ComposeSpecServiceVolumeDefinition, type ComposeSpecServices, type ComposeSpecVersion, type ComposeSpecVolume, type ComposeSpecVolumeDefinition, type ComposeSpecVolumes, type Configurator, type CreateTransactionsFromOmniEdges, type CreateTransactionsFromOmniNodes, EmptyOmniEdgeSchema, EmptyOmniNodeSchema, type EndpointBasedFactory, EndpointIdSchema, type Factory, type IOmniSDK, type InferOmniEdge, type InferOmniNode, type ListOrDict, type OmniAddress, type OmniEdge, type OmniError, type OmniGraph, OmniGraphBuilder, type OmniNode, type OmniPoint, OmniPointMap, OmniPointSchema, type OmniSDKFactory, type OmniSigner, type OmniSignerFactory, type OmniTransaction, type OmniTransactionReceipt, type OmniTransactionResponse, type OmniTransactionWithError, type OmniTransactionWithReceipt, type OmniTransactionWithResponse, type OmniVector, OmniVectorMap, OmniVectorSchema, type OnRetry, type OnSignAndSendProgress, type PossiblyBigInt, type PossiblyBytes, type RetriableConfig, type SignAndSend, type SignAndSendResult, UIntBigIntSchema, UIntNumberSchema, type WithEid, type WithLooseBigInts, type WithOptionals, areBytes32Equal, arePointsEqual, areSameEndpoint, areVectorsEqual, compareBytes32Ascending, createConfigureEdges, createConfigureMultiple, createConfigureNodes, createDefaultRetryHandler, createOmniEdgeSchema, createOmniGraphSchema, createOmniNodeSchema, createRetryFactory, createSignAndSend, createSimpleRetryStrategy, first, firstFactory, flattenTransactions, formatEid, formatOmniPoint, formatOmniTransaction, formatOmniVector, groupTransactionsByEid, ignoreZero, isDeepEqual, isOmniGraphEmpty, isOmniPoint, isVectorPossible, isZero, makeBytes32, mapError, parallel, sequence, serializeDockerComposeSpec, serializePoint, serializeVector, splitCommaSeparated, tapError, vectorFromNodes }; | ||
export { AddressSchema, AsyncRetriable, type Bytes, type Bytes20, type Bytes32, type ComposeSpec, type ComposeSpecDependencyCondition, type ComposeSpecDependsOnDefinition, type ComposeSpecPort, type ComposeSpecPortDefinition, type ComposeSpecPortNumber, type ComposeSpecService, type ComposeSpecServiceBuild, type ComposeSpecServiceCommand, type ComposeSpecServiceDependsOn, type ComposeSpecServiceHealthcheck, type ComposeSpecServiceVolume, type ComposeSpecServiceVolumeDefinition, type ComposeSpecServices, type ComposeSpecVersion, type ComposeSpecVolume, type ComposeSpecVolumeDefinition, type ComposeSpecVolumes, type Configurator, type CreateTransactionsFromOmniEdges, type CreateTransactionsFromOmniNodes, EmptyOmniEdgeSchema, EmptyOmniNodeSchema, type EndpointBasedFactory, EndpointIdSchema, type Factory, type IOmniSDK, type InferOmniEdge, type InferOmniNode, type ListOrDict, type OmniAddress, type OmniEdge, type OmniError, type OmniGraph, OmniGraphBuilder, type OmniNode, type OmniPoint, OmniPointMap, OmniPointSchema, type OmniSDKFactory, type OmniSigner, type OmniSignerFactory, type OmniTransaction, type OmniTransactionReceipt, type OmniTransactionResponse, type OmniTransactionWithError, type OmniTransactionWithReceipt, type OmniTransactionWithResponse, type OmniVector, OmniVectorMap, OmniVectorSchema, type OnRetry, type OnSignAndSendProgress, type PossiblyBigInt, type PossiblyBytes, type RetriableConfig, type SignAndSend, type SignAndSendResult, UIntBigIntSchema, UIntNumberSchema, type WithEid, type WithLooseBigInts, type WithOptionals, areBytes32Equal, arePointsEqual, areSameEndpoint, areVectorsEqual, compareBytes32Ascending, createConfigureEdges, createConfigureMultiple, createConfigureNodes, createDefaultRetryHandler, createOmniEdgeSchema, createOmniGraphSchema, createOmniNodeSchema, createRetryFactory, createSignAndSend, createSimpleRetryStrategy, first, firstFactory, flattenTransactions, formatEid, formatOmniPoint, formatOmniTransaction, formatOmniVector, groupTransactionsByEid, ignoreZero, isDeepEqual, isOmniGraphEmpty, isOmniPoint, isVectorPossible, isZero, makeBytes32, mapError, parallel, sequence, serializeDockerComposeSpec, serializePoint, serializeVector, splitCommaSeparated, tapError, vectorFromNodes, withEid }; |
@@ -172,2 +172,3 @@ 'use strict'; | ||
var vectorFromNodes = (a, b) => ({ from: a.point, to: b.point }); | ||
var withEid = (eid) => (value) => ({ ...value, eid }); | ||
var formatEid = (eid) => { | ||
@@ -538,3 +539,4 @@ var _a4; | ||
exports.vectorFromNodes = vectorFromNodes; | ||
exports.withEid = withEid; | ||
//# sourceMappingURL=out.js.map | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@layerzerolabs/devtools", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "Core utilities for working with LayerZero on-chain infrastructure", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
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
226904
1874