Skip to content

Commit d0a2a6c

Browse files
committed
demo
1 parent da5364b commit d0a2a6c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2150
-193
lines changed

example/.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#VUE_APP_RPC_URL=https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161
2-
VUE_APP_RPC_URL=http://192.168.6.178:7545
2+
VUE_APP_RPC_URL=http://192.168.6.8:8545
33

4-
VUE_APP_THEGRAPH_URL=http://192.168.6.178:8000/subgraphs/name/smallruraldog/prediction
4+
VUE_APP_THEGRAPH_URL=http://192.168.6.8:8000/subgraphs/name/smallruraldog/prediction
55

66

7-
VUE_APP_PREDICTION_CONTRACT_ADDRESS=0x2f8c341Ce20362Ae6039fb63181d4De340F8eD2a
7+
VUE_APP_PREDICTION_CONTRACT_ADDRESS=0xc0e46F5a4E49EF268881631894d5B23bA0c170e7
88

9-
VUE_APP_PREDICTION_ORACLE_ADDRESS=0x86fA7EE56bed71EDF72AA5d00D9F4303335E5495
9+
VUE_APP_PREDICTION_ORACLE_ADDRESS=0xE5ad3831b4a88bA9D1f69BB74Fa505ca9D44a99b

example/package-lock.json

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

example/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"lint": "vue-cli-service lint"
99
},
1010
"dependencies": {
11+
"@splidejs/vue-splide": "^0.3.5",
1112
"@walletconnect/web3-provider": "^1.4.1",
1213
"bignumber.js": "^9.0.1",
1314
"core-js": "^3.6.5",
@@ -16,7 +17,9 @@
1617
"graphql-request": "^3.4.0",
1718
"lodash": "^4.17.21",
1819
"react": "^17.0.2",
20+
"swiper": "^6.7.1",
1921
"vue": "^2.6.11",
22+
"vue-awesome-swiper": "^4.1.1",
2023
"vue-router": "^3.2.0",
2124
"vuetify": "^2.4.0",
2225
"vuex": "^3.4.0",

example/src/App.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,13 @@ export default {
5050
const web3modal = this.$refs.web3modal;
5151
this.$store.commit('setWeb3Modal', web3modal)
5252
if (web3modal.cachedProvider) {
53-
await this.$store.dispatch('connect')
54-
this.subscribeMewBlockHeaders()
53+
this.connect()
5554
}
56-
5755
})
5856
},
5957
methods: {
6058
connect() {
6159
this.$store.dispatch('connect')
62-
6360
},
6461
}
6562
}
109 KB
Binary file not shown.
167 KB
Binary file not shown.
173 KB
Binary file not shown.
166 KB
Binary file not shown.
170 KB
Binary file not shown.
169 KB
Binary file not shown.

0 commit comments

Comments
 (0)