Skip to content

Commit

Permalink
ci: change function to use new upload to pinnata instead of upload to…
Browse files Browse the repository at this point in the history
… ipfs
  • Loading branch information
clauBv23 committed Nov 18, 2024
1 parent 229f6e4 commit f5888bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/contracts/deploy/20_new_version/23_publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
isLocal,
pluginEnsDomain,
} from '../../utils/helpers';
import {PLUGIN_REPO_PERMISSIONS, uploadToIPFS} from '@aragon/osx-commons-sdk';
import {PLUGIN_REPO_PERMISSIONS, uploadToPinata} from '@aragon/osx-commons-sdk';
import {writeFile} from 'fs/promises';
import {ethers} from 'hardhat';
import {DeployFunction} from 'hardhat-deploy/types';
Expand All @@ -32,11 +32,11 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const [deployer] = await hre.ethers.getSigners();

// Upload the metadata to IPFS
const releaseMetadataURI = `ipfs://${await uploadToIPFS(
JSON.stringify(METADATA.release, null, 2)
const releaseMetadataURI = `ipfs://${await uploadToPinata(
JSON.stringify(METADATA.release, null, 2), METADATA.releaseFileName
)}`;
const buildMetadataURI = `ipfs://${await uploadToIPFS(
JSON.stringify(METADATA.build, null, 2)
const buildMetadataURI = `ipfs://${await uploadToPinata(
JSON.stringify(METADATA.build, null, 2), METADATA.buildFileName
)}`;

console.log(`Uploaded release metadata: ${releaseMetadataURI}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
PERMISSION_MANAGER_FLAGS,
PLUGIN_REPO_PERMISSIONS,
UnsupportedNetworkError,
uploadToIPFS,
uploadToPinata
} from '@aragon/osx-commons-sdk';
import {
DAO,
Expand Down Expand Up @@ -72,8 +72,8 @@ describe(`Deployment on network '${productionNetworkName}'`, function () {
build: VERSION.build,
});

const buildMetadataURI = `ipfs://${await uploadToIPFS(
JSON.stringify(METADATA.build, null, 2)
const buildMetadataURI = `ipfs://${await uploadToPinata(
JSON.stringify(METADATA.build, null, 2), METADATA.buildFileName
)}`;

expect(results.buildMetadata).to.equal(
Expand Down

0 comments on commit f5888bc

Please sign in to comment.