t-isol 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/bun.lock +30 -0
- package/contracts/ITransferAuthorize.sol +63 -0
- package/contracts/TransferAuthorize.sol +131 -0
- package/contracts/kit/ERC20xTransferWithAuthorize.sol +102 -0
- package/docs/README.md +1 -0
- package/docs/bun.lock +1442 -0
- package/docs/docs/pages/concept.mdx +1 -0
- package/docs/docs/pages/contracts/base/BasexERC20.mdx +1 -0
- package/docs/docs/pages/contracts/kit/ERC20WrappedxWithAuthorize.mdx +1 -0
- package/docs/docs/pages/contracts/kit/ERC20xTransferWithAuthorize.mdx +1 -0
- package/docs/docs/pages/contracts/kit/KitxERC20.mdx +1 -0
- package/docs/docs/pages/contracts/modular/ERC20xTransferWithAuthorize.mdx +1 -0
- package/docs/docs/pages/example.mdx +3 -0
- package/docs/docs/pages/getting-started.mdx +19 -0
- package/docs/docs/pages/index.mdx +34 -0
- package/docs/package.json +20 -0
- package/docs/tsconfig.json +24 -0
- package/docs/vocs.config.ts +97 -0
- package/package.json +15 -0
- package/tsconfig.json +29 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Concept
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# BasexERC20
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# ERC20WrappedxWithAuthorize
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# ERC20xTransferWithAuthorize
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# KitxERC20
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# ERC20xTransferWithAuthorize
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: landing
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
import { HomePage } from 'vocs/components'
|
|
6
|
+
|
|
7
|
+
<HomePage.Root>
|
|
8
|
+
<HomePage.Logo />
|
|
9
|
+
<HomePage.Tagline>Interface SmartContract Solidity</HomePage.Tagline>
|
|
10
|
+
:::code-group
|
|
11
|
+
|
|
12
|
+
```bash [npm]
|
|
13
|
+
npm i isol
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
```bash [bun]
|
|
18
|
+
bun add isol
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```bash [yarn]
|
|
22
|
+
yarn add isol
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```bash [pnpm]
|
|
26
|
+
pnpm add isol
|
|
27
|
+
```
|
|
28
|
+
:::
|
|
29
|
+
<HomePage.Description>A modern set of extensible smart contract components, designed for future trends and broad utility. Simplifies development, accelerates deployment, and ensures efficiency and security by leveraging popular, standard libraries like **OpenZeppelin**.</HomePage.Description>
|
|
30
|
+
<HomePage.Buttons>
|
|
31
|
+
<HomePage.Button href="/getting-started" variant="accent">Get started</HomePage.Button>
|
|
32
|
+
<HomePage.Button href="https://github.com/thefactlab-org">GitHub</HomePage.Button>
|
|
33
|
+
</HomePage.Buttons>
|
|
34
|
+
</HomePage.Root>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "isol-docs",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vocs dev",
|
|
8
|
+
"build": "vocs build",
|
|
9
|
+
"preview": "vocs preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"react": "latest",
|
|
13
|
+
"react-dom": "latest",
|
|
14
|
+
"vocs": "latest"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@types/react": "latest",
|
|
18
|
+
"typescript": "latest"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
|
|
9
|
+
/* Bundler mode */
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"allowImportingTsExtensions": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"isolatedModules": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"jsx": "react-jsx",
|
|
16
|
+
|
|
17
|
+
/* Linting */
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"noFallthroughCasesInSwitch": true
|
|
22
|
+
},
|
|
23
|
+
"include": ["**/*.ts", "**/*.tsx"]
|
|
24
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineConfig } from "vocs";
|
|
2
|
+
import { version } from "./package.json";
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
title: "isol",
|
|
6
|
+
banner:
|
|
7
|
+
"Dacc-js is open-source software. Use at your own risk and responsibility. See [Privacy & Terms](/privacy-terms) for details.",
|
|
8
|
+
editLink: {
|
|
9
|
+
pattern:
|
|
10
|
+
"https://github.com/thefactlab-org/isol/edit/main/docs/docs/pages/:path",
|
|
11
|
+
text: "Suggest changes to this page",
|
|
12
|
+
},
|
|
13
|
+
sidebar: [
|
|
14
|
+
{
|
|
15
|
+
text: "Getting Started",
|
|
16
|
+
link: "/getting-started",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
text: "Concept",
|
|
20
|
+
link: "/concept",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
text: "Example",
|
|
24
|
+
link: "/example",
|
|
25
|
+
},
|
|
26
|
+
// {
|
|
27
|
+
// text: "Concept",
|
|
28
|
+
// items: [
|
|
29
|
+
// {
|
|
30
|
+
// text: "Design Concept",
|
|
31
|
+
// link: "/concept/design",
|
|
32
|
+
// },
|
|
33
|
+
// ],
|
|
34
|
+
// },
|
|
35
|
+
{
|
|
36
|
+
// text: 'API Reference',
|
|
37
|
+
text: "Contracts",
|
|
38
|
+
items: [
|
|
39
|
+
// { text: 'xerc20', link: '/erc20/xerc20' },
|
|
40
|
+
{
|
|
41
|
+
text: "Base x",
|
|
42
|
+
collapsed: false,
|
|
43
|
+
items: [
|
|
44
|
+
{ text: "path: isol/contracts/base" },
|
|
45
|
+
{ text: "BasexERC20", link: "/contracts/base/BasexERC20" },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
text: "Kit x",
|
|
50
|
+
collapsed: false,
|
|
51
|
+
items: [
|
|
52
|
+
{ text: "path: isol/contracts/kit" },
|
|
53
|
+
{ text: "KitxERC20", link: "/contracts/kit/KitxERC20" },
|
|
54
|
+
{ text: "ERC20xTransferWithAuthorize", link: "/contracts/kit/ERC20xTransferWithAuthorize" },
|
|
55
|
+
{ text: "ERC20WrappedxWithAuthorize", link: "/contracts/kit/ERC20WrappedxWithAuthorize" },
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
// text: "Modular x Transferable Auth",
|
|
60
|
+
text: "Modular x",
|
|
61
|
+
collapsed: false,
|
|
62
|
+
items: [
|
|
63
|
+
{ text: "path: isol/contracts/modular" },
|
|
64
|
+
{ text: "ERC20xTransferWithAuthorize", link: "/contracts/modular/ERC20xTransferWithAuthorize" },
|
|
65
|
+
// { text: "ERC20xWrappedWithAuthorize", link: "/contracts/modular/ERC20xWrappedWithAuthorize" },
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
|
|
73
|
+
socials: [
|
|
74
|
+
{
|
|
75
|
+
icon: "x",
|
|
76
|
+
link: "https://x.com/thefactlab_org",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
icon: "github",
|
|
80
|
+
link: "https://github.com/thefactlab-org/isol",
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
topNav: [
|
|
84
|
+
{ text: "Quick Start", link: "/getting-started#quick-start" },
|
|
85
|
+
// { text: "Technical", link: "/concept/technical" },
|
|
86
|
+
// { text: "Examples", link: "/examples" },
|
|
87
|
+
{
|
|
88
|
+
text: version,
|
|
89
|
+
items: [
|
|
90
|
+
{
|
|
91
|
+
text: "Changelog",
|
|
92
|
+
link: "https://github.com/thefactlab-org/isol/blob/main/CHANGELOG.md",
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "t-isol",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"module": "index.ts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@types/bun": "latest"
|
|
8
|
+
},
|
|
9
|
+
"peerDependencies": {
|
|
10
|
+
"typescript": "^5"
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@openzeppelin/contracts": "^5.4.0"
|
|
14
|
+
}
|
|
15
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// Environment setup & latest features
|
|
4
|
+
"lib": ["ESNext"],
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"module": "Preserve",
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"jsx": "react-jsx",
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
|
|
11
|
+
// Bundler mode
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"allowImportingTsExtensions": true,
|
|
14
|
+
"verbatimModuleSyntax": true,
|
|
15
|
+
"noEmit": true,
|
|
16
|
+
|
|
17
|
+
// Best practices
|
|
18
|
+
"strict": true,
|
|
19
|
+
"skipLibCheck": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
"noUncheckedIndexedAccess": true,
|
|
22
|
+
"noImplicitOverride": true,
|
|
23
|
+
|
|
24
|
+
// Some stricter flags (disabled by default)
|
|
25
|
+
"noUnusedLocals": false,
|
|
26
|
+
"noUnusedParameters": false,
|
|
27
|
+
"noPropertyAccessFromIndexSignature": false
|
|
28
|
+
}
|
|
29
|
+
}
|