Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy type file and metadata to attestation registry #74

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

corydickson
Copy link
Collaborator

No description provided.

const USE_DEFAULT_SIGNER_OPTIONS = true;
const getSignerOptions = () =>
USE_DEFAULT_SIGNER_OPTIONS
? ["sign-as", appAccount, "network-config", "testnet"]
Copy link
Contributor

@elliotBraem elliotBraem Apr 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard-coded testnet, can we have network passed through cli? Fine if it defaults to testnet

.command("attest")
.description("Deploy the project with metadata")
.argument("[app_name]", "app name")
.argument("[type_file]", "type definition")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the type definition? How is it supposed to be provided?

data: {
[appAccount]: JSON.parse(dataJSON),
metadata: {},
types: JSON.parse(typeFile)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if no typeFile provided, there isn't a default in the cli

version: `${version ?? ""}`,
content_type: "ipfs",
cid: ipfsHash.toString(),
is_contract: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does is_contract mean?

@@ -1,4 +1,11 @@
import { BaseConfig } from "./config";
import { uploadAndPinJson } from '@archetype-org/ribbit';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we moved all of this "deploy_with_metadata" to archetype library?

The attest command can be a direct mapping to ribbit and your contract.

-- although it appears that repo private. We're not sharing builds with a private api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants