@reyaxyz/common 0.305.3 → 0.305.5

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 CHANGED
@@ -6,5 +6,5 @@
6
6
 
7
7
  | Statements | Branches | Functions | Lines |
8
8
  | --------------------------- | ----------------------- | ------------------------- | ----------------- |
9
- | ![Statements](https://img.shields.io/badge/statements-20.27%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-17.44%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-9.9%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-21.96%25-red.svg?style=flat) |
9
+ | ![Statements](https://img.shields.io/badge/statements-20.35%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-18%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-10.31%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-22.05%25-red.svg?style=flat) |
10
10
 
@@ -17,10 +17,17 @@ export declare enum VltzTierName {
17
17
  legendary = "legendary",
18
18
  easterEgg = "easterEgg"
19
19
  }
20
+ export declare enum VltzSeasons {
21
+ seasonOg = "0",
22
+ season1 = "1",
23
+ season2 = "2",
24
+ season3 = "3",
25
+ season4 = "4"
26
+ }
20
27
  export type VltzAllocationInfo = {
21
28
  walletAddress: string;
22
29
  totalAllocation: number;
23
- allocationPerBadge: Array<Array<number>>;
30
+ allocationPerSeasonBadge: Record<VltzSeasons, Record<VltzTierName, number>>;
24
31
  };
25
32
  export type VltzLeafInfo = {
26
33
  walletAddress: string;
@@ -1 +1 @@
1
- {"version":3,"file":"minting-helpers.d.ts","sourceRoot":"/","sources":["utils/minting-helpers.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,KAAK,mBAAmB,GACpB,iBAAiB,CAAC,eAAe,GACjC,iBAAiB,CAAC,eAAe,CAAC;AAGtC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,mBAAmB,EACnB;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CACZ,MAAM,EACN;QACE,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,MAAM,CAAC;KACd,CACF,CAAC;CACH,CAwBF,CAAC;AAEF,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,WAAW,kBACP,MAAM,cACT,MAAM,KACjB,MAKF,CAAC"}
1
+ {"version":3,"file":"minting-helpers.d.ts","sourceRoot":"/","sources":["utils/minting-helpers.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,KAAK,mBAAmB,GACpB,iBAAiB,CAAC,eAAe,GACjC,iBAAiB,CAAC,eAAe,CAAC;AAGtC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,mBAAmB,EACnB;IACE,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CACZ,MAAM,EACN;QACE,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QACxB,IAAI,EAAE,MAAM,CAAC;KACd,CACF,CAAC;CACH,CAwBF,CAAC;AAEF,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,SAAS,cAAc;CACxB;AAED,oBAAY,WAAW;IACrB,QAAQ,MAAM;IACd,OAAO,MAAM;IACb,OAAO,MAAM;IACb,OAAO,MAAM;IACb,OAAO,MAAM;CACd;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,wBAAwB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;CAC7E,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,WAAW,kBACP,MAAM,cACT,MAAM,KACjB,MAKF,CAAC"}
@@ -9,7 +9,6 @@ export type VltzRoundInfo = {
9
9
  data: {
10
10
  walletAddress: string;
11
11
  volume: number;
12
- currentAllocation: number;
13
12
  }[];
14
13
  meta: PaginatedQueryMeta;
15
14
  };
@@ -21,7 +20,7 @@ export type VltzWalletInfo = {
21
20
  merkleRoot: string;
22
21
  merkleProof: string[];
23
22
  volume: number;
24
- positionInLeaderboard: number;
23
+ positionInLeaderboard: number | null;
25
24
  };
26
25
  export type VltzApiSource = {
27
26
  'vltz/round/:id': ApiEndpoint<VltzRoundInfo, {
@@ -1 +1 @@
1
- {"version":3,"file":"vltz-api-types.d.ts","sourceRoot":"/","sources":["vltz-api-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACpB,WAAW,EACZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,eA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}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var _a;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.getVltzLeaf = exports.VltzTierName = exports.VLTZ_MINTING_DETAILS = void 0;
4
+ exports.getVltzLeaf = exports.VltzSeasons = exports.VltzTierName = exports.VLTZ_MINTING_DETAILS = void 0;
5
5
  var ethers_1 = require("ethers");
6
6
  var types_1 = require("../types");
7
7
  // mapping from round, to network, to details
@@ -10,10 +10,10 @@ exports.VLTZ_MINTING_DETAILS = (_a = {},
10
10
  contractAddress: '0x7A00255ebcBE36FbF469e0A6265A271749560aE4',
11
11
  rounds: {
12
12
  1: {
13
- mintDeadline: 1758751200,
14
- mintStart: 1756677600,
13
+ mintDeadline: 1759053600,
14
+ mintStart: 1758880800,
15
15
  totalAllocation: 1000000000, // 1 Billion
16
- root: '0x',
16
+ root: '0xba9e1e669fc672edaf5fd448c02cbd613664e6f859323e673e87f69292927c01',
17
17
  },
18
18
  },
19
19
  },
@@ -37,6 +37,14 @@ var VltzTierName;
37
37
  VltzTierName["legendary"] = "legendary";
38
38
  VltzTierName["easterEgg"] = "easterEgg";
39
39
  })(VltzTierName || (exports.VltzTierName = VltzTierName = {}));
40
+ var VltzSeasons;
41
+ (function (VltzSeasons) {
42
+ VltzSeasons["seasonOg"] = "0";
43
+ VltzSeasons["season1"] = "1";
44
+ VltzSeasons["season2"] = "2";
45
+ VltzSeasons["season3"] = "3";
46
+ VltzSeasons["season4"] = "4";
47
+ })(VltzSeasons || (exports.VltzSeasons = VltzSeasons = {}));
40
48
  var getVltzLeaf = function (walletAddress, allocation) {
41
49
  var messageHash = ethers_1.ethers.keccak256(ethers_1.ethers.solidityPacked(['address', 'uint256'], [walletAddress, allocation]));
42
50
  return Buffer.from(messageHash.slice(2), 'hex');
@@ -1 +1 @@
1
- {"version":3,"file":"minting-helpers.js","sourceRoot":"/","sources":["utils/minting-helpers.ts"],"names":[],"mappings":";;;;AAAA,iCAAgC;AAChC,kCAA6C;AAM7C,6CAA6C;AAChC,QAAA,oBAAoB;IAe/B,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,eAAe,EAAE,4CAA4C;QAC7D,MAAM,EAAE;YACN,CAAC,EAAE;gBACD,YAAY,EAAE,UAAU;gBACxB,SAAS,EAAE,UAAU;gBACrB,eAAe,EAAE,UAAU,EAAE,YAAY;gBACzC,IAAI,EAAE,IAAI;aACX;SACF;KACF;IACD,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE;YACN,CAAC,EAAE;gBACD,YAAY,EAAE,UAAU;gBACxB,SAAS,EAAE,UAAU;gBACrB,eAAe,EAAE,UAAU,EAAE,YAAY;gBACzC,IAAI,EAAE,IAAI;aACX;SACF;KACF;QACD;AAEF,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;AACzB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAaM,IAAM,WAAW,GAAG,UACzB,aAAqB,EACrB,UAAkB;IAElB,IAAM,WAAW,GAAG,eAAM,CAAC,SAAS,CAClC,eAAM,CAAC,cAAc,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC,CAC3E,CAAC;IACF,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC,CAAC;AARW,QAAA,WAAW,eAQtB","sourcesContent":["import { ethers } from 'ethers';\nimport { MoneyInOutChainId } from '../types';\n\ntype VltzMintingChainIds =\n | MoneyInOutChainId.ethereumMainnet\n | MoneyInOutChainId.ethereumSepolia;\n\n// mapping from round, to network, to details\nexport const VLTZ_MINTING_DETAILS: Record<\n VltzMintingChainIds,\n {\n contractAddress: string;\n rounds: Record<\n number,\n {\n mintDeadline: number;\n mintStart: number;\n totalAllocation: number;\n root: string;\n }\n >;\n }\n> = {\n [MoneyInOutChainId.ethereumSepolia]: {\n contractAddress: '0x7A00255ebcBE36FbF469e0A6265A271749560aE4',\n rounds: {\n 1: {\n mintDeadline: 1758751200,\n mintStart: 1756677600,\n totalAllocation: 1000000000, // 1 Billion\n root: '0x',\n },\n },\n },\n [MoneyInOutChainId.ethereumMainnet]: {\n contractAddress: '0x',\n rounds: {\n 1: {\n mintDeadline: 1758751200,\n mintStart: 1758492000,\n totalAllocation: 1000000000, // 1 Billion\n root: '0x',\n },\n },\n },\n};\n\nexport enum VltzTierName {\n tier1 = 'tier1',\n tier2 = 'tier2',\n tier3 = 'tier3',\n legendary = 'legendary',\n easterEgg = 'easterEgg',\n}\n\nexport type VltzAllocationInfo = {\n walletAddress: string;\n totalAllocation: number;\n allocationPerBadge: Array<Array<number>>;\n};\n\nexport type VltzLeafInfo = {\n walletAddress: string;\n allocation: string;\n};\n\nexport const getVltzLeaf = (\n walletAddress: string,\n allocation: string,\n): Buffer => {\n const messageHash = ethers.keccak256(\n ethers.solidityPacked(['address', 'uint256'], [walletAddress, allocation]),\n );\n return Buffer.from(messageHash.slice(2), 'hex');\n};\n"]}
1
+ {"version":3,"file":"minting-helpers.js","sourceRoot":"/","sources":["utils/minting-helpers.ts"],"names":[],"mappings":";;;;AAAA,iCAAgC;AAChC,kCAA6C;AAM7C,6CAA6C;AAChC,QAAA,oBAAoB;IAe/B,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,eAAe,EAAE,4CAA4C;QAC7D,MAAM,EAAE;YACN,CAAC,EAAE;gBACD,YAAY,EAAE,UAAU;gBACxB,SAAS,EAAE,UAAU;gBACrB,eAAe,EAAE,UAAU,EAAE,YAAY;gBACzC,IAAI,EAAE,oEAAoE;aAC3E;SACF;KACF;IACD,GAAC,yBAAiB,CAAC,eAAe,IAAG;QACnC,eAAe,EAAE,IAAI;QACrB,MAAM,EAAE;YACN,CAAC,EAAE;gBACD,YAAY,EAAE,UAAU;gBACxB,SAAS,EAAE,UAAU;gBACrB,eAAe,EAAE,UAAU,EAAE,YAAY;gBACzC,IAAI,EAAE,IAAI;aACX;SACF;KACF;QACD;AAEF,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;AACzB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,6BAAc,CAAA;IACd,4BAAa,CAAA;IACb,4BAAa,CAAA;IACb,4BAAa,CAAA;IACb,4BAAa,CAAA;AACf,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAaM,IAAM,WAAW,GAAG,UACzB,aAAqB,EACrB,UAAkB;IAElB,IAAM,WAAW,GAAG,eAAM,CAAC,SAAS,CAClC,eAAM,CAAC,cAAc,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC,CAC3E,CAAC;IACF,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC,CAAC;AARW,QAAA,WAAW,eAQtB","sourcesContent":["import { ethers } from 'ethers';\nimport { MoneyInOutChainId } from '../types';\n\ntype VltzMintingChainIds =\n | MoneyInOutChainId.ethereumMainnet\n | MoneyInOutChainId.ethereumSepolia;\n\n// mapping from round, to network, to details\nexport const VLTZ_MINTING_DETAILS: Record<\n VltzMintingChainIds,\n {\n contractAddress: string;\n rounds: Record<\n number,\n {\n mintDeadline: number;\n mintStart: number;\n totalAllocation: number;\n root: string;\n }\n >;\n }\n> = {\n [MoneyInOutChainId.ethereumSepolia]: {\n contractAddress: '0x7A00255ebcBE36FbF469e0A6265A271749560aE4',\n rounds: {\n 1: {\n mintDeadline: 1759053600,\n mintStart: 1758880800,\n totalAllocation: 1000000000, // 1 Billion\n root: '0xba9e1e669fc672edaf5fd448c02cbd613664e6f859323e673e87f69292927c01',\n },\n },\n },\n [MoneyInOutChainId.ethereumMainnet]: {\n contractAddress: '0x',\n rounds: {\n 1: {\n mintDeadline: 1758751200,\n mintStart: 1758492000,\n totalAllocation: 1000000000, // 1 Billion\n root: '0x',\n },\n },\n },\n};\n\nexport enum VltzTierName {\n tier1 = 'tier1',\n tier2 = 'tier2',\n tier3 = 'tier3',\n legendary = 'legendary',\n easterEgg = 'easterEgg',\n}\n\nexport enum VltzSeasons {\n seasonOg = '0',\n season1 = '1',\n season2 = '2',\n season3 = '3',\n season4 = '4',\n}\n\nexport type VltzAllocationInfo = {\n walletAddress: string;\n totalAllocation: number;\n allocationPerSeasonBadge: Record<VltzSeasons, Record<VltzTierName, number>>;\n};\n\nexport type VltzLeafInfo = {\n walletAddress: string;\n allocation: string;\n};\n\nexport const getVltzLeaf = (\n walletAddress: string,\n allocation: string,\n): Buffer => {\n const messageHash = ethers.keccak256(\n ethers.solidityPacked(['address', 'uint256'], [walletAddress, allocation]),\n );\n return Buffer.from(messageHash.slice(2), 'hex');\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"vltz-api-types.js","sourceRoot":"/","sources":["vltz-api-types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AddressParam,\n ApiEndpoint,\n PaginatedQueryMeta,\n PaginatedQueryParams,\n Stringified,\n} from './api-types';\nimport { VltzAllocationInfo } from './utils';\n\nexport type VltzRoundInfo = {\n deadlineMs: number;\n mintedAmount: number;\n totalAllocation: number;\n totalVolume: number;\n leaderboard: {\n data: {\n walletAddress: string;\n volume: number;\n currentAllocation: number;\n }[];\n meta: PaginatedQueryMeta;\n };\n};\n\nexport type VltzWalletInfo = {\n minted: boolean;\n mintedAmountSoFar: number;\n allocationInfo: VltzAllocationInfo;\n merkleRoot: string;\n merkleProof: string[];\n volume: number;\n positionInLeaderboard: number;\n};\n\nexport type VltzApiSource = {\n 'vltz/round/:id': ApiEndpoint<\n VltzRoundInfo,\n {\n id: string;\n } & PaginatedQueryParams\n >;\n\n 'vltz/wallet/:address/:roundId': ApiEndpoint<\n VltzWalletInfo,\n AddressParam & { roundId: string }\n >;\n};\n\nexport type VltzApi = {\n [K in keyof VltzApiSource]: {\n params: VltzApiSource[K]['params'];\n query: VltzApiSource[K]['query'];\n response: Stringified<VltzApiSource[K]['response']>;\n };\n};\n"]}
1
+ {"version":3,"file":"vltz-api-types.js","sourceRoot":"/","sources":["vltz-api-types.ts"],"names":[],"mappings":"","sourcesContent":["import {\n AddressParam,\n ApiEndpoint,\n PaginatedQueryMeta,\n PaginatedQueryParams,\n Stringified,\n} from './api-types';\nimport { VltzAllocationInfo } from './utils';\n\nexport type VltzRoundInfo = {\n deadlineMs: number;\n mintedAmount: number;\n totalAllocation: number;\n totalVolume: number;\n leaderboard: {\n data: {\n walletAddress: string;\n volume: number;\n }[];\n meta: PaginatedQueryMeta;\n };\n};\n\nexport type VltzWalletInfo = {\n minted: boolean;\n mintedAmountSoFar: number;\n allocationInfo: VltzAllocationInfo;\n merkleRoot: string;\n merkleProof: string[];\n volume: number;\n positionInLeaderboard: number | null;\n};\n\nexport type VltzApiSource = {\n 'vltz/round/:id': ApiEndpoint<\n VltzRoundInfo,\n {\n id: string;\n } & PaginatedQueryParams\n >;\n\n 'vltz/wallet/:address/:roundId': ApiEndpoint<\n VltzWalletInfo,\n AddressParam & { roundId: string }\n >;\n};\n\nexport type VltzApi = {\n [K in keyof VltzApiSource]: {\n params: VltzApiSource[K]['params'];\n query: VltzApiSource[K]['query'];\n response: Stringified<VltzApiSource[K]['response']>;\n };\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reyaxyz/common",
3
- "version": "0.305.3",
3
+ "version": "0.305.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -44,5 +44,5 @@
44
44
  "generate:coverage-badges": "npx istanbul-badges-readme --silent"
45
45
  },
46
46
  "packageManager": "pnpm@8.3.1",
47
- "gitHead": "03ff9e970fec3c0283fbb51751f8f635b66eef65"
47
+ "gitHead": "3601c952751050ab31455a87352750794f66bf3d"
48
48
  }
@@ -25,10 +25,10 @@ export const VLTZ_MINTING_DETAILS: Record<
25
25
  contractAddress: '0x7A00255ebcBE36FbF469e0A6265A271749560aE4',
26
26
  rounds: {
27
27
  1: {
28
- mintDeadline: 1758751200,
29
- mintStart: 1756677600,
28
+ mintDeadline: 1759053600,
29
+ mintStart: 1758880800,
30
30
  totalAllocation: 1000000000, // 1 Billion
31
- root: '0x',
31
+ root: '0xba9e1e669fc672edaf5fd448c02cbd613664e6f859323e673e87f69292927c01',
32
32
  },
33
33
  },
34
34
  },
@@ -53,10 +53,18 @@ export enum VltzTierName {
53
53
  easterEgg = 'easterEgg',
54
54
  }
55
55
 
56
+ export enum VltzSeasons {
57
+ seasonOg = '0',
58
+ season1 = '1',
59
+ season2 = '2',
60
+ season3 = '3',
61
+ season4 = '4',
62
+ }
63
+
56
64
  export type VltzAllocationInfo = {
57
65
  walletAddress: string;
58
66
  totalAllocation: number;
59
- allocationPerBadge: Array<Array<number>>;
67
+ allocationPerSeasonBadge: Record<VltzSeasons, Record<VltzTierName, number>>;
60
68
  };
61
69
 
62
70
  export type VltzLeafInfo = {
@@ -16,7 +16,6 @@ export type VltzRoundInfo = {
16
16
  data: {
17
17
  walletAddress: string;
18
18
  volume: number;
19
- currentAllocation: number;
20
19
  }[];
21
20
  meta: PaginatedQueryMeta;
22
21
  };
@@ -29,7 +28,7 @@ export type VltzWalletInfo = {
29
28
  merkleRoot: string;
30
29
  merkleProof: string[];
31
30
  volume: number;
32
- positionInLeaderboard: number;
31
+ positionInLeaderboard: number | null;
33
32
  };
34
33
 
35
34
  export type VltzApiSource = {