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

Expose API url variables for ghostnet & mainnet #5

Merged
merged 25 commits into from
Jan 25, 2024
Merged

Conversation

quentin-burg
Copy link
Collaborator

And update Gas Station class constructor to accept empty parameter and add Ghostnet api URL per default

Copy link
Collaborator

@aguillon aguillon left a comment

Choose a reason for hiding this comment

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

Minor changes

Comment on lines 37 to 38
sed -i 's|KT1Re88VMEJ7TLHTkXSHQYZQTD3MP3k7j6Ar|KT199yuNkHQKpy331A6fvWJtQ1uan9uya2jx|g' ./examples/nft/.env
sed -i 's|KT1Rp1rgfwS25XrWU6fUnR8cw6KMZBhDvXdq|KT1MLMXwFEMcfByGbGcQ9ow3nsrQCkLbcRAu|g' ./examples/nft/.env
sed -i 's|KT1Re88VMEJ7TLHTkXSHQYZQTD3MP3k7j6Ar|KT1CvtrTV7snJSxdnQqhSqh47tyVYhm4ACGB|g' ./examples/nft/.env
sed -i 's|KT1Rp1rgfwS25XrWU6fUnR8cw6KMZBhDvXdq|KT1K9X6QpuTWFX4S5ieDGTUdjAHQtiFRH5op|g' ./examples/nft/.env
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure why you're not changing the file directly? Is it because we're using a different account for the gas station on Ghostnet and Staging? I'm not sure it's worth it; and even then, we can change the contract to allow several admins.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Or we could just originate a single contract that can have two admins, see aguillon/permit-cameligo#3

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it's because the contract has only one admin but we can deploy the contract with several admin and just remove this part after.

index.ts Outdated
Comment on lines 33 to 37
export const GAS_STATION_PUBLIC_API_GHOSTNET =
"https://ghostnet.gas-station-api.marigold.dev/operation";
export const GAS_STATION_PUBLIC_API_MAINNET =
"https://gas-station-api.marigold.dev/operation";

Copy link
Collaborator

Choose a reason for hiding this comment

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

We should remove the trailing /operation and add it in postOperations.

index.ts Outdated
@@ -62,6 +72,8 @@ export class GasStation {
}
}

const g = new GasStation();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why?

@aguillon
Copy link
Collaborator

Rebasing all of this in order not to introduce a merge commit in the history

@aguillon aguillon merged commit b03b08d into release-ghostnet Jan 25, 2024
1 check passed
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.

3 participants