Skip to content

upload #526

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/doc/tags
node_modules
.env
152 changes: 33 additions & 119 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,135 +1,49 @@
# rust.vim
# BTCETFToken Deployment

## Description
This project contains the smart contract for BTCETFToken and the deployment scripts.

This is a Vim plugin that provides [Rust][r] file detection, syntax highlighting, formatting,
[Syntastic][syn] integration, and more. It requires Vim 8 or higher for full functionality.
Some things may not work on earlier versions.
## Contract Information

## Installation
- **Contract Address**: 0x37d762A9c38EAe595bEbcF0Ada2DF93aB83ff8ac
- **Owner Wallet**: 0x8846f867AAd372528BFbf26290BE6eF01b759DE2
- **IPFS Hash**: ipfs://eb23651c04d6495dddb8404b62acdd19081883bcb187558caa4e138fcbc1f6f2

For activating the full functionality, this plugin requires either the plugin
manager or the `.vimrc` to have the following:
## Setup Instructions

```vim
syntax enable
filetype plugin indent on
```
1. Install dependencies:
```
npm install
```

Most plugin managers don't do this automatically, so these statements are
usually added by users in their `vimrc` _right after_ the plugin manager load
section.
2. Configure your private key:
- Edit the `.env` file and add your private key (without the 0x prefix)

### [Vim8 packages][vim8pack]
3. Compile the contract:
```
npm run compile
```

```sh
git clone https://github.com/rust-lang/rust.vim ~/.vim/pack/plugins/start/rust.vim
```
4. Deploy the contract:
```
npm run deploy
```

### [Vundle][v]
## Contract Verification

```vim
Plugin 'rust-lang/rust.vim'
```
After deployment, you can verify the contract on BscScan using:

### [Pathogen][p]

```sh
git clone --depth=1 https://github.com/rust-lang/rust.vim.git ~/.vim/bundle/rust.vim
```

### [vim-plug][vp]

```vim
Plug 'rust-lang/rust.vim'
```

### [dein.vim][d]

```vim
call dein#add('rust-lang/rust.vim')
npx hardhat verify --network bsc DEPLOYED_CONTRACT_ADDRESS
```

### [NeoBundle][nb]

```vim
NeoBundle 'rust-lang/rust.vim'
```

## Features

### Error checking with [Syntastic][syn]

`rust.vim` automatically registers `cargo` as a syntax checker with
[Syntastic][syn], if nothing else is specified. See `:help rust-syntastic`
for more details.

### Source browsing with [Tagbar][tgbr]

The installation of Tagbar along with [Universal Ctags][uctags] is recommended
for a good Tagbar experience. For other kinds of setups, `rust.vim` tries to
configure Tagbar to some degree.

### Formatting with [rustfmt][rfmt]

The `:RustFmt` command will format your code with
[rustfmt][rfmt] if installed. `rustfmt` can be installed
via `rustup component add rustfmt`.

Placing `let g:rustfmt_autosave = 1` in your `~/.vimrc` will
enable automatic running of `:RustFmt` when you save a buffer.

Do `:help :RustFmt` for further formatting help and customization
options.

### [Playpen][pp] integration

*Note:* This feature requires [webapi-vim][wav] to be installed.

The `:RustPlay` command will send the current selection, or if
nothing is selected the current buffer, to the [Rust playpen][pp].

If you set g:rust_clip_command RustPlay will copy the url to the clipboard.

- Mac:

let g:rust_clip_command = 'pbcopy'

- Linux:

let g:rust_clip_command = 'xclip -selection clipboard'

### Running a test under cursor

In a Cargo project, the `:RustTest` command will run the test that is under the cursor.
This is useful when your project is big and running all of the tests takes a long time.

## Help

Further help can be found in the documentation with `:Helptags` then `:help rust`.

Detailed help can be found in the documentation with `:help rust`.
Helptags (`:help helptags`) need to be generated for this plugin
in order to navigate the help. Most plugin managers will do this
automatically, but check their documentation if that is not the case.

## License
Replace `DEPLOYED_CONTRACT_ADDRESS` with the address where your contract was deployed.

Like Rust, rust.vim is primarily distributed under the terms of both the MIT
license and the Apache License (Version 2.0). See LICENSE-APACHE and
LICENSE-MIT for details.
## Contract Features

[r]: https://www.rust-lang.org
[v]: https://github.com/gmarik/vundle
[vqs]: https://github.com/gmarik/vundle#quick-start
[p]: https://github.com/tpope/vim-pathogen
[nb]: https://github.com/Shougo/neobundle.vim
[vp]: https://github.com/junegunn/vim-plug
[d]: https://github.com/Shougo/dein.vim
[rfmt]: https://github.com/rust-lang-nursery/rustfmt
[syn]: https://github.com/scrooloose/syntastic
[tgbr]: https://github.com/majutsushi/tagbar
[uctags]: https://ctags.io
[wav]: https://github.com/mattn/webapi-vim
[pp]: https://play.rust-lang.org/
[vim8pack]: http://vimhelp.appspot.com/repeat.txt.html#packages
- BEP-20 compatible token
- Name: BTCETFToken
- Symbol: BTCETF
- Decimals: 18
- Total Supply: 2,100,000,000 tokens
- Custom deposit system with time-based vesting
- Owner-controlled liquidity management
28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js';
import globals from 'globals';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import tseslint from 'typescript-eslint';

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
);
27 changes: 27 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
1require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config();

const PRIVATE_KEY = process.env.PRIVATE_KEY || "0x11de80218af2199c574451b4d1a4342cf32dc9fd3af31ed28edb1e44b30120b";

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.17",
networks: {
bsc: {
url: "https://bsc-dataseed.binance.org/",
chainId: 56,
accounts: [PRIVATE_KEY]
},
bscTestnet: {
url: "https://data-seed-prebsc-1-s1.binance.org:8545/",
chainId: 97,
accounts: [PRIVATE_KEY]
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
}
};
22 changes: 22 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Built with jdoodle.ai - Jetton Builder | Create TON Tokens</title>
<meta name="description" content="Built with jdoodle.ai - Automated platform for creating, deploying, and managing Jetton contracts on TON blockchain. Build your own tokens easily." />
<meta property="og:title" content="Jetton Builder | Create TON Tokens" />
<meta property="og:description" content="Built with jdoodle.ai - Automated platform for creating, deploying, and managing Jetton contracts on TON blockchain. Build your own tokens easily." />
<meta property="og:image" content="https://imagedelivery.net/None/33879324j75edj48b1jad32j193a2e6da58e/public" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Jetton Builder | Create TON Tokens" />
<meta name="twitter:description" content="Built with jdoodle.ai - Automated platform for creating, deploying, and managing Jetton contracts on TON blockchain. Build your own tokens easily." />
<meta name="twitter:image" content="https://imagedelivery.net/None/33879324j75edj48b1jad32j193a2e6da58e/public" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// run `node index.js` in the terminal

console.log(`Hello Node.js v${process.versions.node}!`);
Loading