File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @sablier/deployments" ,
33 "description" : " Keeping track of Sablier deployments" ,
4- "version" : " 1.0.0-alpha.38 " ,
4+ "version" : " 1.0.0-alpha.39 " ,
55 "author" : {
66 "name" : " Sablier Labs Ltd" ,
77 "url" : " https://sablier.com"
Original file line number Diff line number Diff line change 11import type { Sablier } from "@src/types" ;
22import _ from "lodash" ;
3- import { releases as allReleases , releasesByProtocol } from "./releases" ;
3+ import { releases as allReleases , releasesByProtocol , releasesByVersion } from "./releases" ;
44
55const contracts = {
66 /**
@@ -95,6 +95,10 @@ const deployments = {
9595} ;
9696
9797const releases = {
98+ get : ( opts : { protocol : Sablier . Protocol ; version : Sablier . Version } ) : Sablier . Release | undefined => {
99+ const { protocol, version } = opts ;
100+ return _ . get ( releasesByVersion , [ protocol , version ] ) ;
101+ } ,
98102 /**
99103 * Get the first release:
100104 * - {protocol} ⇒ first overall
Original file line number Diff line number Diff line change 11import { logAndThrow } from "@scripts/logger" ;
22import { chainsById } from "@src/chains" ;
33import { catalog } from "@src/contracts" ;
4- import { queries , releases , releasesByVersion } from "@src/releases" ;
4+ import queries from "@src/queries" ;
5+ import { releases , releasesByVersion } from "@src/releases" ;
56import axios from "axios" ;
67import _ from "lodash" ;
78import { isAddress } from "viem" ;
You can’t perform that action at this time.
0 commit comments