@wormhole-foundation/sdk-definitions 4.22.0-beta.0 → 5.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +15 -47
- package/dist/cjs/address.d.ts +0 -53
- package/dist/cjs/address.d.ts.map +0 -1
- package/dist/cjs/address.js +0 -66
- package/dist/cjs/address.js.map +0 -1
- package/dist/cjs/attestation.d.ts +0 -53
- package/dist/cjs/attestation.d.ts.map +0 -1
- package/dist/cjs/attestation.js +0 -23
- package/dist/cjs/attestation.js.map +0 -1
- package/dist/cjs/chain.d.ts +0 -217
- package/dist/cjs/chain.d.ts.map +0 -1
- package/dist/cjs/chain.js +0 -301
- package/dist/cjs/chain.js.map +0 -1
- package/dist/cjs/contracts.d.ts +0 -31
- package/dist/cjs/contracts.d.ts.map +0 -1
- package/dist/cjs/contracts.js +0 -46
- package/dist/cjs/contracts.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -18
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -47
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/layout-items/amount.d.ts +0 -5
- package/dist/cjs/layout-items/amount.d.ts.map +0 -1
- package/dist/cjs/layout-items/amount.js +0 -8
- package/dist/cjs/layout-items/amount.js.map +0 -1
- package/dist/cjs/layout-items/boolean.d.ts +0 -9
- package/dist/cjs/layout-items/boolean.d.ts.map +0 -1
- package/dist/cjs/layout-items/boolean.js +0 -12
- package/dist/cjs/layout-items/boolean.js.map +0 -1
- package/dist/cjs/layout-items/chain.d.ts +0 -85
- package/dist/cjs/layout-items/chain.d.ts.map +0 -1
- package/dist/cjs/layout-items/chain.js +0 -33
- package/dist/cjs/layout-items/chain.js.map +0 -1
- package/dist/cjs/layout-items/circle.d.ts +0 -9
- package/dist/cjs/layout-items/circle.d.ts.map +0 -1
- package/dist/cjs/layout-items/circle.js +0 -12
- package/dist/cjs/layout-items/circle.js.map +0 -1
- package/dist/cjs/layout-items/date.d.ts +0 -5
- package/dist/cjs/layout-items/date.d.ts.map +0 -1
- package/dist/cjs/layout-items/date.js +0 -8
- package/dist/cjs/layout-items/date.js.map +0 -1
- package/dist/cjs/layout-items/guardianSet.d.ts +0 -5
- package/dist/cjs/layout-items/guardianSet.d.ts.map +0 -1
- package/dist/cjs/layout-items/guardianSet.js +0 -8
- package/dist/cjs/layout-items/guardianSet.js.map +0 -1
- package/dist/cjs/layout-items/index.d.ts +0 -12
- package/dist/cjs/layout-items/index.d.ts.map +0 -1
- package/dist/cjs/layout-items/index.js +0 -28
- package/dist/cjs/layout-items/index.js.map +0 -1
- package/dist/cjs/layout-items/payloadId.d.ts +0 -8
- package/dist/cjs/layout-items/payloadId.d.ts.map +0 -1
- package/dist/cjs/layout-items/payloadId.js +0 -12
- package/dist/cjs/layout-items/payloadId.js.map +0 -1
- package/dist/cjs/layout-items/sequence.d.ts +0 -5
- package/dist/cjs/layout-items/sequence.d.ts.map +0 -1
- package/dist/cjs/layout-items/sequence.js +0 -8
- package/dist/cjs/layout-items/sequence.js.map +0 -1
- package/dist/cjs/layout-items/signature.d.ts +0 -41
- package/dist/cjs/layout-items/signature.d.ts.map +0 -1
- package/dist/cjs/layout-items/signature.js +0 -18
- package/dist/cjs/layout-items/signature.js.map +0 -1
- package/dist/cjs/layout-items/string.d.ts +0 -13
- package/dist/cjs/layout-items/string.d.ts.map +0 -1
- package/dist/cjs/layout-items/string.js +0 -22
- package/dist/cjs/layout-items/string.js.map +0 -1
- package/dist/cjs/layout-items/universalAddress.d.ts +0 -10
- package/dist/cjs/layout-items/universalAddress.d.ts.map +0 -1
- package/dist/cjs/layout-items/universalAddress.js +0 -13
- package/dist/cjs/layout-items/universalAddress.js.map +0 -1
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/platform.d.ts +0 -70
- package/dist/cjs/platform.d.ts.map +0 -1
- package/dist/cjs/platform.js +0 -38
- package/dist/cjs/platform.js.map +0 -1
- package/dist/cjs/protocol.d.ts +0 -44
- package/dist/cjs/protocol.d.ts.map +0 -1
- package/dist/cjs/protocol.js +0 -50
- package/dist/cjs/protocol.js.map +0 -1
- package/dist/cjs/protocols/circleBridge/automaticCircleBridgeLayout.d.ts +0 -216
- package/dist/cjs/protocols/circleBridge/automaticCircleBridgeLayout.d.ts.map +0 -1
- package/dist/cjs/protocols/circleBridge/automaticCircleBridgeLayout.js +0 -41
- package/dist/cjs/protocols/circleBridge/automaticCircleBridgeLayout.js.map +0 -1
- package/dist/cjs/protocols/circleBridge/circleBridge.d.ts +0 -134
- package/dist/cjs/protocols/circleBridge/circleBridge.d.ts.map +0 -1
- package/dist/cjs/protocols/circleBridge/circleBridge.js +0 -38
- package/dist/cjs/protocols/circleBridge/circleBridge.js.map +0 -1
- package/dist/cjs/protocols/circleBridge/circleBridgeLayout.d.ts +0 -172
- package/dist/cjs/protocols/circleBridge/circleBridgeLayout.d.ts.map +0 -1
- package/dist/cjs/protocols/circleBridge/circleBridgeLayout.js +0 -38
- package/dist/cjs/protocols/circleBridge/circleBridgeLayout.js.map +0 -1
- package/dist/cjs/protocols/circleBridge/index.d.ts +0 -5
- package/dist/cjs/protocols/circleBridge/index.d.ts.map +0 -1
- package/dist/cjs/protocols/circleBridge/index.js +0 -20
- package/dist/cjs/protocols/circleBridge/index.js.map +0 -1
- package/dist/cjs/protocols/core/core.d.ts +0 -75
- package/dist/cjs/protocols/core/core.d.ts.map +0 -1
- package/dist/cjs/protocols/core/core.js +0 -4
- package/dist/cjs/protocols/core/core.js.map +0 -1
- package/dist/cjs/protocols/core/index.d.ts +0 -3
- package/dist/cjs/protocols/core/index.d.ts.map +0 -1
- package/dist/cjs/protocols/core/index.js +0 -18
- package/dist/cjs/protocols/core/index.js.map +0 -1
- package/dist/cjs/protocols/executor/api.d.ts +0 -67
- package/dist/cjs/protocols/executor/api.d.ts.map +0 -1
- package/dist/cjs/protocols/executor/api.js +0 -88
- package/dist/cjs/protocols/executor/api.js.map +0 -1
- package/dist/cjs/protocols/executor/index.d.ts +0 -4
- package/dist/cjs/protocols/executor/index.d.ts.map +0 -1
- package/dist/cjs/protocols/executor/index.js +0 -20
- package/dist/cjs/protocols/executor/index.js.map +0 -1
- package/dist/cjs/protocols/executor/relayInstruction.d.ts +0 -124
- package/dist/cjs/protocols/executor/relayInstruction.d.ts.map +0 -1
- package/dist/cjs/protocols/executor/relayInstruction.js +0 -38
- package/dist/cjs/protocols/executor/relayInstruction.js.map +0 -1
- package/dist/cjs/protocols/executor/signedQuote.d.ts +0 -102
- package/dist/cjs/protocols/executor/signedQuote.d.ts.map +0 -1
- package/dist/cjs/protocols/executor/signedQuote.js +0 -46
- package/dist/cjs/protocols/executor/signedQuote.js.map +0 -1
- package/dist/cjs/protocols/governance/gateway.d.ts +0 -16
- package/dist/cjs/protocols/governance/gateway.d.ts.map +0 -1
- package/dist/cjs/protocols/governance/gateway.js +0 -4
- package/dist/cjs/protocols/governance/gateway.js.map +0 -1
- package/dist/cjs/protocols/governance/generalPurpose.d.ts +0 -16
- package/dist/cjs/protocols/governance/generalPurpose.d.ts.map +0 -1
- package/dist/cjs/protocols/governance/generalPurpose.js +0 -4
- package/dist/cjs/protocols/governance/generalPurpose.js.map +0 -1
- package/dist/cjs/protocols/governance/globalAccountant.d.ts +0 -17
- package/dist/cjs/protocols/governance/globalAccountant.d.ts.map +0 -1
- package/dist/cjs/protocols/governance/globalAccountant.js +0 -10
- package/dist/cjs/protocols/governance/globalAccountant.js.map +0 -1
- package/dist/cjs/protocols/governance/ibcReceiver.d.ts +0 -16
- package/dist/cjs/protocols/governance/ibcReceiver.d.ts.map +0 -1
- package/dist/cjs/protocols/governance/ibcReceiver.js +0 -4
- package/dist/cjs/protocols/governance/ibcReceiver.js.map +0 -1
- package/dist/cjs/protocols/governance/index.d.ts +0 -7
- package/dist/cjs/protocols/governance/index.d.ts.map +0 -1
- package/dist/cjs/protocols/governance/index.js +0 -18
- package/dist/cjs/protocols/governance/index.js.map +0 -1
- package/dist/cjs/protocols/governance/layout.d.ts +0 -1187
- package/dist/cjs/protocols/governance/layout.d.ts.map +0 -1
- package/dist/cjs/protocols/governance/layout.js +0 -253
- package/dist/cjs/protocols/governance/layout.js.map +0 -1
- package/dist/cjs/protocols/governance/wormchainGovernance.d.ts +0 -16
- package/dist/cjs/protocols/governance/wormchainGovernance.d.ts.map +0 -1
- package/dist/cjs/protocols/governance/wormchainGovernance.js +0 -4
- package/dist/cjs/protocols/governance/wormchainGovernance.js.map +0 -1
- package/dist/cjs/protocols/ibc/ibc.d.ts +0 -97
- package/dist/cjs/protocols/ibc/ibc.d.ts.map +0 -1
- package/dist/cjs/protocols/ibc/ibc.js +0 -79
- package/dist/cjs/protocols/ibc/ibc.js.map +0 -1
- package/dist/cjs/protocols/ibc/index.d.ts +0 -3
- package/dist/cjs/protocols/ibc/index.d.ts.map +0 -1
- package/dist/cjs/protocols/ibc/index.js +0 -18
- package/dist/cjs/protocols/ibc/index.js.map +0 -1
- package/dist/cjs/protocols/index.d.ts +0 -10
- package/dist/cjs/protocols/index.d.ts.map +0 -1
- package/dist/cjs/protocols/index.js +0 -26
- package/dist/cjs/protocols/index.js.map +0 -1
- package/dist/cjs/protocols/nftBridge/index.d.ts +0 -2
- package/dist/cjs/protocols/nftBridge/index.d.ts.map +0 -1
- package/dist/cjs/protocols/nftBridge/index.js +0 -18
- package/dist/cjs/protocols/nftBridge/index.js.map +0 -1
- package/dist/cjs/protocols/nftBridge/nftBridge.d.ts +0 -13
- package/dist/cjs/protocols/nftBridge/nftBridge.d.ts.map +0 -1
- package/dist/cjs/protocols/nftBridge/nftBridge.js +0 -4
- package/dist/cjs/protocols/nftBridge/nftBridge.js.map +0 -1
- package/dist/cjs/protocols/portico/index.d.ts +0 -3
- package/dist/cjs/protocols/portico/index.d.ts.map +0 -1
- package/dist/cjs/protocols/portico/index.js +0 -19
- package/dist/cjs/protocols/portico/index.js.map +0 -1
- package/dist/cjs/protocols/portico/portico.d.ts +0 -71
- package/dist/cjs/protocols/portico/portico.d.ts.map +0 -1
- package/dist/cjs/protocols/portico/portico.js +0 -25
- package/dist/cjs/protocols/portico/portico.js.map +0 -1
- package/dist/cjs/protocols/portico/porticoLayout.d.ts +0 -321
- package/dist/cjs/protocols/portico/porticoLayout.d.ts.map +0 -1
- package/dist/cjs/protocols/portico/porticoLayout.js +0 -44
- package/dist/cjs/protocols/portico/porticoLayout.js.map +0 -1
- package/dist/cjs/protocols/relayer/index.d.ts +0 -3
- package/dist/cjs/protocols/relayer/index.d.ts.map +0 -1
- package/dist/cjs/protocols/relayer/index.js +0 -18
- package/dist/cjs/protocols/relayer/index.js.map +0 -1
- package/dist/cjs/protocols/relayer/relayer.d.ts +0 -22
- package/dist/cjs/protocols/relayer/relayer.d.ts.map +0 -1
- package/dist/cjs/protocols/relayer/relayer.js +0 -4
- package/dist/cjs/protocols/relayer/relayer.js.map +0 -1
- package/dist/cjs/protocols/relayer/relayerLayout.d.ts +0 -430
- package/dist/cjs/protocols/relayer/relayerLayout.d.ts.map +0 -1
- package/dist/cjs/protocols/relayer/relayerLayout.js +0 -75
- package/dist/cjs/protocols/relayer/relayerLayout.js.map +0 -1
- package/dist/cjs/protocols/tbtc/index.d.ts +0 -3
- package/dist/cjs/protocols/tbtc/index.d.ts.map +0 -1
- package/dist/cjs/protocols/tbtc/index.js +0 -19
- package/dist/cjs/protocols/tbtc/index.js.map +0 -1
- package/dist/cjs/protocols/tbtc/tbtc.d.ts +0 -35
- package/dist/cjs/protocols/tbtc/tbtc.d.ts.map +0 -1
- package/dist/cjs/protocols/tbtc/tbtc.js +0 -24
- package/dist/cjs/protocols/tbtc/tbtc.js.map +0 -1
- package/dist/cjs/protocols/tbtc/tbtcLayout.d.ts +0 -142
- package/dist/cjs/protocols/tbtc/tbtcLayout.d.ts.map +0 -1
- package/dist/cjs/protocols/tbtc/tbtcLayout.js +0 -20
- package/dist/cjs/protocols/tbtc/tbtcLayout.js.map +0 -1
- package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.d.ts +0 -115
- package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.d.ts.map +0 -1
- package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.js +0 -21
- package/dist/cjs/protocols/tokenBridge/automaticTokenBridgeLayout.js.map +0 -1
- package/dist/cjs/protocols/tokenBridge/executorTokenBridgeLayout.d.ts +0 -87
- package/dist/cjs/protocols/tokenBridge/executorTokenBridgeLayout.d.ts.map +0 -1
- package/dist/cjs/protocols/tokenBridge/executorTokenBridgeLayout.js +0 -14
- package/dist/cjs/protocols/tokenBridge/executorTokenBridgeLayout.js.map +0 -1
- package/dist/cjs/protocols/tokenBridge/index.d.ts +0 -6
- package/dist/cjs/protocols/tokenBridge/index.d.ts.map +0 -1
- package/dist/cjs/protocols/tokenBridge/index.js +0 -21
- package/dist/cjs/protocols/tokenBridge/index.js.map +0 -1
- package/dist/cjs/protocols/tokenBridge/tokenBridge.d.ts +0 -235
- package/dist/cjs/protocols/tokenBridge/tokenBridge.d.ts.map +0 -1
- package/dist/cjs/protocols/tokenBridge/tokenBridge.js +0 -39
- package/dist/cjs/protocols/tokenBridge/tokenBridge.js.map +0 -1
- package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.d.ts +0 -286
- package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.d.ts.map +0 -1
- package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.js +0 -70
- package/dist/cjs/protocols/tokenBridge/tokenBridgeLayout.js.map +0 -1
- package/dist/cjs/registry.d.ts +0 -20
- package/dist/cjs/registry.d.ts.map +0 -1
- package/dist/cjs/registry.js +0 -3
- package/dist/cjs/registry.js.map +0 -1
- package/dist/cjs/rpc.d.ts +0 -4
- package/dist/cjs/rpc.d.ts.map +0 -1
- package/dist/cjs/rpc.js +0 -3
- package/dist/cjs/rpc.js.map +0 -1
- package/dist/cjs/signature.d.ts +0 -16
- package/dist/cjs/signature.d.ts.map +0 -1
- package/dist/cjs/signature.js +0 -52
- package/dist/cjs/signature.js.map +0 -1
- package/dist/cjs/signer.d.ts +0 -53
- package/dist/cjs/signer.d.ts.map +0 -1
- package/dist/cjs/signer.js +0 -51
- package/dist/cjs/signer.js.map +0 -1
- package/dist/cjs/testing/index.d.ts +0 -3
- package/dist/cjs/testing/index.d.ts.map +0 -1
- package/dist/cjs/testing/index.js +0 -29
- package/dist/cjs/testing/index.js.map +0 -1
- package/dist/cjs/testing/mocks/api.d.ts +0 -7
- package/dist/cjs/testing/mocks/api.d.ts.map +0 -1
- package/dist/cjs/testing/mocks/api.js +0 -14
- package/dist/cjs/testing/mocks/api.js.map +0 -1
- package/dist/cjs/testing/mocks/chain.d.ts +0 -8
- package/dist/cjs/testing/mocks/chain.d.ts.map +0 -1
- package/dist/cjs/testing/mocks/chain.js +0 -15
- package/dist/cjs/testing/mocks/chain.js.map +0 -1
- package/dist/cjs/testing/mocks/guardian.d.ts +0 -25
- package/dist/cjs/testing/mocks/guardian.d.ts.map +0 -1
- package/dist/cjs/testing/mocks/guardian.js +0 -77
- package/dist/cjs/testing/mocks/guardian.js.map +0 -1
- package/dist/cjs/testing/mocks/index.d.ts +0 -6
- package/dist/cjs/testing/mocks/index.d.ts.map +0 -1
- package/dist/cjs/testing/mocks/index.js +0 -22
- package/dist/cjs/testing/mocks/index.js.map +0 -1
- package/dist/cjs/testing/mocks/platform.d.ts +0 -15
- package/dist/cjs/testing/mocks/platform.d.ts.map +0 -1
- package/dist/cjs/testing/mocks/platform.js +0 -98
- package/dist/cjs/testing/mocks/platform.js.map +0 -1
- package/dist/cjs/testing/mocks/rpc.d.ts +0 -7
- package/dist/cjs/testing/mocks/rpc.d.ts.map +0 -1
- package/dist/cjs/testing/mocks/rpc.js +0 -14
- package/dist/cjs/testing/mocks/rpc.js.map +0 -1
- package/dist/cjs/testing/mocks/tokenBridge.d.ts +0 -19
- package/dist/cjs/testing/mocks/tokenBridge.d.ts.map +0 -1
- package/dist/cjs/testing/mocks/tokenBridge.js +0 -47
- package/dist/cjs/testing/mocks/tokenBridge.js.map +0 -1
- package/dist/cjs/testing/utils/address.d.ts +0 -9
- package/dist/cjs/testing/utils/address.d.ts.map +0 -1
- package/dist/cjs/testing/utils/address.js +0 -65
- package/dist/cjs/testing/utils/address.js.map +0 -1
- package/dist/cjs/testing/utils/index.d.ts +0 -3
- package/dist/cjs/testing/utils/index.d.ts.map +0 -1
- package/dist/cjs/testing/utils/index.js +0 -25
- package/dist/cjs/testing/utils/index.js.map +0 -1
- package/dist/cjs/testing/utils/vaa.d.ts +0 -10
- package/dist/cjs/testing/utils/vaa.d.ts.map +0 -1
- package/dist/cjs/testing/utils/vaa.js +0 -16
- package/dist/cjs/testing/utils/vaa.js.map +0 -1
- package/dist/cjs/types.d.ts +0 -94
- package/dist/cjs/types.d.ts.map +0 -1
- package/dist/cjs/types.js +0 -125
- package/dist/cjs/types.js.map +0 -1
- package/dist/cjs/universalAddress.d.ts +0 -24
- package/dist/cjs/universalAddress.d.ts.map +0 -1
- package/dist/cjs/universalAddress.js +0 -79
- package/dist/cjs/universalAddress.js.map +0 -1
- package/dist/cjs/unsignedTransaction.d.ts +0 -13
- package/dist/cjs/unsignedTransaction.d.ts.map +0 -1
- package/dist/cjs/unsignedTransaction.js +0 -3
- package/dist/cjs/unsignedTransaction.js.map +0 -1
- package/dist/cjs/utils.d.ts +0 -7
- package/dist/cjs/utils.d.ts.map +0 -1
- package/dist/cjs/utils.js +0 -15
- package/dist/cjs/utils.js.map +0 -1
- package/dist/cjs/vaa/create.d.ts +0 -15
- package/dist/cjs/vaa/create.d.ts.map +0 -1
- package/dist/cjs/vaa/create.js +0 -34
- package/dist/cjs/vaa/create.js.map +0 -1
- package/dist/cjs/vaa/functions.d.ts +0 -98
- package/dist/cjs/vaa/functions.d.ts.map +0 -1
- package/dist/cjs/vaa/functions.js +0 -225
- package/dist/cjs/vaa/functions.js.map +0 -1
- package/dist/cjs/vaa/index.d.ts +0 -5
- package/dist/cjs/vaa/index.d.ts.map +0 -1
- package/dist/cjs/vaa/index.js +0 -21
- package/dist/cjs/vaa/index.js.map +0 -1
- package/dist/cjs/vaa/registration.d.ts +0 -19
- package/dist/cjs/vaa/registration.d.ts.map +0 -1
- package/dist/cjs/vaa/registration.js +0 -19
- package/dist/cjs/vaa/registration.js.map +0 -1
- package/dist/cjs/vaa/vaa.d.ts +0 -190
- package/dist/cjs/vaa/vaa.d.ts.map +0 -1
- package/dist/cjs/vaa/vaa.js +0 -31
- package/dist/cjs/vaa/vaa.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wormhole-foundation/sdk-definitions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/wormhole-foundation/wormhole-sdk-ts.git"
|
|
@@ -12,72 +12,40 @@
|
|
|
12
12
|
"directories": {
|
|
13
13
|
"test": "__tests__"
|
|
14
14
|
},
|
|
15
|
-
"main": "./dist/
|
|
15
|
+
"main": "./dist/esm/index.js",
|
|
16
16
|
"module": "./dist/esm/index.js",
|
|
17
|
-
"types": "./dist/
|
|
17
|
+
"types": "./dist/esm/index.d.ts",
|
|
18
18
|
"files": [
|
|
19
|
-
"dist/esm"
|
|
20
|
-
"dist/cjs"
|
|
19
|
+
"dist/esm"
|
|
21
20
|
],
|
|
22
21
|
"exports": {
|
|
23
22
|
".": {
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"types": "./dist/cjs/index.d.ts",
|
|
28
|
-
"default": "./dist/cjs/index.js"
|
|
29
|
-
},
|
|
30
|
-
"require": {
|
|
31
|
-
"types": "./dist/cjs/index.d.ts",
|
|
32
|
-
"default": "./dist/cjs/index.js"
|
|
33
|
-
},
|
|
34
|
-
"import": {
|
|
35
|
-
"types": "./dist/esm/index.d.ts",
|
|
36
|
-
"default": "./dist/esm/index.js"
|
|
37
|
-
},
|
|
38
|
-
"default": {
|
|
39
|
-
"types": "./dist/cjs/index.d.ts",
|
|
40
|
-
"default": "./dist/cjs/index.js"
|
|
41
|
-
}
|
|
23
|
+
"types": "./dist/esm/index.d.ts",
|
|
24
|
+
"import": "./dist/esm/index.js",
|
|
25
|
+
"default": "./dist/esm/index.js"
|
|
42
26
|
},
|
|
43
27
|
"./testing": {
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"types": "./dist/cjs/testing/index.d.ts",
|
|
48
|
-
"default": "./dist/cjs/testing/index.js"
|
|
49
|
-
},
|
|
50
|
-
"require": {
|
|
51
|
-
"types": "./dist/cjs/testing/index.d.ts",
|
|
52
|
-
"default": "./dist/cjs/testing/index.js"
|
|
53
|
-
},
|
|
54
|
-
"import": {
|
|
55
|
-
"types": "./dist/esm/testing/index.d.ts",
|
|
56
|
-
"default": "./dist/esm/testing/index.js"
|
|
57
|
-
},
|
|
58
|
-
"default": {
|
|
59
|
-
"types": "./dist/cjs/testing/index.d.ts",
|
|
60
|
-
"default": "./dist/cjs/testing/index.js"
|
|
61
|
-
}
|
|
28
|
+
"types": "./dist/esm/testing/index.d.ts",
|
|
29
|
+
"import": "./dist/esm/testing/index.js",
|
|
30
|
+
"default": "./dist/esm/testing/index.js"
|
|
62
31
|
}
|
|
63
32
|
},
|
|
64
33
|
"typesVersions": {
|
|
65
34
|
"*": {
|
|
66
35
|
"testing": [
|
|
67
|
-
"./dist/
|
|
36
|
+
"./dist/esm/testing/index.d.ts",
|
|
68
37
|
"./dist/esm/testing/index.d.ts"
|
|
69
38
|
],
|
|
70
39
|
"*": [
|
|
71
|
-
"./dist/
|
|
40
|
+
"./dist/esm/index.d.ts",
|
|
72
41
|
"./dist/esm/index.d.ts"
|
|
73
42
|
]
|
|
74
43
|
}
|
|
75
44
|
},
|
|
76
45
|
"scripts": {
|
|
77
|
-
"test": "jest --config
|
|
78
|
-
"build:cjs": "tsc -p ./tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
46
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --config ./jest.config.ts __tests__/*.ts",
|
|
79
47
|
"build:esm": "tsc -p ./tsconfig.esm.json",
|
|
80
|
-
"build": "npm run build:esm
|
|
48
|
+
"build": "npm run build:esm",
|
|
81
49
|
"rebuild": "npm run clean && npm run build",
|
|
82
50
|
"clean": "rm -rf ./dist && rm -rf ./.turbo",
|
|
83
51
|
"lint": "npm run prettier && eslint --fix ./src --ext .ts",
|
|
@@ -86,7 +54,7 @@
|
|
|
86
54
|
"dependencies": {
|
|
87
55
|
"@noble/hashes": "^1.3.1",
|
|
88
56
|
"@noble/curves": "^1.4.0",
|
|
89
|
-
"@wormhole-foundation/sdk-base": "
|
|
57
|
+
"@wormhole-foundation/sdk-base": "5.0.0-beta.0"
|
|
90
58
|
},
|
|
91
59
|
"type": "module"
|
|
92
60
|
}
|
package/dist/cjs/address.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Chain, ChainToPlatform, Platform } from "@wormhole-foundation/sdk-base";
|
|
2
|
-
import type { WormholeRegistry } from "./registry.js";
|
|
3
|
-
import { UniversalAddress } from "./universalAddress.js";
|
|
4
|
-
/**
|
|
5
|
-
* Address is the base interface all address types must implement.
|
|
6
|
-
*
|
|
7
|
-
* Represents a parsed address
|
|
8
|
-
*/
|
|
9
|
-
export interface Address {
|
|
10
|
-
/**
|
|
11
|
-
* unwrap returns the underlying native address type, e.g.:
|
|
12
|
-
* a Uint8Array for UniversalAddress
|
|
13
|
-
* a checksum hex string string for EVM(ethers)
|
|
14
|
-
* a PublicKey for Solana
|
|
15
|
-
* etc.
|
|
16
|
-
*/
|
|
17
|
-
unwrap(): unknown;
|
|
18
|
-
/** Return the address in its canonical string format */
|
|
19
|
-
toString(): string;
|
|
20
|
-
/** Return the bytes for the address */
|
|
21
|
-
toUint8Array(): Uint8Array;
|
|
22
|
-
/** Return an Address that has been converted to its Universal representation */
|
|
23
|
-
toUniversalAddress(): UniversalAddress;
|
|
24
|
-
}
|
|
25
|
-
export interface ChainSpecificAddress extends Address {
|
|
26
|
-
setChain(chain: Chain): void;
|
|
27
|
-
}
|
|
28
|
-
export declare function isChainSpecificAddress(thing: any): thing is ChainSpecificAddress;
|
|
29
|
-
export type MappedPlatforms = keyof WormholeRegistry.PlatformToNativeAddressMapping;
|
|
30
|
-
/** Utility type to map platform to its native address implementation */
|
|
31
|
-
type GetNativeAddress<P extends Platform> = P extends MappedPlatforms ? WormholeRegistry.PlatformToNativeAddressMapping[P] : never;
|
|
32
|
-
export type NativeAddressCtr = new (ua: UniversalAddress | string | Uint8Array) => Address;
|
|
33
|
-
/** An address that has been parsed into its Native Address type */
|
|
34
|
-
export type NativeAddress<C extends Chain> = GetNativeAddress<ChainToPlatform<C>>;
|
|
35
|
-
/** A union type representing a parsed address */
|
|
36
|
-
export type UniversalOrNative<C extends Chain> = UniversalAddress | NativeAddress<C>;
|
|
37
|
-
/** An address that represents an account */
|
|
38
|
-
export type AccountAddress<C extends Chain> = UniversalOrNative<C>;
|
|
39
|
-
/**
|
|
40
|
-
* ChainAddress represents the parsed address for a given chain
|
|
41
|
-
* and comes with the context of which chain its relevant for
|
|
42
|
-
*/
|
|
43
|
-
export type ChainAddress<C extends Chain = Chain> = {
|
|
44
|
-
readonly chain: C;
|
|
45
|
-
readonly address: UniversalOrNative<C>;
|
|
46
|
-
};
|
|
47
|
-
export declare function registerNative<P extends Platform>(platform: P, ctr: NativeAddressCtr): void;
|
|
48
|
-
export declare function nativeIsRegistered<C extends Chain>(chain: C): boolean;
|
|
49
|
-
/** Parse an address into its NativeAddress representation */
|
|
50
|
-
export declare function toNative<C extends Chain>(chain: C, ua: UniversalAddress | string | Uint8Array): NativeAddress<C>;
|
|
51
|
-
export declare function toUniversal<C extends Chain>(chain: C, address: string | Uint8Array): UniversalAddress;
|
|
52
|
-
export {};
|
|
53
|
-
//# sourceMappingURL=address.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
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A6C;AAC7C,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,KAAK,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,IAAI;IAClD,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC;CACxC,CAAC;AAIF,wBAAgB,cAAc,CAAC,CAAC,SAAS,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,gBAAgB,GAAG,IAAI,CAK3F;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,KAAK,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAGrE;AAED,6DAA6D;AAC7D,wBAAgB,QAAQ,CAAC,CAAC,SAAS,KAAK,EACtC,KAAK,EAAE,CAAC,EACR,EAAE,EAAE,gBAAgB,GAAG,MAAM,GAAG,UAAU,GACzC,aAAa,CAAC,CAAC,CAAC,CA6BlB;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,KAAK,EACzC,KAAK,EAAE,CAAC,EACR,OAAO,EAAE,MAAM,GAAG,UAAU,GAC3B,gBAAgB,CAGlB"}
|
package/dist/cjs/address.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toUniversal = exports.toNative = exports.nativeIsRegistered = exports.registerNative = exports.isChainSpecificAddress = void 0;
|
|
4
|
-
const sdk_base_1 = require("@wormhole-foundation/sdk-base");
|
|
5
|
-
//TODO BRRRR circular include!!
|
|
6
|
-
//I have yet to figure out how to get the equivalent of a forward declaration to work (without
|
|
7
|
-
// yet again having to rely on global scope...)
|
|
8
|
-
//I first tried `declare class UniversalAddress {};` but this actually introduces a new, separate
|
|
9
|
-
// type in this module rather than telling the compiler that we already have this type elsewhere
|
|
10
|
-
//I could also create an interface via `interface IUnverisalAddress {}` but that seems like an
|
|
11
|
-
// even worse solution, as is just throwing everything into this file here and just brushing
|
|
12
|
-
// things under the rug by not separating them out.
|
|
13
|
-
const universalAddress_js_1 = require("./universalAddress.js");
|
|
14
|
-
function isChainSpecificAddress(thing) {
|
|
15
|
-
return typeof thing === "object" && "setChain" in thing;
|
|
16
|
-
}
|
|
17
|
-
exports.isChainSpecificAddress = isChainSpecificAddress;
|
|
18
|
-
const nativeFactory = new Map();
|
|
19
|
-
function registerNative(platform, ctr) {
|
|
20
|
-
if (nativeFactory.has(platform))
|
|
21
|
-
return;
|
|
22
|
-
// TODO:
|
|
23
|
-
// throw new Error(`Native address type for platform ${platform} has already registered`);
|
|
24
|
-
nativeFactory.set(platform, ctr);
|
|
25
|
-
}
|
|
26
|
-
exports.registerNative = registerNative;
|
|
27
|
-
function nativeIsRegistered(chain) {
|
|
28
|
-
const platform = sdk_base_1.chainToPlatform.get(chain);
|
|
29
|
-
return nativeFactory.has(platform);
|
|
30
|
-
}
|
|
31
|
-
exports.nativeIsRegistered = nativeIsRegistered;
|
|
32
|
-
/** Parse an address into its NativeAddress representation */
|
|
33
|
-
function toNative(chain, ua) {
|
|
34
|
-
const platform = sdk_base_1.chainToPlatform.get(chain);
|
|
35
|
-
const nativeCtr = nativeFactory.get(platform);
|
|
36
|
-
if (!nativeCtr)
|
|
37
|
-
throw new Error(`No native address type registered for platform ${platform}, import the platform directly or, if using sdk package, import the addresses conditional export`);
|
|
38
|
-
try {
|
|
39
|
-
const nativeAddress = new nativeCtr(ua);
|
|
40
|
-
if (isChainSpecificAddress(nativeAddress)) {
|
|
41
|
-
// idk why but this typeguard doesnt actually work?
|
|
42
|
-
nativeAddress.setChain(chain);
|
|
43
|
-
}
|
|
44
|
-
return nativeAddress;
|
|
45
|
-
}
|
|
46
|
-
catch (e) {
|
|
47
|
-
const err = `Error parsing address as a native ${chain} address: ${e.message}`;
|
|
48
|
-
if (universalAddress_js_1.UniversalAddress.instanceof(ua)) {
|
|
49
|
-
throw err;
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
// If we were given a string or Uint8Array value, which is ambiguously either a
|
|
53
|
-
// NativeAddress or UniversalAddress, and it failed to parse directly
|
|
54
|
-
// as a NativeAddress, we try one more time to parse it as a UniversalAddress
|
|
55
|
-
// first and then convert that to a NativeAddress.
|
|
56
|
-
return (new universalAddress_js_1.UniversalAddress(ua)).toNative(chain);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
exports.toNative = toNative;
|
|
61
|
-
function toUniversal(chain, address) {
|
|
62
|
-
const platform = sdk_base_1.chainToPlatform.get(chain);
|
|
63
|
-
return new universalAddress_js_1.UniversalAddress(address, sdk_base_1.platformToAddressFormat.get(platform));
|
|
64
|
-
}
|
|
65
|
-
exports.toUniversal = toUniversal;
|
|
66
|
-
//# sourceMappingURL=address.js.map
|
package/dist/cjs/address.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/address.ts"],"names":[],"mappings":";;;AACA,4DAAyF;AAGzF,+BAA+B;AAC/B,8FAA8F;AAC9F,gDAAgD;AAChD,iGAAiG;AACjG,iGAAiG;AACjG,8FAA8F;AAC9F,6FAA6F;AAC7F,oDAAoD;AACpD,+DAAyD;AA2BzD,SAAgB,sBAAsB,CAAC,KAAU;IAC/C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,UAAU,IAAI,KAAK,CAAC;AAC1D,CAAC;AAFD,wDAEC;AA6BD,MAAM,aAAa,GAAG,IAAI,GAAG,EAA8B,CAAC;AAE5D,SAAgB,cAAc,CAAqB,QAAW,EAAE,GAAqB;IACnF,IAAI,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC;QAAE,OAAO;IACxC,QAAQ;IACR,0FAA0F;IAC1F,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AACnC,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CAAC,GAAG,CAAC,KAAK,CAAE,CAAC;IACvD,OAAO,IAAI,sCAAgB,CAAC,OAAO,EAAE,kCAAuB,CAAC,GAAG,CAAC,QAAQ,CAAE,CAAC,CAAC;AAC/E,CAAC;AAND,kCAMC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Chain } from "@wormhole-foundation/sdk-base";
|
|
2
|
-
import type { ProtocolName } from "./protocol.js";
|
|
3
|
-
import type { AutomaticCircleBridge, CircleBridge } from "./protocols/circleBridge/circleBridge.js";
|
|
4
|
-
import type { IbcTransferData } from "./protocols/ibc/ibc.js";
|
|
5
|
-
import type { PorticoBridge } from "./protocols/portico/portico.js";
|
|
6
|
-
import type { TBTCBridge } from "./protocols/tbtc/tbtc.js";
|
|
7
|
-
import type { AutomaticTokenBridge, TokenBridge, ExecutorTokenBridge } from "./protocols/tokenBridge/tokenBridge.js";
|
|
8
|
-
import type { SequenceId } from "./types.js";
|
|
9
|
-
import type { UniversalAddress } from "./universalAddress.js";
|
|
10
|
-
import type { VAA } from "./vaa/index.js";
|
|
11
|
-
/**
|
|
12
|
-
* The Identifier of an attestation, useful to look up the full attestation
|
|
13
|
-
*/
|
|
14
|
-
export type AttestationId<PN extends ProtocolName = ProtocolName> = PN extends "TokenBridge" | "AutomaticTokenBridge" | "ExecutorTokenBridge" | "WormholeCore" | "PorticoBridge" | "AutomaticCircleBridge" | "TBTCBridge" ? WormholeMessageId : PN extends "AutomaticCircleBridge" ? WormholeMessageId | CircleMessageId : PN extends "CircleBridge" ? CircleMessageId : PN extends "IbcBridge" ? IbcMessageId : any;
|
|
15
|
-
/**
|
|
16
|
-
* The full attestation that represents evidence of a transaction
|
|
17
|
-
*/
|
|
18
|
-
export type Attestation<PN extends ProtocolName = ProtocolName> = PN extends "TokenBridge" | "AutomaticTokenBridge" | "ExecutorTokenBridge" ? AutomaticTokenBridge.VAA | TokenBridge.VAA | ExecutorTokenBridge.VAA : PN extends "AutomaticCircleBridge" ? AutomaticCircleBridge.VAA | CircleBridge.Attestation : PN extends "CircleBridge" ? CircleBridge.Attestation : PN extends "IbcBridge" ? IbcTransferData : PN extends "WormholeCore" ? VAA<"Uint8Array"> : PN extends "PorticoBridge" ? PorticoBridge.VAA : PN extends "TBTCBridge" ? TBTCBridge.VAA : any;
|
|
19
|
-
/**
|
|
20
|
-
* Wormhole Message Identifier used to fetch a VAA
|
|
21
|
-
*/
|
|
22
|
-
export type WormholeMessageId = {
|
|
23
|
-
chain: Chain;
|
|
24
|
-
emitter: UniversalAddress;
|
|
25
|
-
sequence: SequenceId;
|
|
26
|
-
};
|
|
27
|
-
export declare function isWormholeMessageId(thing: WormholeMessageId | any): thing is WormholeMessageId;
|
|
28
|
-
export type getWormholeAttestation = (id: WormholeMessageId) => Promise<VAA>;
|
|
29
|
-
/**
|
|
30
|
-
* Circle Message Identifier
|
|
31
|
-
* Used to fetch a Circle attestation
|
|
32
|
-
*/
|
|
33
|
-
export type CircleMessageId = {
|
|
34
|
-
hash: string;
|
|
35
|
-
};
|
|
36
|
-
export declare function isCircleMessageId(thing: CircleMessageId | any): thing is CircleMessageId;
|
|
37
|
-
/** Attestation from circle attestation api */
|
|
38
|
-
export type CircleAttestation = string;
|
|
39
|
-
export type getCircleAttestation = (id: CircleMessageId) => Promise<CircleAttestation>;
|
|
40
|
-
/**
|
|
41
|
-
* Ibc Message Identifier
|
|
42
|
-
* Used to fetch a Ibc attestation
|
|
43
|
-
*/
|
|
44
|
-
export type IbcMessageId = {
|
|
45
|
-
chain: Chain;
|
|
46
|
-
srcPort: string;
|
|
47
|
-
srcChannel: string;
|
|
48
|
-
dstPort: string;
|
|
49
|
-
dstChannel: string;
|
|
50
|
-
sequence: number;
|
|
51
|
-
};
|
|
52
|
-
export declare function isIbcMessageId(thing: IbcMessageId | any): thing is IbcMessageId;
|
|
53
|
-
//# sourceMappingURL=attestation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attestation.d.ts","sourceRoot":"","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G,KAAK,IAAI,YAAY,CAS/E"}
|
package/dist/cjs/attestation.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isIbcMessageId = exports.isCircleMessageId = exports.isWormholeMessageId = void 0;
|
|
4
|
-
function isWormholeMessageId(thing) {
|
|
5
|
-
return (thing.sequence !== undefined &&
|
|
6
|
-
thing.emitter !== undefined &&
|
|
7
|
-
thing.chain !== undefined);
|
|
8
|
-
}
|
|
9
|
-
exports.isWormholeMessageId = isWormholeMessageId;
|
|
10
|
-
function isCircleMessageId(thing) {
|
|
11
|
-
return thing.hash !== undefined;
|
|
12
|
-
}
|
|
13
|
-
exports.isCircleMessageId = isCircleMessageId;
|
|
14
|
-
function isIbcMessageId(thing) {
|
|
15
|
-
return (thing.dstChannel !== undefined &&
|
|
16
|
-
thing.srcChannel !== undefined &&
|
|
17
|
-
thing.chain !== undefined &&
|
|
18
|
-
thing.srcPort !== undefined &&
|
|
19
|
-
thing.dstPort !== undefined &&
|
|
20
|
-
thing.sequence !== undefined);
|
|
21
|
-
}
|
|
22
|
-
exports.isIbcMessageId = isIbcMessageId;
|
|
23
|
-
//# sourceMappingURL=attestation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attestation.js","sourceRoot":"","sources":["../../src/attestation.ts"],"names":[],"mappings":";;;AAiEA,SAAgB,mBAAmB,CAAC,KAA8B;IAChE,OAAO,CACe,KAAM,CAAC,QAAQ,KAAK,SAAS;QAC7B,KAAM,CAAC,OAAO,KAAK,SAAS;QAC5B,KAAM,CAAC,KAAK,KAAK,SAAS,CAC/C,CAAC;AACJ,CAAC;AAND,kDAMC;AAWD,SAAgB,iBAAiB,CAAC,KAA4B;IAC5D,OAAyB,KAAM,CAAC,IAAI,KAAK,SAAS,CAAC;AACrD,CAAC;AAFD,8CAEC;AAmBD,SAAgB,cAAc,CAAC,KAAyB;IACtD,OAAO,CACU,KAAM,CAAC,UAAU,KAAK,SAAS;QAC/B,KAAM,CAAC,UAAU,KAAK,SAAS;QAC/B,KAAM,CAAC,KAAK,KAAK,SAAS;QAC1B,KAAM,CAAC,OAAO,KAAK,SAAS;QAC5B,KAAM,CAAC,OAAO,KAAK,SAAS;QAC5B,KAAM,CAAC,QAAQ,KAAK,SAAS,CAC7C,CAAC;AACJ,CAAC;AATD,wCASC"}
|
package/dist/cjs/chain.d.ts
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import type { Chain, ChainToPlatform, Network, Platform, Token, TokenSymbol } from "@wormhole-foundation/sdk-base";
|
|
2
|
-
import type { ChainAddress, UniversalOrNative } from "./address.js";
|
|
3
|
-
import type { WormholeMessageId } from "./attestation.js";
|
|
4
|
-
import type { AutomaticCircleBridge, CircleBridge, Contracts, IbcBridge, PorticoBridge, TBTCBridge, WormholeCore } from "./index.js";
|
|
5
|
-
import type { PlatformContext } from "./platform.js";
|
|
6
|
-
import type { ProtocolInstance, ProtocolInterface, ProtocolName } from "./protocol.js";
|
|
7
|
-
import type { AutomaticTokenBridge, TokenBridge, ExecutorTokenBridge } from "./protocols/tokenBridge/tokenBridge.js";
|
|
8
|
-
import type { RpcConnection } from "./rpc.js";
|
|
9
|
-
import type { ChainConfig, SignedTx, TokenAddress, TokenId } from "./types.js";
|
|
10
|
-
/**
|
|
11
|
-
* A ChainContext provides a consistent interface for interacting with a chain.
|
|
12
|
-
* It holds the configuration for the chain and cached RPC and protocol clients.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
export declare abstract class ChainContext<N extends Network, C extends Chain = Chain, P extends Platform = ChainToPlatform<C>> {
|
|
16
|
-
readonly network: N;
|
|
17
|
-
readonly chain: C;
|
|
18
|
-
readonly config: ChainConfig<N, C>;
|
|
19
|
-
readonly platform: PlatformContext<N, P>;
|
|
20
|
-
protected rpc?: RpcConnection<P>;
|
|
21
|
-
protected protocols: Map<ProtocolName, ProtocolInterface<ProtocolName, N, C>>;
|
|
22
|
-
constructor(chain: C, platform: PlatformContext<N, P>, rpc?: RpcConnection<P>);
|
|
23
|
-
/**
|
|
24
|
-
* Get an RPC connection for this chain, uses the configuration passed in
|
|
25
|
-
* the initial constructor
|
|
26
|
-
*
|
|
27
|
-
* @returns the RPC connection for this chain
|
|
28
|
-
*/
|
|
29
|
-
getRpc(): Promise<RpcConnection<P>>;
|
|
30
|
-
/**
|
|
31
|
-
* Get the number of decimals for a token
|
|
32
|
-
*
|
|
33
|
-
* @param token the token to get the decimals for
|
|
34
|
-
* @returns the number of decimals for the token
|
|
35
|
-
*/
|
|
36
|
-
getDecimals(token: TokenAddress<C>): Promise<number>;
|
|
37
|
-
/**
|
|
38
|
-
* Get the balance of a token for a given address
|
|
39
|
-
*
|
|
40
|
-
* @param walletAddr the address to get the balance for
|
|
41
|
-
* @param token the token to get the balance for
|
|
42
|
-
* @returns the balance of the token for the address
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
getBalance(walletAddr: string, token: TokenAddress<C>): Promise<bigint | null>;
|
|
46
|
-
/**
|
|
47
|
-
* Get the latest block number seen by the chain according to the RPC
|
|
48
|
-
*
|
|
49
|
-
* @returns the latest block number
|
|
50
|
-
*/
|
|
51
|
-
getLatestBlock(): Promise<number>;
|
|
52
|
-
/**
|
|
53
|
-
* Get the latest _finalized_ block number seen by the chain according to the RPC
|
|
54
|
-
*
|
|
55
|
-
* @returns the latest finalized block number
|
|
56
|
-
*/
|
|
57
|
-
getLatestFinalizedBlock(): Promise<number>;
|
|
58
|
-
/**
|
|
59
|
-
* Parse the Wormhole Core messages from a transaction
|
|
60
|
-
*
|
|
61
|
-
* @param txid the transaction to parse
|
|
62
|
-
* @returns the Wormhole Core messages emitted by the transaction
|
|
63
|
-
*/
|
|
64
|
-
parseTransaction(txid: string): Promise<WormholeMessageId[]>;
|
|
65
|
-
/**
|
|
66
|
-
* Send a transaction and wait for it to be confirmed
|
|
67
|
-
*
|
|
68
|
-
* @param stxns the signed transaction to send
|
|
69
|
-
* @returns the transaction hashes of the sent transactions
|
|
70
|
-
*/
|
|
71
|
-
sendWait(stxns: SignedTx[]): Promise<string[]>;
|
|
72
|
-
/**
|
|
73
|
-
* Get the token data from the local cache if available
|
|
74
|
-
* @param symbol the symbol of the token to get
|
|
75
|
-
* @returns the token data if available
|
|
76
|
-
*/
|
|
77
|
-
getToken(symbol: TokenSymbol): Token | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Get the token id of the wrapped token for the native gas token
|
|
80
|
-
*
|
|
81
|
-
* @returns the wrapped token for the native gas token
|
|
82
|
-
*/
|
|
83
|
-
getNativeWrappedTokenId(): Promise<TokenId<C>>;
|
|
84
|
-
/**
|
|
85
|
-
* Get the token account for a given address and token
|
|
86
|
-
*
|
|
87
|
-
* @remarks
|
|
88
|
-
* This is really only useful in the context of Solana but in order
|
|
89
|
-
* to provide a consistent interface, we provide it here.
|
|
90
|
-
*
|
|
91
|
-
* @param address the address to get the token account for
|
|
92
|
-
* @param token the token to get the token account for
|
|
93
|
-
* @returns the token account for the address and token
|
|
94
|
-
*/
|
|
95
|
-
getTokenAccount(address: UniversalOrNative<C>, token: TokenAddress<C>): Promise<ChainAddress<C>>;
|
|
96
|
-
/**
|
|
97
|
-
* Check if a token uses the Token2022 program
|
|
98
|
-
*
|
|
99
|
-
* @remarks
|
|
100
|
-
* This is really only useful in the context of Solana but in order
|
|
101
|
-
* to provide a consistent interface, we provide it here.
|
|
102
|
-
*
|
|
103
|
-
* @param token the token to check
|
|
104
|
-
* @returns true if the token uses the Token2022 program, false otherwise
|
|
105
|
-
*/
|
|
106
|
-
isToken2022(token: TokenAddress<C>): Promise<boolean>;
|
|
107
|
-
/**
|
|
108
|
-
* Check to see if a given protocol is supported by this chain
|
|
109
|
-
* by checking if it is registered in the platform and the configuration
|
|
110
|
-
* is available and correct
|
|
111
|
-
*
|
|
112
|
-
* @param protocolName the name of the Protocol to check for support
|
|
113
|
-
* @returns a boolean indicating if this protocol is supported
|
|
114
|
-
*/
|
|
115
|
-
supportsProtocol(protocolName: ProtocolName): boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Construct a protocol client for the given protocol
|
|
118
|
-
*
|
|
119
|
-
* Note: If no contracts are passed, we assume the default contracts should be used
|
|
120
|
-
* and that the protocol client is cacheable
|
|
121
|
-
*
|
|
122
|
-
* @param protocolName The name of the protocol to construct a client for
|
|
123
|
-
* @returns An instance of the protocol client that implements the protocol interface for the chain
|
|
124
|
-
*/
|
|
125
|
-
getProtocol<PN extends ProtocolName>(protocolName: PN, contracts?: Contracts, rpc?: RpcConnection<P>): Promise<ProtocolInstance<P, PN, N, C>>;
|
|
126
|
-
/**
|
|
127
|
-
* Check to see if the Wormhole Core protocol is supported by this chain
|
|
128
|
-
* @returns a boolean indicating if this chain supports the Wormhole Core protocol
|
|
129
|
-
*/
|
|
130
|
-
supportsWormholeCore: () => boolean;
|
|
131
|
-
/**
|
|
132
|
-
* Get the Wormhole Core protocol client for this chain
|
|
133
|
-
* @returns the Wormhole Core protocol client for this chain
|
|
134
|
-
*/
|
|
135
|
-
getWormholeCore: () => Promise<WormholeCore<N, C>>;
|
|
136
|
-
/**
|
|
137
|
-
* Check to see if the Token Bridge protocol is supported by this chain
|
|
138
|
-
* @returns a boolean indicating if this chain supports the Token Bridge protocol
|
|
139
|
-
*/
|
|
140
|
-
supportsTokenBridge: () => boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Get the Token Bridge protocol client for this chain
|
|
143
|
-
* @returns the Token Bridge protocol client for this chain
|
|
144
|
-
*/
|
|
145
|
-
getTokenBridge: () => Promise<TokenBridge<N, C>>;
|
|
146
|
-
/**
|
|
147
|
-
* Check to see if the Automatic Token Bridge protocol is supported by this chain
|
|
148
|
-
* @returns a boolean indicating if this chain supports the Automatic Token Bridge protocol
|
|
149
|
-
*/
|
|
150
|
-
supportsAutomaticTokenBridge: () => boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Get the Automatic Token Bridge protocol client for this chain
|
|
153
|
-
* @returns the Automatic Token Bridge protocol client for this chain
|
|
154
|
-
*/
|
|
155
|
-
getAutomaticTokenBridge: () => Promise<AutomaticTokenBridge<N, C>>;
|
|
156
|
-
/**
|
|
157
|
-
* Check to see if the Executor Token Bridge protocol is supported by this chain
|
|
158
|
-
* @returns a boolean indicating if this chain supports the Executor Token Bridge protocol
|
|
159
|
-
*/
|
|
160
|
-
supportsExecutorTokenBridge: () => boolean;
|
|
161
|
-
/**
|
|
162
|
-
* Get the Executor Token Bridge protocol client for this chain
|
|
163
|
-
* @returns the Executor Token Bridge protocol client for this chain
|
|
164
|
-
*/
|
|
165
|
-
getExecutorTokenBridge: () => Promise<ExecutorTokenBridge<N, C>>;
|
|
166
|
-
/**
|
|
167
|
-
* Check to see if the Circle Bridge protocol is supported by this chain
|
|
168
|
-
* @returns a boolean indicating if this chain supports the Circle Bridge protocol
|
|
169
|
-
*/
|
|
170
|
-
supportsCircleBridge: () => boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Get the Circle Bridge protocol client for this chain
|
|
173
|
-
* @returns the Circle Bridge protocol client for this chain
|
|
174
|
-
*/
|
|
175
|
-
getCircleBridge: () => Promise<CircleBridge<N, C>>;
|
|
176
|
-
/**
|
|
177
|
-
* Check to see if the Automatic Circle Bridge protocol is supported by this chain
|
|
178
|
-
* @returns a boolean indicating if this chain supports the Automatic Circle Bridge protocol
|
|
179
|
-
*/
|
|
180
|
-
supportsAutomaticCircleBridge: () => boolean;
|
|
181
|
-
/**
|
|
182
|
-
* Get the Automatic Circle Bridge protocol client for this chain
|
|
183
|
-
* @returns the Automatic Circle Bridge protocol client for this chain
|
|
184
|
-
*/
|
|
185
|
-
getAutomaticCircleBridge: () => Promise<AutomaticCircleBridge<N, C>>;
|
|
186
|
-
/**
|
|
187
|
-
* Check to see if the IBC Bridge protocol is supported by this chain
|
|
188
|
-
* @returns a boolean indicating if this chain supports the IBC Bridge protocol
|
|
189
|
-
*/
|
|
190
|
-
supportsIbcBridge: () => boolean;
|
|
191
|
-
/**
|
|
192
|
-
* Get the IBC Bridge protocol client for this chain
|
|
193
|
-
* @returns the IBC Bridge protocol client for this chain
|
|
194
|
-
*/
|
|
195
|
-
getIbcBridge: () => Promise<IbcBridge<N, C>>;
|
|
196
|
-
/**
|
|
197
|
-
* Check to see if the Portico Bridge protocol is supported by this chain
|
|
198
|
-
* @returns a boolean indicating if this chain supports the Portico Bridge protocol
|
|
199
|
-
*/
|
|
200
|
-
supportsPorticoBridge: () => boolean;
|
|
201
|
-
/**
|
|
202
|
-
* Get the Portico Bridge protocol client for this chain
|
|
203
|
-
* @returns the Portico Bridge protocol client for this chain
|
|
204
|
-
*/
|
|
205
|
-
getPorticoBridge: () => Promise<PorticoBridge<N, C>>;
|
|
206
|
-
/**
|
|
207
|
-
* Check to see if the TBTC Bridge protocol is supported by this chain
|
|
208
|
-
* @returns a boolean indicating if this chain supports the TBTC Bridge protocol
|
|
209
|
-
*/
|
|
210
|
-
supportsTBTCBridge: () => boolean;
|
|
211
|
-
/**
|
|
212
|
-
* Get the TBTC Bridge protocol client for this chain
|
|
213
|
-
* @returns the TBTC Bridge protocol client for this chain
|
|
214
|
-
*/
|
|
215
|
-
getTBTCBridge: () => Promise<TBTCBridge<N, C>>;
|
|
216
|
-
}
|
|
217
|
-
//# sourceMappingURL=chain.d.ts.map
|
package/dist/cjs/chain.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../src/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,eAAe,EACf,OAAO,EACP,QAAQ,EACR,KAAK,EACL,WAAW,EACZ,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EACV,qBAAqB,E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