@avalabs/bridge-unified 4.4.1 → 4.5.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/README.md +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/dist/index.d.cts
CHANGED
|
@@ -183,23 +183,23 @@ declare enum ErrorCode {
|
|
|
183
183
|
NOTARIZATION_FAILED = 5006
|
|
184
184
|
}
|
|
185
185
|
declare enum ErrorReason {
|
|
186
|
-
ASSET_NOT_SUPPORTED = "ASSET_NOT_SUPPORTED"
|
|
187
|
-
CHAIN_NOT_SUPPORTED = "CHAIN_NOT_SUPPORTED"
|
|
188
|
-
CONFIG_NOT_AVAILABLE = "CONFIG_NOT_AVAILABLE"
|
|
189
|
-
CONFIRMATION_COUNT_UNKNOWN = "CONFIRMATION_COUNT_UNKNOWN"
|
|
190
|
-
ENVIRONMENT_NOT_SUPPORTED = "ENVIRONMENT_NOT_SUPPORTED"
|
|
191
|
-
IDENTICAL_CHAINS_PROVIDED = "IDENTICAL_CHAINS_PROVIDED"
|
|
192
|
-
INCORRECT_ADDRESS_PROVIDED = "INCORRECT_ADDRESS_PROVIDED"
|
|
193
|
-
INCORRECT_AMOUNT_PROVIDED = "INCORRECT_AMOUNT_PROVIDED"
|
|
194
|
-
INCORRECT_HASH_PROVIDED = "INCORRECT_HASH_PROVIDED"
|
|
195
|
-
INCORRECT_PROVIDER_PROVIDED = "INCORRECT_PROVIDER_PROVIDED"
|
|
196
|
-
INCORRECT_SIGNER_PROVIDED = "INCORRECT_SIGNER_PROVIDED"
|
|
197
|
-
INCORRECT_TXHASH_PROVIDED = "INCORRECT_TXHASH_PROVIDED"
|
|
198
|
-
INVALID_PARAMS = "INVALID_PARAMS"
|
|
199
|
-
UNKNOWN = "UNKNOWN",
|
|
200
|
-
VULNERABLE_TOKEN_APPROVAL_ADDRESS = "VULNERABLE_TOKEN_APPROVAL_ADDRESS"
|
|
201
|
-
WARDEN_CONFIG_MISMATCH = "WARDEN_CONFIG_MISMATCH"
|
|
202
|
-
WARDEN_CONFIG_MISSING_NETWORK = "WARDEN_CONFIG_MISSING_NETWORK"
|
|
186
|
+
ASSET_NOT_SUPPORTED = "ASSET_NOT_SUPPORTED",// the provided asset is not supported by the bridge
|
|
187
|
+
CHAIN_NOT_SUPPORTED = "CHAIN_NOT_SUPPORTED",// the provided source or target chain is not supported by the bridge
|
|
188
|
+
CONFIG_NOT_AVAILABLE = "CONFIG_NOT_AVAILABLE",// error while fetching or parsing the config
|
|
189
|
+
CONFIRMATION_COUNT_UNKNOWN = "CONFIRMATION_COUNT_UNKNOWN",// required confirmation count of the source or target chain is unknown
|
|
190
|
+
ENVIRONMENT_NOT_SUPPORTED = "ENVIRONMENT_NOT_SUPPORTED",// bridge does not support specified environment
|
|
191
|
+
IDENTICAL_CHAINS_PROVIDED = "IDENTICAL_CHAINS_PROVIDED",// provided source and target chains are the same
|
|
192
|
+
INCORRECT_ADDRESS_PROVIDED = "INCORRECT_ADDRESS_PROVIDED",// the sender or recipient address is incorrect
|
|
193
|
+
INCORRECT_AMOUNT_PROVIDED = "INCORRECT_AMOUNT_PROVIDED",// the transfer amount is incorrect (e.g.: lesser than or equal to zero)
|
|
194
|
+
INCORRECT_HASH_PROVIDED = "INCORRECT_HASH_PROVIDED",// the transaction is not hex
|
|
195
|
+
INCORRECT_PROVIDER_PROVIDED = "INCORRECT_PROVIDER_PROVIDED",// The provided provider is incorrect type (Provider VS BitcoinProvider)
|
|
196
|
+
INCORRECT_SIGNER_PROVIDED = "INCORRECT_SIGNER_PROVIDED",// The provided signer is incorrect type
|
|
197
|
+
INCORRECT_TXHASH_PROVIDED = "INCORRECT_TXHASH_PROVIDED",// the sourceTxHash or targetTxHash is incorrect
|
|
198
|
+
INVALID_PARAMS = "INVALID_PARAMS",// generic error with the params
|
|
199
|
+
UNKNOWN = "UNKNOWN",// generic, not specified error
|
|
200
|
+
VULNERABLE_TOKEN_APPROVAL_ADDRESS = "VULNERABLE_TOKEN_APPROVAL_ADDRESS",// error when the address has token approvals for addresses involved in the multichain incident
|
|
201
|
+
WARDEN_CONFIG_MISMATCH = "WARDEN_CONFIG_MISMATCH",// error when warden config was not found or it is over the mismatch threshold
|
|
202
|
+
WARDEN_CONFIG_MISSING_NETWORK = "WARDEN_CONFIG_MISSING_NETWORK",// fetched warden config does not contain network IDs
|
|
203
203
|
ADDRESS_IS_BLOCKED = "ADDRESS_IS_BLOCKED"
|
|
204
204
|
}
|
|
205
205
|
|
package/dist/index.d.ts
CHANGED
|
@@ -183,23 +183,23 @@ declare enum ErrorCode {
|
|
|
183
183
|
NOTARIZATION_FAILED = 5006
|
|
184
184
|
}
|
|
185
185
|
declare enum ErrorReason {
|
|
186
|
-
ASSET_NOT_SUPPORTED = "ASSET_NOT_SUPPORTED"
|
|
187
|
-
CHAIN_NOT_SUPPORTED = "CHAIN_NOT_SUPPORTED"
|
|
188
|
-
CONFIG_NOT_AVAILABLE = "CONFIG_NOT_AVAILABLE"
|
|
189
|
-
CONFIRMATION_COUNT_UNKNOWN = "CONFIRMATION_COUNT_UNKNOWN"
|
|
190
|
-
ENVIRONMENT_NOT_SUPPORTED = "ENVIRONMENT_NOT_SUPPORTED"
|
|
191
|
-
IDENTICAL_CHAINS_PROVIDED = "IDENTICAL_CHAINS_PROVIDED"
|
|
192
|
-
INCORRECT_ADDRESS_PROVIDED = "INCORRECT_ADDRESS_PROVIDED"
|
|
193
|
-
INCORRECT_AMOUNT_PROVIDED = "INCORRECT_AMOUNT_PROVIDED"
|
|
194
|
-
INCORRECT_HASH_PROVIDED = "INCORRECT_HASH_PROVIDED"
|
|
195
|
-
INCORRECT_PROVIDER_PROVIDED = "INCORRECT_PROVIDER_PROVIDED"
|
|
196
|
-
INCORRECT_SIGNER_PROVIDED = "INCORRECT_SIGNER_PROVIDED"
|
|
197
|
-
INCORRECT_TXHASH_PROVIDED = "INCORRECT_TXHASH_PROVIDED"
|
|
198
|
-
INVALID_PARAMS = "INVALID_PARAMS"
|
|
199
|
-
UNKNOWN = "UNKNOWN",
|
|
200
|
-
VULNERABLE_TOKEN_APPROVAL_ADDRESS = "VULNERABLE_TOKEN_APPROVAL_ADDRESS"
|
|
201
|
-
WARDEN_CONFIG_MISMATCH = "WARDEN_CONFIG_MISMATCH"
|
|
202
|
-
WARDEN_CONFIG_MISSING_NETWORK = "WARDEN_CONFIG_MISSING_NETWORK"
|
|
186
|
+
ASSET_NOT_SUPPORTED = "ASSET_NOT_SUPPORTED",// the provided asset is not supported by the bridge
|
|
187
|
+
CHAIN_NOT_SUPPORTED = "CHAIN_NOT_SUPPORTED",// the provided source or target chain is not supported by the bridge
|
|
188
|
+
CONFIG_NOT_AVAILABLE = "CONFIG_NOT_AVAILABLE",// error while fetching or parsing the config
|
|
189
|
+
CONFIRMATION_COUNT_UNKNOWN = "CONFIRMATION_COUNT_UNKNOWN",// required confirmation count of the source or target chain is unknown
|
|
190
|
+
ENVIRONMENT_NOT_SUPPORTED = "ENVIRONMENT_NOT_SUPPORTED",// bridge does not support specified environment
|
|
191
|
+
IDENTICAL_CHAINS_PROVIDED = "IDENTICAL_CHAINS_PROVIDED",// provided source and target chains are the same
|
|
192
|
+
INCORRECT_ADDRESS_PROVIDED = "INCORRECT_ADDRESS_PROVIDED",// the sender or recipient address is incorrect
|
|
193
|
+
INCORRECT_AMOUNT_PROVIDED = "INCORRECT_AMOUNT_PROVIDED",// the transfer amount is incorrect (e.g.: lesser than or equal to zero)
|
|
194
|
+
INCORRECT_HASH_PROVIDED = "INCORRECT_HASH_PROVIDED",// the transaction is not hex
|
|
195
|
+
INCORRECT_PROVIDER_PROVIDED = "INCORRECT_PROVIDER_PROVIDED",// The provided provider is incorrect type (Provider VS BitcoinProvider)
|
|
196
|
+
INCORRECT_SIGNER_PROVIDED = "INCORRECT_SIGNER_PROVIDED",// The provided signer is incorrect type
|
|
197
|
+
INCORRECT_TXHASH_PROVIDED = "INCORRECT_TXHASH_PROVIDED",// the sourceTxHash or targetTxHash is incorrect
|
|
198
|
+
INVALID_PARAMS = "INVALID_PARAMS",// generic error with the params
|
|
199
|
+
UNKNOWN = "UNKNOWN",// generic, not specified error
|
|
200
|
+
VULNERABLE_TOKEN_APPROVAL_ADDRESS = "VULNERABLE_TOKEN_APPROVAL_ADDRESS",// error when the address has token approvals for addresses involved in the multichain incident
|
|
201
|
+
WARDEN_CONFIG_MISMATCH = "WARDEN_CONFIG_MISMATCH",// error when warden config was not found or it is over the mismatch threshold
|
|
202
|
+
WARDEN_CONFIG_MISSING_NETWORK = "WARDEN_CONFIG_MISSING_NETWORK",// fetched warden config does not contain network IDs
|
|
203
203
|
ADDRESS_IS_BLOCKED = "ADDRESS_IS_BLOCKED"
|
|
204
204
|
}
|
|
205
205
|
|