@debridge-finance/solana-contracts-client
Version:
[Docs](docs/README.md)
592 lines (322 loc) • 15.8 kB
Markdown
[@debridge-finance/solana-client](../README.md) / [Exports](../modules.md) / constants
# Namespace: constants
## Table of contents
### Variables
- [BPS\_DENOMINATOR](constants.md#bps_denominator)
- [BRIDGED\_EVENT](constants.md#bridged_event)
- [BRIDGE\_FEE\_INFO\_INITIALIZED\_EVENT](constants.md#bridge_fee_info_initialized_event)
- [BRIDGE\_FEE\_INFO\_SEED](constants.md#bridge_fee_info_seed)
- [BRIDGE\_MAX\_AMOUNT\_SETTED\_EVENT](constants.md#bridge_max_amount_setted_event)
- [BRIDGE\_MINTER\_SEED](constants.md#bridge_minter_seed)
- [BRIDGE\_MIN\_RESERVED\_BPS\_SETTED\_EVENT](constants.md#bridge_min_reserved_bps_setted_event)
- [BRIDGE\_PAUSED](constants.md#bridge_paused)
- [BRIDGE\_SEED](constants.md#bridge_seed)
- [BRIDGE\_WORKING](constants.md#bridge_working)
- [BRIDGE\_WORK\_TOGGLED\_EVENT](constants.md#bridge_work_toggled_event)
- [CHAIN\_SUPPORT\_INFO\_SEED](constants.md#chain_support_info_seed)
- [CLAIM\_MARKER\_SEED](constants.md#claim_marker_seed)
- [CUSTOM\_ASSOCIATED\_TOKEN\_PROGRAM\_ID](constants.md#custom_associated_token_program_id)
- [DISCOUNT\_INFO\_INITIALIZED\_EVENT](constants.md#discount_info_initialized_event)
- [DISCOUNT\_INFO\_SEED](constants.md#discount_info_seed)
- [EXTERNAL\_CALL\_META\_SEED](constants.md#external_call_meta_seed)
- [EXTERNAL\_CALL\_STORAGE\_SEED](constants.md#external_call_storage_seed)
- [EXT\_CALL\_STORAGE\_OFFSET](constants.md#ext_call_storage_offset)
- [LOG\_EVENT](constants.md#log_event)
- [MAX\_TX\_SIZE](constants.md#max_tx_size)
- [MINT\_BRIDGE\_CREATED\_EVENT](constants.md#mint_bridge_created_event)
- [NONCE\_SEED](constants.md#nonce_seed)
- [NO\_DISCOUNT\_SEED](constants.md#no_discount_seed)
- [ORACLES\_MAX\_SIZE](constants.md#oracles_max_size)
- [ORACLE\_ADDED\_EVENT](constants.md#oracle_added_event)
- [ORACLE\_ADDRESS\_LENGTH](constants.md#oracle_address_length)
- [ORACLE\_KEYS\_SEED](constants.md#oracle_keys_seed)
- [ORACLE\_REMOVED\_EVENT](constants.md#oracle_removed_event)
- [ORIGINAL\_ASSOCIATED\_TOKEN\_PROGRAM\_ID](constants.md#original_associated_token_program_id)
- [PROGRAM\_NAME](constants.md#program_name)
- [PROXY\_WITH\_SENDER](constants.md#proxy_with_sender)
- [REQUIRED\_ORACLES\_MAX\_SIZE](constants.md#required_oracles_max_size)
- [REVERT\_IF\_EXTERNAL\_FAIL](constants.md#revert_if_external_fail)
- [SEND\_BRIDGE\_CREATED\_EVENT](constants.md#send_bridge_created_event)
- [SEND\_BRIDGE\_MAP\_SEED](constants.md#send_bridge_map_seed)
- [SEND\_HASHED\_DATA](constants.md#send_hashed_data)
- [SEND\_TO\_ATA](constants.md#send_to_ata)
- [SETTINGS\_PROGRAM\_NAME](constants.md#settings_program_name)
- [SOLANA\_CHAIN\_ID](constants.md#solana_chain_id)
- [STATE\_INITIALIZED\_EVENT](constants.md#state_initialized_event)
- [STATE\_SEED](constants.md#state_seed)
- [STATE\_UPDATED\_EVENT](constants.md#state_updated_event)
- [SUBMISSION\_AUTH\_SEED](constants.md#submission_auth_seed)
- [SUBMISSION\_PREFIX](constants.md#submission_prefix)
- [SUBMISSION\_SEED](constants.md#submission_seed)
- [SUPPORT\_CHAIN\_INFO\_INITIALIZED\_EVENT](constants.md#support_chain_info_initialized_event)
- [TOKEN\_METADATA\_PROGRAM\_ID](constants.md#token_metadata_program_id)
- [TOKEN\_PROGRAM\_ID](constants.md#token_program_id)
- [TRANSFERRED\_EVENT](constants.md#transferred_event)
- [UNWRAP\_ETH](constants.md#unwrap_eth)
- [WRAPPED\_SOL\_MINT](constants.md#wrapped_sol_mint)
- [WRAPPER\_TOKEN\_SEED](constants.md#wrapper_token_seed)
## Variables
### BPS\_DENOMINATOR
• `Const` **BPS\_DENOMINATOR**: ``10000``
#### Defined in
[constants.ts:57](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L57)
___
### BRIDGED\_EVENT
• `Const` **BRIDGED\_EVENT**: ``"Bridged"``
#### Defined in
[constants.ts:33](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L33)
___
### BRIDGE\_FEE\_INFO\_INITIALIZED\_EVENT
• `Const` **BRIDGE\_FEE\_INFO\_INITIALIZED\_EVENT**: ``"BridgeFeeInfoInitialized"``
#### Defined in
[constants.ts:39](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L39)
___
### BRIDGE\_FEE\_INFO\_SEED
• `Const` **BRIDGE\_FEE\_INFO\_SEED**: ``"BRIDGE_FEE_INFO"``
#### Defined in
[constants.ts:14](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L14)
___
### BRIDGE\_MAX\_AMOUNT\_SETTED\_EVENT
• `Const` **BRIDGE\_MAX\_AMOUNT\_SETTED\_EVENT**: ``"BridgeMaxAmountSetted"``
#### Defined in
[constants.ts:35](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L35)
___
### BRIDGE\_MINTER\_SEED
• `Const` **BRIDGE\_MINTER\_SEED**: ``"BRIDGE_MINTER"``
#### Defined in
[constants.ts:12](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L12)
___
### BRIDGE\_MIN\_RESERVED\_BPS\_SETTED\_EVENT
• `Const` **BRIDGE\_MIN\_RESERVED\_BPS\_SETTED\_EVENT**: ``"BridgeMinReservedBpsSetted"``
#### Defined in
[constants.ts:36](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L36)
___
### BRIDGE\_PAUSED
• `Const` **BRIDGE\_PAUSED**: ``1``
#### Defined in
[constants.ts:55](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L55)
___
### BRIDGE\_SEED
• `Const` **BRIDGE\_SEED**: ``"BRIDGE"``
#### Defined in
[constants.ts:9](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L9)
___
### BRIDGE\_WORKING
• `Const` **BRIDGE\_WORKING**: ``0``
#### Defined in
[constants.ts:54](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L54)
___
### BRIDGE\_WORK\_TOGGLED\_EVENT
• `Const` **BRIDGE\_WORK\_TOGGLED\_EVENT**: ``"BridgeWorkToggled"``
#### Defined in
[constants.ts:37](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L37)
___
### CHAIN\_SUPPORT\_INFO\_SEED
• `Const` **CHAIN\_SUPPORT\_INFO\_SEED**: ``"CHAIN_SUPPORT_INFO"``
#### Defined in
[constants.ts:13](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L13)
___
### CLAIM\_MARKER\_SEED
• `Const` **CLAIM\_MARKER\_SEED**: ``"CLAIM_MARKER"``
#### Defined in
[constants.ts:23](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L23)
___
### CUSTOM\_ASSOCIATED\_TOKEN\_PROGRAM\_ID
• `Const` **CUSTOM\_ASSOCIATED\_TOKEN\_PROGRAM\_ID**: `PublicKey`
#### Defined in
[constants.ts:50](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L50)
___
### DISCOUNT\_INFO\_INITIALIZED\_EVENT
• `Const` **DISCOUNT\_INFO\_INITIALIZED\_EVENT**: ``"DiscountInitialized"``
#### Defined in
[constants.ts:40](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L40)
___
### DISCOUNT\_INFO\_SEED
• `Const` **DISCOUNT\_INFO\_SEED**: ``"DISCOUNT_INFO"``
#### Defined in
[constants.ts:15](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L15)
___
### EXTERNAL\_CALL\_META\_SEED
• `Const` **EXTERNAL\_CALL\_META\_SEED**: ``"EXTERNAL_CALL_META"``
#### Defined in
[constants.ts:18](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L18)
___
### EXTERNAL\_CALL\_STORAGE\_SEED
• `Const` **EXTERNAL\_CALL\_STORAGE\_SEED**: ``"EXTERNAL_CALL_STORAGE"``
#### Defined in
[constants.ts:17](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L17)
___
### EXT\_CALL\_STORAGE\_OFFSET
• `Const` **EXT\_CALL\_STORAGE\_OFFSET**: ``8``
#### Defined in
[constants.ts:68](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L68)
___
### LOG\_EVENT
• `Const` **LOG\_EVENT**: ``"Log"``
#### Defined in
[constants.ts:28](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L28)
___
### MAX\_TX\_SIZE
• `Const` **MAX\_TX\_SIZE**: ``1232``
#### Defined in
[constants.ts:43](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L43)
___
### MINT\_BRIDGE\_CREATED\_EVENT
• `Const` **MINT\_BRIDGE\_CREATED\_EVENT**: ``"MintBridgeCreated"``
#### Defined in
[constants.ts:31](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L31)
___
### NONCE\_SEED
• `Const` **NONCE\_SEED**: ``"NONCE"``
#### Defined in
[constants.ts:19](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L19)
___
### NO\_DISCOUNT\_SEED
• `Const` **NO\_DISCOUNT\_SEED**: ``"NO_DISCOUNT"``
#### Defined in
[constants.ts:22](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L22)
___
### ORACLES\_MAX\_SIZE
• `Const` **ORACLES\_MAX\_SIZE**: ``20``
#### Defined in
[constants.ts:45](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L45)
___
### ORACLE\_ADDED\_EVENT
• `Const` **ORACLE\_ADDED\_EVENT**: ``"OracleAdded"``
#### Defined in
[constants.ts:29](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L29)
___
### ORACLE\_ADDRESS\_LENGTH
• `Const` **ORACLE\_ADDRESS\_LENGTH**: ``20``
#### Defined in
[constants.ts:44](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L44)
___
### ORACLE\_KEYS\_SEED
• `Const` **ORACLE\_KEYS\_SEED**: ``"SIGNATURES"``
#### Defined in
[constants.ts:16](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L16)
___
### ORACLE\_REMOVED\_EVENT
• `Const` **ORACLE\_REMOVED\_EVENT**: ``"OracleRemoved"``
#### Defined in
[constants.ts:30](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L30)
___
### ORIGINAL\_ASSOCIATED\_TOKEN\_PROGRAM\_ID
• `Const` **ORIGINAL\_ASSOCIATED\_TOKEN\_PROGRAM\_ID**: `PublicKey`
#### Defined in
[constants.ts:51](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L51)
___
### PROGRAM\_NAME
• `Const` **PROGRAM\_NAME**: ``"DebridgeProgram"``
#### Defined in
[constants.ts:4](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L4)
___
### PROXY\_WITH\_SENDER
• `Const` **PROXY\_WITH\_SENDER**: ``4``
#### Defined in
[constants.ts:64](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L64)
___
### REQUIRED\_ORACLES\_MAX\_SIZE
• `Const` **REQUIRED\_ORACLES\_MAX\_SIZE**: ``10``
#### Defined in
[constants.ts:46](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L46)
___
### REVERT\_IF\_EXTERNAL\_FAIL
• `Const` **REVERT\_IF\_EXTERNAL\_FAIL**: ``2``
#### Defined in
[constants.ts:63](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L63)
___
### SEND\_BRIDGE\_CREATED\_EVENT
• `Const` **SEND\_BRIDGE\_CREATED\_EVENT**: ``"SendBridgeCreated"``
#### Defined in
[constants.ts:32](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L32)
___
### SEND\_BRIDGE\_MAP\_SEED
• `Const` **SEND\_BRIDGE\_MAP\_SEED**: ``"WRAPPER_TOKEN"``
#### Defined in
[constants.ts:11](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L11)
___
### SEND\_HASHED\_DATA
• `Const` **SEND\_HASHED\_DATA**: ``8``
#### Defined in
[constants.ts:65](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L65)
___
### SEND\_TO\_ATA
• `Const` **SEND\_TO\_ATA**: `number`
#### Defined in
[constants.ts:66](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L66)
___
### SETTINGS\_PROGRAM\_NAME
• `Const` **SETTINGS\_PROGRAM\_NAME**: ``"DebridgeSettingsProgram"``
#### Defined in
[constants.ts:5](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L5)
___
### SOLANA\_CHAIN\_ID
• `Const` **SOLANA\_CHAIN\_ID**: ``7565164``
#### Defined in
[constants.ts:59](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L59)
___
### STATE\_INITIALIZED\_EVENT
• `Const` **STATE\_INITIALIZED\_EVENT**: ``"StateInitialized"``
#### Defined in
[constants.ts:26](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L26)
___
### STATE\_SEED
• `Const` **STATE\_SEED**: ``"DEBRIDGE_STATE"``
#### Defined in
[constants.ts:8](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L8)
___
### STATE\_UPDATED\_EVENT
• `Const` **STATE\_UPDATED\_EVENT**: ``"StateUpdated"``
#### Defined in
[constants.ts:27](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L27)
___
### SUBMISSION\_AUTH\_SEED
• `Const` **SUBMISSION\_AUTH\_SEED**: ``"SUBMISSION_AUTH"``
#### Defined in
[constants.ts:21](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L21)
___
### SUBMISSION\_PREFIX
• `Const` **SUBMISSION\_PREFIX**: ``1``
#### Defined in
[constants.ts:60](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L60)
___
### SUBMISSION\_SEED
• `Const` **SUBMISSION\_SEED**: ``"SUBMISSION"``
#### Defined in
[constants.ts:20](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L20)
___
### SUPPORT\_CHAIN\_INFO\_INITIALIZED\_EVENT
• `Const` **SUPPORT\_CHAIN\_INFO\_INITIALIZED\_EVENT**: ``"SupportChainInfoInitialized"``
#### Defined in
[constants.ts:38](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L38)
___
### TOKEN\_METADATA\_PROGRAM\_ID
• `Const` **TOKEN\_METADATA\_PROGRAM\_ID**: `PublicKey`
#### Defined in
[constants.ts:48](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L48)
___
### TOKEN\_PROGRAM\_ID
• `Const` **TOKEN\_PROGRAM\_ID**: `PublicKey`
#### Defined in
[constants.ts:49](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L49)
___
### TRANSFERRED\_EVENT
• `Const` **TRANSFERRED\_EVENT**: ``"Transferred"``
#### Defined in
[constants.ts:34](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L34)
___
### UNWRAP\_ETH
• `Const` **UNWRAP\_ETH**: ``1``
#### Defined in
[constants.ts:62](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L62)
___
### WRAPPED\_SOL\_MINT
• `Const` **WRAPPED\_SOL\_MINT**: `PublicKey`
#### Defined in
[constants.ts:52](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L52)
___
### WRAPPER\_TOKEN\_SEED
• `Const` **WRAPPER\_TOKEN\_SEED**: ``"WRAPPER_TOKEN"``
#### Defined in
[constants.ts:10](https://github.com/debridge-finance/solana-contracts-client/blob/1b61583/src/constants.ts#L10)