import{configasloadEnv}from'dotenv';import{SDK,Auth,TEMPLATES,Chains,CONTRACT_ADDRESSES}from'@1combo/1combo-ethereum-sdk';loadEnv();constauth=newAuth({privateKey: process.env.KEY,projectId: process.env.INFURA_PROJECT_ID,secretId: process.env.INFURA_PROJECT_SECRET,chainId: Chains.goerli,});constsdk=newSDK(auth);constmanager=awaitsdk.loadContract({templateName: TEMPLATES.SetManager,contractAddress: CONTRACT_ADDRESSES.GOERLI.SetManager,});awaitmanager.createSet({name: 'Books',metadataURI: '',// URI to metadata about this set, optionalinitialCategoryNames: ['P-Books','E-Books'],initialCategoryCollections: [],gasPrice: (parseFloat(awaitsdk.getGasPrice())+5).toString(),});
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.