@bluefin-exchange/bluefin-v2-client
Version:
The Bluefin client Library allows traders to sign, create, retrieve and listen to orders on Bluefin Exchange.
85 lines • 4.63 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OffchainOrderUpdateAction = exports.Errors = exports.USER_REJECTED_MESSAGE = exports.POST_ORDER_BASE = exports.SUI_NETWROK = exports.Networks = void 0;
exports.Networks = {
DEVNET_SUI: {
name: "devnet",
url: "https://fullnode.testnet.sui.io:443",
apiGateway: "https://dapi.api.sui-dev.bluefin.io",
dmsURL: "https://dapi.api.sui-dev.bluefin.io/dead-man-switch",
vaultURL: "https://vault.api.sui-dev.bluefin.io",
socketURL: "wss://dapi.api.sui-dev.bluefin.io",
webSocketURL: "wss://notifications.api.sui-dev.bluefin.io",
onboardingUrl: "https://devnet.bluefin.io",
faucet: "https://faucet.devnet.sui.io",
UUID: "",
},
TESTNET_SUI: {
name: "testnet",
url: "https://fullnode.testnet.sui.io:443",
apiGateway: "https://dapi.api.sui-staging.bluefin.io",
dmsURL: "https://dapi.api.sui-staging.bluefin.io/dead-man-switch",
vaultURL: "https://vault.api.sui-staging.bluefin.io",
socketURL: "wss://dapi.api.sui-staging.bluefin.io",
webSocketURL: "wss://notifications.api.sui-staging.bluefin.io",
onboardingUrl: "https://testnet.bluefin.io",
faucet: "https://faucet.devnet.sui.io",
UUID: "",
},
PRODUCTION_SUI: {
name: "production",
url: "https://fullnode.mainnet.sui.io:443",
apiGateway: "https://dapi.api.sui-prod.bluefin.io",
socketURL: "wss://dapi.api.sui-prod.bluefin.io",
dmsURL: "https://dapi.api.sui-prod.bluefin.io/dead-man-switch",
vaultURL: "https://vault.api.sui-prod.bluefin.io",
webSocketURL: "wss://notifications.api.sui-prod.bluefin.io",
onboardingUrl: "https://trade-sui.bluefin.exchange",
faucet: "does not exist",
UUID: "",
},
PRODUCTION_SUI_INTERNAL: {
name: "production",
url: "https://fullnode.mainnet.sui.io:443",
apiGateway: "https://dapi.api.sui-prod.int.bluefin.io",
socketURL: "wss://dapi.api.sui-prod.int.bluefin.io",
dmsURL: "https://dapi.api.sui-prod.int.bluefin.io/dead-man-switch",
vaultURL: "https://vault.api.sui-prod.int.bluefin.io",
webSocketURL: "wss://notifications.api.sui-prod.int.bluefin.io",
onboardingUrl: "https://trade-sui.bluefin.exchange",
faucet: "does not exist",
UUID: "",
},
};
exports.SUI_NETWROK = "sui";
exports.POST_ORDER_BASE = 18;
exports.USER_REJECTED_MESSAGE = "Rejected from user";
var Errors;
(function (Errors) {
Errors["WALLET_PAYLOAD_SIGNING_FAILED"] = "WALLET_SIGNING_FAILED";
Errors["ZK_PAYLOAD_SIGNING_FAILED"] = "ZK_SIGNING_FAILED";
Errors["KEYPAIR_PAYLOAD_SIGNING_FAILED"] = "KEYPAIR_SIGNING_FAILED";
Errors["WALLET_TRANSACTION_SIGNING_FAILED"] = "WALLET_TRANSACTION_SIGNING_FAILED";
Errors["ZK_TRANSACTION_SIGNING_FAILED"] = "ZK_TRANSACTION_SIGNING_FAILED";
Errors["KEYPAIR_TRANSACTION_SIGNING_FAILED"] = "KEYPAIR_TRANSACTION_SIGNING_FAILED";
Errors["EXECUTE_TRANSACTION_FAILED"] = "EXECUTE_TRANSACTION_FAILED";
Errors["EXECUTE_SPONSORED_TRANSACTION_FAILED"] = "EXECUTE_SPONSORED_TRANSACTION_FAILED";
Errors["BUILD_GASLESS_PAYLOAD_TX_PAYLOAD_BYTES_FAILED"] = "BUILD_GASLESS_PAYLOAD_TX_PAYLOAD_BYTES_FAILED";
Errors["DAPI_ERROR"] = "DAPI_ERROR";
Errors["SIGN_UPSERT_SUB_ACCOUNT_CONTRACT_CALLED_FAILED"] = "SIGN_UPSERT_SUB_ACCOUNT_CONTRACT_CALLED_FAILED";
Errors["DEPOSIT_TO_BANK_CONTRACT_CALL_FAILED"] = "DEPOSIT_TO_BANK_CONTRACT_CALL_FAILED";
Errors["FAILED_TO_FETCH_USDC_COIN_HAVING_BALANCE"] = "FAILED_TO_FETCH_USDC_COIN_HAVING_BALANCE";
Errors["FAILED_TO_FETCH_USDC_COINS"] = "FAILED_TO_FETCH_USDC_COINS";
Errors["FAILED_TO_MERGE_USDC_COINS"] = "FAILED_TO_MERGE_USDC_COINS";
Errors["FAILED_TO_INITIALIZE_CLIENT"] = "FAILED_TO_INITIALIZE_CLIENT";
Errors["FAILED_TO_INITIALIZE_CLIENT_FOR_UI_WALLET"] = "FAILED_TO_INITIALIZE_CLIENT_FOR_UI_WALLET";
Errors["FAILED_TO_INITIALIZE_CLIENT_FOR_ZK_ACCOUNT"] = "FAILED_TO_INITIALIZE_CLIENT_FOR_ZK_ACCOUNT";
Errors["UNKNOWN"] = "UNKNOWN";
})(Errors || (exports.Errors = Errors = {}));
var OffchainOrderUpdateAction;
(function (OffchainOrderUpdateAction) {
OffchainOrderUpdateAction["sentForSettlement"] = "SENT_FOR_SETTLEMENT";
OffchainOrderUpdateAction["orderRequeued"] = "REQUEUING_ORDER";
OffchainOrderUpdateAction["orderCancelledOnReversion"] = "CANCELLING_ORDER";
})(OffchainOrderUpdateAction || (exports.OffchainOrderUpdateAction = OffchainOrderUpdateAction = {}));
//# sourceMappingURL=constants.js.map