Skip to content

Commit

Permalink
fix: change naming to Filecoin Wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Oct 10, 2023
1 parent 944e5f5 commit 54c2783
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 34 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Filecoin metamask snap and related packages to enable developers to add Filecoin

- [`demo`](https://github.com/filecoin-project/filsnap/tree/master/examples/demo) - Preact demo dapp using [filsnap-adapter](<[./packages/adapter](https://github.com/filecoin-project/filsnap/tree/master/packages/adapter)>) to interact with [filsnap](<[./packages/snap](https://github.com/filecoin-project/filsnap/tree/master/packages/snap)>)
- [`fil-forwarder-viem`](https://github.com/filecoin-project/filsnap/tree/master/examples/fil-forwarder-viem) - [Viem](https://viem.sh/) example to send FIL using FilForwarder contract.
- [Fund Ring](https://github.com/FundRing/fundring/tree/main/src/routes/filfund) - Svelte dapp [dapp](https://fundring.fission.app/) that using filsnap to fund projects with Filecoin.

### Checkout examples

Expand Down
2 changes: 1 addition & 1 deletion examples/demo/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# filsnap-demo
# Filecoin Wallet demo
4 changes: 2 additions & 2 deletions examples/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<link rel="icon" href="/filecoin-logo.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<meta name="theme-color" content="#484A65">
<meta name="description" content="Metamask snap to enable developers to add Filecoin integration to their dapps.">
<title>Filsnap Demo</title>
<meta name="description" content="Connect to Filecoin dapps using Metamask. Manage Filecoin accounts, send FIL to Native and FEVM accounts and enable FEVM transaction insights.">
<title>Filecoin Wallet Demo</title>
</head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function App() {

return (
<main class="App">
<h1>Filsnap</h1>
<h1>Filecoin Wallet</h1>
<div class="Grid">
<Connect />
<Network />
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/src/components/connect-fevm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function ConnectFEVM() {
formatUnits: 'ether',
})

let out = <button onClick={() => connect()}>Connect to Filecoin</button>
let out = <button onClick={() => connect()}>Connect to Filecoin EVM</button>
if (isConnected) {
out = (
<>
Expand Down
4 changes: 2 additions & 2 deletions examples/demo/src/components/connect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function Connect() {
if (!isConnected) {
out = (
<button data-testid="connect-snap" onClick={() => connect()}>
Connect Filecoin Snap
Connect
</button>
)
}
Expand All @@ -24,7 +24,7 @@ export default function Connect() {
<div data-testid="install-mm-flask">
Install Metamask{' '}
<a
href="https://chrome.google.com/webstore/detail/metamask-flask-developmen/ljfoeinjpaedjfecbmggjgodbgkmjkjk"
href="https://chromewebstore.google.com/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn"
target="_blank"
rel="noreferrer"
>
Expand Down
45 changes: 22 additions & 23 deletions examples/fil-forwarder-viem/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="theme-color" content="#484A65">
<meta name="description" content="Demo to transfer FIL from 0x address to f1 address with viem">
<title>Filsnap Demo</title>
<title>FilForwarder Example</title>

<!-- Based on https://www.quackit.com/css/flexbox/tutorial/align_form_elements_with_flexbox.cfm -->
<style>
.wrapper {
Expand All @@ -18,18 +18,18 @@
.form-row {
display: flex;
justify-content: flex-end;
padding: .5em;
padding: 0.5em;
}
.form-row > label {
padding: .5em 1em .5em 0;
padding: 0.5em 1em 0.5em 0;
flex: 1;
}
.form-row > input {
flex: 2;
}
.form-row > input,
.form-row > button {
padding: .5em;
.form-row > button,
.form-row > input {
padding: 0.5em;
}
.form-row > button {
background: gray;
Expand Down Expand Up @@ -58,25 +58,24 @@
</style>
</head>
<body>
<h1>Transfer FIL from 0x to f1 address</h1>
<form id="transfer-form">
<ul class="wrapper">
<li class="form-row">
<h1>Transfer FIL from 0x to f1 address</h1>
<form id="transfer-form">
<ul class="wrapper">
<li class="form-row">
<label for="amount">Amount:</label>
<input type="text" id="amount" name="amount" placeholder="Enter FIL amount" />
</li>
<li class="form-row">
<input type="text" id="amount" name="amount" placeholder="Enter FIL amount"/>
</li>
<li class="form-row">
<label for="recipient">Recipient:</label>
<input type="text" id="recipient" name="recipient" placeholder="Enter the recepient's f1/t1 address" />
</li>
<li class="form-row">
<input type="text" id="recipient" name="recipient" placeholder="Enter the recepient's f1/t1 address"/>
</li>
<li class="form-row">
<button type="submit" id="submit-button">Transfer</button>
</li>
<li class="form-row" id="tx-link">
</li>
</ul>
</form>
</li>
<li class="form-row" id="tx-link"></li>
</ul>
</form>

<script type="module" src="/src/main.ts"></script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion packages/snap/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "filsnap",
"version": "1.0.0",
"description": "Filsnap - Metamask snap to interact with Filecoin dapps.",
"description": "Connect to Filecoin dapps using Metamask. Manage Filecoin accounts, send FIL to Native and FEVM accounts and enable FEVM transaction insights.",
"license": "(Apache-2.0 AND MIT)",
"author": "Protocol Labs",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "1.0.0",
"description": "Metamask snap to enable developers to add Filecoin integration to their dapps.",
"proposedName": "Filecoin Snap",
"description": "Connect to Filecoin dapps using Metamask. Manage Filecoin accounts, send FIL to Native and FEVM accounts and enable FEVM transaction insights.",
"proposedName": "Filecoin Wallet",
"repository": {
"type": "git",
"url": "https://github.com/filecoin-project/filsnap.git"
},
"source": {
"shasum": "eHj3BcmztnJhZ/N07SztFOIXivo3IRcCCBn/okkGTTU=",
"shasum": "jYrFVl+onMKtEUYElA4+f16Z+7Dzuen9KoF5FfT7+fs=",
"location": {
"npm": {
"filePath": "dist/snap.js",
Expand Down

0 comments on commit 54c2783

Please sign in to comment.