Skip to content

Deploy type file and metadata to attestation registry#74

Draft
corydickson wants to merge 4 commits intomainfrom
deploy-registry
Draft

Deploy type file and metadata to attestation registry#74
corydickson wants to merge 4 commits intomainfrom
deploy-registry

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