@rhinestone/shared-configs 1.6.12 → 1.6.13

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.
@@ -1,20 +1,18 @@
1
1
  import { contractAddresses } from "./generated/contracts";
2
2
  import { contractAddresses as contractAddressesDev } from "./generated/contracts.dev";
3
- import type { ChainEntry, ChainItem, ChainList, ChainRegistry, ContractAddresses, ErpcChainOverride, ErpcConfig, ErpcFailsafe, ProviderName, ProviderRegistry, SettlementLayer, SupportedChain, SupportedMainnet, SupportedOPStackMainnet, SupportedOPStackTestnet, SupportedTestnet, SwapQuoter } from "./types";
4
- import { chains, MainnetNetwork, mainnetChains, OPStackChains, PEG_GROUPS, TestnetNetwork, testnetChains } from "./types";
5
- import type { PegGroup, VmType } from "./types";
6
- import { getLayerZeroEid, getOftAdapter, getOftConfig, getOftProgramId, getOftSupportedChains, getSupportedOftTokens, hasOftSupport, OFT_PROGRAM_IDS, OFT_REGISTRY } from "./oft";
3
+ import type { ChainEntry, ChainItem, ChainList, ChainRegistry, ProviderName, ProviderRegistry, SettlementLayer, SupportedChain, SupportedMainnet, SupportedOPStackMainnet, SupportedOPStackTestnet, SupportedTestnet, SwapQuoter } from "./types";
4
+ import { chains, MainnetNetwork, mainnetChains, OPStackChains, TestnetNetwork, testnetChains } from "./types";
5
+ import type { PegGroup } from "./types";
6
+ import { getOftConfig, getSupportedOftTokens, hasOftSupport, OFT_REGISTRY } from "./oft";
7
7
  import type { OftConfig } from "./oft";
8
- import { CORE_DEPOSIT_WALLET, CORE_WRITER_PRECOMPILE, coreDepositWalletAbi, getApproveCoreDepositWalletCall, getDepositForCall, HYPERCORE_CHAIN_ID, HYPERCORE_DEFAULT_PERP_DEX, HYPERCORE_SETTLEMENT_CHAIN_ID, HYPERCORE_SPOT_DEX, HYPERCORE_USDC_ACTIVATION_FEE, isHyperCoreChainId, resolveSettlementChainId } from "./hypercore";
9
- import type { HyperCoreExecution } from "./hypercore";
10
- import { chainIdFromCaip2, getCaip2, getNonEvmChainIds, getVmType, isNonEvmChainId } from "./chainVirtualization";
8
+ import { CORE_DEPOSIT_WALLET, CORE_WRITER_PRECOMPILE, getApproveCoreDepositWalletCall, getDepositForCall, HYPERCORE_CHAIN_ID, HYPERCORE_DEFAULT_PERP_DEX, HYPERCORE_SETTLEMENT_CHAIN_ID, HYPERCORE_SPOT_DEX, HYPERCORE_USDC_ACTIVATION_FEE, isHyperCoreChainId, resolveSettlementChainId } from "./hypercore";
9
+ import { chainIdFromCaip2, getCaip2, getNonEvmChainIds, isNonEvmChainId } from "./chainVirtualization";
11
10
  declare const chainRegistry: ChainRegistry;
12
- declare const erpcConfig: ErpcConfig;
13
11
  declare const providerRegistry: ProviderRegistry;
14
12
  declare const mainnetChainList: ChainList;
15
13
  declare const testnetChainList: ChainList;
16
14
  declare function chainHasUnpricedTokens(chainId: number): boolean;
17
- export { chainRegistry, erpcConfig, providerRegistry, mainnetChainList, testnetChainList, contractAddresses, contractAddressesDev, chains, mainnetChains, testnetChains, MainnetNetwork, OPStackChains, TestnetNetwork, OFT_REGISTRY, OFT_PROGRAM_IDS, getOftConfig, hasOftSupport, getSupportedOftTokens, getLayerZeroEid, getOftAdapter, getOftProgramId, getOftSupportedChains, PEG_GROUPS, chainHasUnpricedTokens, HYPERCORE_CHAIN_ID, HYPERCORE_SETTLEMENT_CHAIN_ID, CORE_WRITER_PRECOMPILE, CORE_DEPOSIT_WALLET, HYPERCORE_SPOT_DEX, HYPERCORE_DEFAULT_PERP_DEX, HYPERCORE_USDC_ACTIVATION_FEE, coreDepositWalletAbi, getApproveCoreDepositWalletCall, getDepositForCall, isHyperCoreChainId, resolveSettlementChainId, getVmType, isNonEvmChainId, getNonEvmChainIds, getCaip2, chainIdFromCaip2, };
18
- export type { ChainList, ChainItem, ChainEntry, ChainRegistry, ErpcConfig, ErpcFailsafe, ErpcChainOverride, ProviderRegistry, ProviderName, SwapQuoter, ContractAddresses, SupportedMainnet, SupportedTestnet, SupportedChain, SupportedOPStackMainnet, SupportedOPStackTestnet, SettlementLayer, OftConfig, PegGroup, VmType, HyperCoreExecution, };
15
+ export { chainRegistry, providerRegistry, mainnetChainList, testnetChainList, contractAddresses, contractAddressesDev, chains, mainnetChains, testnetChains, MainnetNetwork, OPStackChains, TestnetNetwork, OFT_REGISTRY, getOftConfig, hasOftSupport, getSupportedOftTokens, chainHasUnpricedTokens, HYPERCORE_CHAIN_ID, HYPERCORE_SETTLEMENT_CHAIN_ID, CORE_WRITER_PRECOMPILE, CORE_DEPOSIT_WALLET, HYPERCORE_SPOT_DEX, HYPERCORE_DEFAULT_PERP_DEX, HYPERCORE_USDC_ACTIVATION_FEE, getApproveCoreDepositWalletCall, getDepositForCall, isHyperCoreChainId, resolveSettlementChainId, isNonEvmChainId, getNonEvmChainIds, getCaip2, chainIdFromCaip2, };
16
+ export type { ChainEntry, ChainItem, ChainList, ChainRegistry, ProviderRegistry, ProviderName, SwapQuoter, SupportedMainnet, SupportedTestnet, SupportedChain, SupportedOPStackMainnet, SupportedOPStackTestnet, SettlementLayer, OftConfig, PegGroup, };
19
17
  export * from "./abis";
20
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,MAAM,EACN,cAAc,EACd,aAAa,EACb,aA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f,aAAa,EACb,eAAe,EACf,qBAAqB,EAErB,UAAU,EAEV,sBAAsB,EAEtB,kBAAkB,EAClB,6BAA6B,EAC7B,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,0BAA0B,EAC1B,6BAA6B,EAC7B,oBAAoB,EACpB,+BAA+B,EAC/B,iBAAiB,EACjB,kBAAkB,EAClB,wBAAwB,EAExB,SAAS,EACT,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,GACjB,CAAC;AACF,YAAY,EAEV,SAAS,EACT,SAAS,EACT,UAAU,EACV,aAAa,EACb,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,iBAAiB,EAEjB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,eAAe,EAEf,SAAS,EAET,QAAQ,EAER,MAAM,EAEN,kBAAkB,GACnB,CAAC;AAEF,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,MAAM,EACN,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,aAAa,EACb,YAAY,E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B,eAAe,EAEf,SAAS,EAET,QAAQ,GACT,CAAC;AAEF,cAAc,QAAQ,CAAC"}
package/dist/src/index.js CHANGED
@@ -17,10 +17,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.chainIdFromCaip2 = exports.getCaip2 = exports.getNonEvmChainIds = exports.isNonEvmChainId = exports.getVmType = exports.resolveSettlementChainId = exports.isHyperCoreChainId = exports.getDepositForCall = exports.getApproveCoreDepositWalletCall = exports.coreDepositWalletAbi = exports.HYPERCORE_USDC_ACTIVATION_FEE = exports.HYPERCORE_DEFAULT_PERP_DEX = exports.HYPERCORE_SPOT_DEX = exports.CORE_DEPOSIT_WALLET = exports.CORE_WRITER_PRECOMPILE = exports.HYPERCORE_SETTLEMENT_CHAIN_ID = exports.HYPERCORE_CHAIN_ID = exports.PEG_GROUPS = exports.getOftSupportedChains = exports.getOftProgramId = exports.getOftAdapter = exports.getLayerZeroEid = exports.getSupportedOftTokens = exports.hasOftSupport = exports.getOftConfig = exports.OFT_PROGRAM_IDS = exports.OFT_REGISTRY = exports.TestnetNetwork = exports.OPStackChains = exports.MainnetNetwork = exports.testnetChains = exports.mainnetChains = exports.chains = exports.contractAddressesDev = exports.contractAddresses = exports.testnetChainList = exports.mainnetChainList = exports.providerRegistry = exports.erpcConfig = exports.chainRegistry = void 0;
20
+ exports.chainIdFromCaip2 = exports.getCaip2 = exports.getNonEvmChainIds = exports.isNonEvmChainId = exports.resolveSettlementChainId = exports.isHyperCoreChainId = exports.getDepositForCall = exports.getApproveCoreDepositWalletCall = exports.HYPERCORE_USDC_ACTIVATION_FEE = exports.HYPERCORE_DEFAULT_PERP_DEX = exports.HYPERCORE_SPOT_DEX = exports.CORE_DEPOSIT_WALLET = exports.CORE_WRITER_PRECOMPILE = exports.HYPERCORE_SETTLEMENT_CHAIN_ID = exports.HYPERCORE_CHAIN_ID = exports.getSupportedOftTokens = exports.hasOftSupport = exports.getOftConfig = exports.OFT_REGISTRY = exports.TestnetNetwork = exports.OPStackChains = exports.MainnetNetwork = exports.testnetChains = exports.mainnetChains = exports.chains = exports.contractAddressesDev = exports.contractAddresses = exports.testnetChainList = exports.mainnetChainList = exports.providerRegistry = exports.chainRegistry = void 0;
21
21
  exports.chainHasUnpricedTokens = chainHasUnpricedTokens;
