-
Notifications
You must be signed in to change notification settings - Fork 24
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
base: main
Are you sure you want to change the base?
Conversation
7cb23d1
to
cddf6ff
Compare
const USE_DEFAULT_SIGNER_OPTIONS = true; | ||
const getSignerOptions = () => | ||
USE_DEFAULT_SIGNER_OPTIONS | ||
? ["sign-as", appAccount, "network-config", "testnet"] |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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.
No description provided.