Skip to content

Commit

Permalink
⬆️ bump gas-station deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Burg committed Dec 18, 2023
1 parent d345f1c commit ee914fd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 15 deletions.
8 changes: 4 additions & 4 deletions examples/nft/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/nft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"type": "module",
"dependencies": {
"@marigold-dev/gas-station-lib": "^0.0.4",
"@marigold-dev/gas-station-lib": "^0.0.6",
"@airgap/beacon-sdk": "^4.0.4",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@picocss/pico": "^1.5.10",
Expand Down
6 changes: 3 additions & 3 deletions examples/nft/src/lib/MintingComponent.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { Tezos, subTezos } from "$lib/tezos";
import { GasStation } from "@marigold-dev/gas-station-lib";
import { PUBLIC_PERMIT, PUBLIC_GAS_STATION_API, PUBLIC_TZKT_API } from '$env/static/public';
import { GasStation, GAS_STATION_PUBLIC_API_GHOSTNET } from "@marigold-dev/gas-station-lib";
import { PUBLIC_PERMIT, PUBLIC_TZKT_API } from '$env/static/public';
export let user_address = '';
Expand All @@ -26,7 +26,7 @@
function mint(user_address: string) {
(async () => {
const gas_api = new GasStation({
apiURL: PUBLIC_GAS_STATION_API
apiURL: GAS_STATION_PUBLIC_API_GHOSTNET
});
const contract = await Tezos.wallet.at(PUBLIC_PERMIT);
const mint_op = await contract.methodsObject.mint_token([{
Expand Down
10 changes: 3 additions & 7 deletions examples/nft/src/lib/StakingComponent.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<script lang="ts">
import { Tezos, wallet, subTezos } from "$lib/tezos";
import { GasStation, PermitContract } from "@marigold-dev/gas-station-lib";
import { RpcClient } from "@taquito/rpc";
import { InMemorySigner } from "@taquito/signer";
import { ParameterSchema } from "@taquito/michelson-encoder";
import { PUBLIC_PERMIT, PUBLIC_TEZOS_RPC, PUBLIC_STAKING_CONTRACT, PUBLIC_TZKT_API,
PUBLIC_GAS_STATION_API } from '$env/static/public';
import { GasStation, PermitContract, GAS_STATION_PUBLIC_API_GHOSTNET } from "@marigold-dev/gas-station-lib";
import { PUBLIC_PERMIT, PUBLIC_STAKING_CONTRACT, PUBLIC_TZKT_API } from '$env/static/public';
import { SigningType } from "@airgap/beacon-types";
export let user_address = '';
Expand Down Expand Up @@ -37,7 +33,7 @@
// √ Send it to the API
(async () => {
const gas_api = new GasStation({
apiURL: PUBLIC_GAS_STATION_API
apiURL: GAS_STATION_PUBLIC_API_GHOSTNET
});
const permit_contract = new PermitContract(PUBLIC_PERMIT, Tezos);
Expand Down

0 comments on commit ee914fd

Please sign in to comment.