22
22
  const chains_json_1 = __importDefault(require("../configs/chains.json"));
23
- const erpc_json_1 = __importDefault(require("../configs/erpc.json"));
24
23
  const mainnets_json_1 = __importDefault(require("../configs/mainnets.json"));
25
24
  const providers_json_1 = __importDefault(require("../configs/providers.json"));
26
25
  const testnets_json_1 = __importDefault(require("../configs/testnets.json"));
@@ -33,23 +32,16 @@ Object.defineProperty(exports, "chains", { enumerable: true, get: function () {
33
32
  Object.defineProperty(exports, "MainnetNetwork", { enumerable: true, get: function () { return types_1.MainnetNetwork; } });
34
33
  Object.defineProperty(exports, "mainnetChains", { enumerable: true, get: function () { return types_1.mainnetChains; } });
35
34
  Object.defineProperty(exports, "OPStackChains", { enumerable: true, get: function () { return types_1.OPStackChains; } });
36
- Object.defineProperty(exports, "PEG_GROUPS", { enumerable: true, get: function () { return types_1.PEG_GROUPS; } });
37
35
  Object.defineProperty(exports, "TestnetNetwork", { enumerable: true, get: function () { return types_1.TestnetNetwork; } });
38
36
  Object.defineProperty(exports, "testnetChains", { enumerable: true, get: function () { return types_1.testnetChains; } });
39
37
  const oft_1 = require("./oft");
40
- Object.defineProperty(exports, "getLayerZeroEid", { enumerable: true, get: function () { return oft_1.getLayerZeroEid; } });
41
- Object.defineProperty(exports, "getOftAdapter", { enumerable: true, get: function () { return oft_1.getOftAdapter; } });
42
38
  Object.defineProperty(exports, "getOftConfig", { enumerable: true, get: function () { return oft_1.getOftConfig; } });
43
- Object.defineProperty(exports, "getOftProgramId", { enumerable: true, get: function () { return oft_1.getOftProgramId; } });
44
- Object.defineProperty(exports, "getOftSupportedChains", { enumerable: true, get: function () { return oft_1.getOftSupportedChains; } });
45
39
  Object.defineProperty(exports, "getSupportedOftTokens", { enumerable: true, get: function () { return oft_1.getSupportedOftTokens; } });
46
40
  Object.defineProperty(exports, "hasOftSupport", { enumerable: true, get: function () { return oft_1.hasOftSupport; } });
47
- Object.defineProperty(exports, "OFT_PROGRAM_IDS", { enumerable: true, get: function () { return oft_1.OFT_PROGRAM_IDS; } });
48
41
  Object.defineProperty(exports, "OFT_REGISTRY", { enumerable: true, get: function () { return oft_1.OFT_REGISTRY; } });
49
42
  const hypercore_1 = require("./hypercore");
50
43
  Object.defineProperty(exports, "CORE_DEPOSIT_WALLET", { enumerable: true, get: function () { return hypercore_1.CORE_DEPOSIT_WALLET; } });
51
44
  Object.defineProperty(exports, "CORE_WRITER_PRECOMPILE", { enumerable: true, get: function () { return hypercore_1.CORE_WRITER_PRECOMPILE; } });
52
- Object.defineProperty(exports, "coreDepositWalletAbi", { enumerable: true, get: function () { return hypercore_1.coreDepositWalletAbi; } });
53
45
  Object.defineProperty(exports, "getApproveCoreDepositWalletCall", { enumerable: true, get: function () { return hypercore_1.getApproveCoreDepositWalletCall; } });
54
46
  Object.defineProperty(exports, "getDepositForCall", { enumerable: true, get: function () { return hypercore_1.getDepositForCall; } });
55
47
  Object.defineProperty(exports, "HYPERCORE_CHAIN_ID", { enumerable: true, get: function () { return hypercore_1.HYPERCORE_CHAIN_ID; } });
@@ -63,12 +55,9 @@ const chainVirtualization_1 = require("./chainVirtualization");
63
55
  Object.defineProperty(exports, "chainIdFromCaip2", { enumerable: true, get: function () { return chainVirtualization_1.chainIdFromCaip2; } });
64
56
  Object.defineProperty(exports, "getCaip2", { enumerable: true, get: function () { return chainVirtualization_1.getCaip2; } });
65
57
  Object.defineProperty(exports, "getNonEvmChainIds", { enumerable: true, get: function () { return chainVirtualization_1.getNonEvmChainIds; } });
66
- Object.defineProperty(exports, "getVmType", { enumerable: true, get: function () { return chainVirtualization_1.getVmType; } });
67
58
  Object.defineProperty(exports, "isNonEvmChainId", { enumerable: true, get: function () { return chainVirtualization_1.isNonEvmChainId; } });
68
59
  const chainRegistry = chains_json_1.default;
69
60
  exports.chainRegistry = chainRegistry;
70
- const erpcConfig = erpc_json_1.default;
71
- exports.erpcConfig = erpcConfig;
72
61
  const providerRegistry = providers_json_1.default;
73
62
  exports.providerRegistry = providerRegistry;
74
63
  const mainnetChainList = mainnets_json_1.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/shared-configs",
3
- "version": "1.6.12",
3
+ "version": "1.6.13",
4
4
  "description": "Reusable configuration files for Rhinestone services",
5
5
  "author": {
6
6
  "name": "Rhinestone",
@@ -1,36 +0,0 @@
1
- {
2
- "defaults": {
3
- "failsafe": {
4
- "timeout": { "duration": "30s" },
5
- "retry": {
6
- "maxAttempts": 5,
7
- "delay": "500ms",
8
- "backoffMaxDelay": "10s",
9
- "backoffFactor": 1.3,
10
- "jitter": "200ms"
11
- },
12
- "hedge": { "delay": "1000ms", "maxCount": 2 }
13
- }
14
- },
15
- "chainOverrides": {
16
- "1": {
17
- "failsafe": {
18
- "retry": { "maxAttempts": 3, "jitter": "500ms" },
19
- "hedge": { "delay": "3000ms" }
20
- }
21
- },
22
- "42161": { "evm": { "getLogsMaxAllowedRange": 100000 } },
23
- "421614": { "evm": { "getLogsMaxAllowedRange": 100000 } }
24
- },
25
- "rateLimitBudgets": {
26
- "gnosis-tenderly": "default-budget",
27
- "plasma-tenderly": "default-budget",
28
- "_default": "global"
29
- },
30
- "providerIdPrefix": {
31
- "Alchemy": "alchemy-http",
32
- "DRPC": "drpc-http",
33
- "gnosis-tenderly": "gnosis-tenderly-rpc",
34
- "plasma-tenderly": "plasma-tenderly-rpc"
35
- }
36
- }