Skip to content

Commit f823dce

Browse files
committed
feat: add ContractView using contract-builder
1 parent d2c0caa commit f823dce

File tree

9 files changed

+372
-38
lines changed

9 files changed

+372
-38
lines changed

package-lock.json

Lines changed: 242 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"vue-router": "^4.1.6"
1818
},
1919
"devDependencies": {
20+
"@aeternity/contract-builder": "github:aeternity/contract-builder#feature/sdk-13-beta",
2021
"@babel/core": "^7.21.3",
2122
"@babel/eslint-parser": "^7.21.3",
2223
"@vue/cli-plugin-babel": "~5.0.8",

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h1>Welcome To Aeternity</h1>
55
<div id="nav">
66
<router-link to="/">Home</router-link> |
7-
<router-link to="/about">About</router-link>
7+
<router-link to="/contract">Contract</router-link>
88
</div>
99
</div>
1010

src/router/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const routes = [
88
component: Home
99
},
1010
{
11-
path: '/about',
12-
name: 'About',
11+
path: '/contract',
12+
name: 'Contract',
1313
// route level code-splitting
14-
// this generates a separate chunk (about.[hash].js) for this route
14+
// this generates a separate chunk (contract.[hash].js) for this route
1515
// which is lazy-loaded when the route is visited.
16-
component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
16+
component: () => import(/* webpackChunkName: "contract" */ '../views/ContractView.vue')
1717
}
1818
]
1919

src/utils/aeternity/contracts/Idenitity.aes

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
contract Multiplier =
2+
record state = { factor: int }
3+
entrypoint init(f : int) : state = { factor = f }
4+
entrypoint calc(x : int) = x * state.factor

src/views/AboutView.vue

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)