This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"address":"0:39625d01bdabb28a835d8e1d798f3e34db8ec9db95874db70a4342ecbdbb767f", | |
"collection":{ | |
"address":"-1:8c4e183cff192de25b786702db5a57f79c9278ffb878dc3910472314ed001a2d", | |
"name":"" | |
}, | |
"collectionAddress":"-1:8c4e183cff192de25b786702db5a57f79c9278ffb878dc3910472314ed001a2d", | |
"dns":"undefined", | |
"index":6496602548500314000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tx = curWallet.methods.transfer({ | |
toAddress: domainAddress, | |
amount: Ton.toNano('0.05').toString(), | |
seqno: seqno, | |
payload, | |
sendMode: 3, | |
secretKey | |
}); | |
const queryMsg = await tx.getQuery(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tasks = [ | |
{ | |
description: 'Test', | |
completed: false | |
}, | |
{ | |
description: 'Test2', | |
completed: true | |
} | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nft_items": [ | |
{ | |
"address": "0:9f2d3f5d8828f1b9aa7beeebef4e65ee49d256a8fc93ab0e43c405b72c721529", | |
"collection_address": "0:9b66f43e077f5a370d95de8406e8b12482cb5feb2e843f8970855ce4bc5709c3", | |
"index": 49, | |
"init": true, | |
"metadata": { | |
"attributes": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getTimeSec() { | |
return Math.floor(Date.now() / 1000); | |
} | |
const sec = getTimeSec(); | |
console.log(sec); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// в компоненте | |
const walletStore = useWallet(); | |
const unlockVault = useUnlockVault(); | |
// в коллбеке | |
const wallet = walletStore.vault.tonWallet; | |
const vault = await unlockVault(); // Показываем ввод пина и ждем анлока | |
const secretKey = await vault.getTonPrivateKey(); // достаем приватный ключ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0", | |
"body": { | |
"type": "nft-transfer", | |
"params": { | |
"newOwnerAddress": "EQAn7UgXbrjmgAApFV5FzuVX4P2adn_S3O3gwFpxgi2yf_Cy", | |
"nftItemAddress": "EQBWPunGskn1VravuYLccv1Hn4hnTThBmMl01KFaCKk9Vn3j", | |
"amount": "100000000", | |
"forwardAmount": "20000000", | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"build": "tsc -p tsconfig.json", | |
"build:watch": "tsc -w -p tsconfig.json", | |
"start:dev": "NODE_ENV=development nodemon build/server.js", | |
"start:prod": "NODE_ENV=production nodemon build/server.js", | |
"start:production": "concurrently \"yarn build:watch\" \"yarn start:prod\"", | |
"start": "concurrently \"yarn build:watch\" \"yarn start:dev\"", | |
}, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { AsyncStorage } from 'react-native'; | |
import UUID from 'uuid-random'; | |
import { useApolloClient } from '@apollo/client'; | |
import { useUnregisterDeviceMutation } from '../graphql/generated'; | |
[...] | |
export const AuthProvider: React.FC = ({ children }) => { | |
const [userState, setUserState] = React.useState<User>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { createStackNavigator } from '@react-navigation/stack'; | |
import { MainStackParams } from './types/MainStackParams'; | |
import { ConversationScreen } from '../screens/ConversationScreen'; | |
import { RegisterPushNotifications } from '../utils/Notifications'; | |
import { useUser } from '../contexts/AuthContext'; | |
const MainStack = createStackNavigator<MainStackParams>(); | |
export const MainStackScreens: React.FC = () => ( |
NewerOlder