Skip to content

Commit

Permalink
Move contracts to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
d0rich committed Nov 25, 2023
1 parent a2afb79 commit aa3c8d5
Show file tree
Hide file tree
Showing 46 changed files with 75 additions and 54 deletions.
2 changes: 1 addition & 1 deletion apps/d.d0rich.me/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false"
},
"dependencies": {
"@d0rich/contracts": "*",
"@d0rich/esprit-design": "*",
"@d0rich/ton-contracts": "*",
"@orbs-network/ton-access": "^2.3.3",
"@tonconnect/ui": "^2.0.0-beta.6",
"@vueuse/core": "^10.6.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/d.d0rich.me/src/features/blog/model/DBlog.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DSocialNetworkBlog } from '@d0rich/contracts/wrappers/DSocialNetworkBlog'
import { DSocialNetworkBlog } from '@d0rich/ton-contracts/wrappers/DSocialNetworkBlog'

export class DBlog {
// eslint-disable-next-line no-useless-constructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { Address } from 'ton-core/dist/address/Address'
import { DSocialNetworkMaster } from '@d0rich/contracts/wrappers/DSocialNetworkMaster'
import { DSocialNetworkMaster } from '@d0rich/ton-contracts/wrappers/DSocialNetworkMaster'

const masterContractAddress = 'kQBzW8ZRV2T-rx3xfAwIZyiO2FN4wCpI7If4Exj7vX9DElJG'

Expand Down
2 changes: 1 addition & 1 deletion apps/d.d0rich.me/src/features/post/model/DPost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Address } from 'ton-core'
import {
DSocialNetworkPost,
type NftMetadata
} from '@d0rich/contracts/wrappers/DSocialNetworkPost'
} from '@d0rich/ton-contracts/wrappers/DSocialNetworkPost'

export type DPostModel = {
url: string
Expand Down
4 changes: 3 additions & 1 deletion ignore-builds-master.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const isDD0richMeChanged = changesList.includes('apps/d.d0rich.me')

// Contracts

const areContractsChanged = changesList.includes('contracts/contracts')
const areContractsChanged = changesList.includes(
'packages/ton-contracts/contracts'
)

// Packages
const isNuxtContentMermaidChanged = changesList.includes(
Expand Down
96 changes: 55 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"private": true,
"workspaces": [
"apps/*",
"packages/*",
"contracts"
"packages/*"
],
"scripts": {
"prepare:all": "turbo run prepare",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@d0rich/contracts",
"name": "@d0rich/ton-contracts",
"version": "0.0.1",
"private": true,
"scripts": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 11 additions & 5 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,31 @@
"dependsOn": ["prepare"],
"outputs": ["dist"]
},
"@d0rich/contracts#build": {
"@d0rich/ton-contracts#build": {
"outputs": ["dist"]
},
"d.d0rich.me#build": {
"dependsOn": ["@d0rich/contracts#build", "@d0rich/esprit-design#build"],
"dependsOn": [
"@d0rich/ton-contracts#build",
"@d0rich/esprit-design#build"
],
"outputs": ["dist"]
},
"typecheck": {},
"test": {},
"@d0rich/contracts#test": {
"dependsOn": ["@d0rich/contracts#build"]
"@d0rich/ton-contracts#test": {
"dependsOn": ["@d0rich/ton-contracts#build"]
},
"dev": {
"cache": false,
"persistent": true
},
"d0rich.me#dev": {},
"d.d0rich.me#dev": {
"dependsOn": ["@d0rich/contracts#build", "@d0rich/esprit-design#build"]
"dependsOn": [
"@d0rich/ton-contracts#build",
"@d0rich/esprit-design#build"
]
},
"d0xigen.d0rich.me#dev": {},
"design.d0rich.me#dev": {},
Expand Down

0 comments on commit aa3c8d5

Please sign in to comment.