Skip to content

Commit

Permalink
Replace deprecated ton packages
Browse files Browse the repository at this point in the history
  • Loading branch information
d0rich committed Nov 26, 2023
1 parent 60985d0 commit 7a148ec
Show file tree
Hide file tree
Showing 25 changed files with 239 additions and 195 deletions.
2 changes: 2 additions & 0 deletions apps/d.d0rich.me/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"@dicebear/collection": "^7.0.1",
"@dicebear/core": "^7.0.1",
"@orbs-network/ton-access": "^2.3.3",
"@ton/core": "^0.53.0",
"@ton/ton": "^13.9.0",
"@tonconnect/ui": "^2.0.0-beta.6",
"@vueuse/core": "^10.6.1",
"consola": "^3.2.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/d.d0rich.me/src/entities/post/model/PostOffChain.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Address } from 'ton-core'
import type { Address } from '@ton/core'

export type PostOffChain = {
url: string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Address } from 'ton-core/dist/address/Address'
import { Address } from '@ton/core/dist/address/Address'
import type { PostOnChain, PostOffChain } from '../model'
import { etxChar, stxChar } from './symbols'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineStore } from 'pinia'
import { ref, computed } from 'vue'
import { Address } from 'ton-core/dist/address/Address'
import { Address } from '@ton/core/dist/address/Address'
import { DSocialNetworkMaster } from '@d0rich/ton-contracts/wrappers/DSocialNetworkMaster'
import { useAppConfig } from '../../../shared/composables/useAppConfig'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { computed, type ComputedRef } from 'vue'
import type { ContractProvider, Contract } from 'ton-core'
import type { ContractProvider, Contract } from '@ton/core'
import { useTonConnectStore } from '../stores/tonConnectStore'

export function useContractProvider(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { computed, type ComputedRef } from 'vue'
import type { OpenedContract, Contract } from 'ton-core'
import type { OpenedContract, Contract } from '@ton/core'
import { useTonConnectStore } from '../stores/tonConnectStore'

export function useOpenedContract<T extends Contract>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineStore } from 'pinia'
import { ref, computed, watch } from 'vue'
import type { SenderArguments, Sender } from 'ton-core'
import { Address } from 'ton-core/dist/address/Address'
import type { SenderArguments, Sender } from '@ton/core'
import { Address } from '@ton/core/dist/address/Address'
import { CHAIN } from '@tonconnect/protocol'
import { TonConnectUI } from '@tonconnect/ui'
import { getHttpEndpoint, type Network } from '@orbs-network/ton-access'
import { TonClient } from 'ton/dist/client/TonClient'
import { TonClient } from '@ton/ton/dist/client/TonClient'
import { useAppConfig } from '@/shared/composables/useAppConfig'

export const useTonConnectStore = defineStore('ton-connect', () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/d.d0rich.me/src/pages/CreateBlog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ref, onBeforeUnmount } from 'vue'
import { useRouter } from 'vue-router'
import { consola } from 'consola'
import { toNano } from 'ton-core/dist/utils/convert'
import { toNano } from '@ton/core/dist/utils/convert'
import {
DCard,
DCardTitle,
Expand Down
Loading

0 comments on commit 7a148ec

Please sign in to comment.