-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathwallet-connect.ts
More file actions
57 lines (53 loc) · 1.92 KB
/
Copy pathwallet-connect.ts
File metadata and controls
57 lines (53 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import { CoreTypes, ProposalTypes } from '@walletconnect/types';
import { CHAIN_ID } from './env';
export enum ChiaMethod {
LogIn = 'chia_logIn',
GetWallets = 'chia_getWallets',
GetTransaction = 'chia_getTransaction',
GetWalletBalance = 'chia_getWalletBalance',
GetCurrentAddress = 'chia_getCurrentAddress',
SendTransaction = 'chia_sendTransaction',
SignMessageById = 'chia_signMessageById',
SignMessageByAddress = 'chia_signMessageByAddress',
VerifySignature = 'chia_verifySignature',
GetNextAddress = 'chia_getNextAddress',
GetFeeEstimate = 'chia_getFeeEstimate',
GetSyncStatus = 'chia_getSyncStatus',
GetAllOffers = 'chia_getAllOffers',
GetOffersCount = 'chia_getOffersCount',
CreateOfferForIds = 'chia_createOfferForIds',
CancelOffer = 'chia_cancelOffer',
CheckOfferValidity = 'chia_checkOfferValidity',
TakeOffer = 'chia_takeOffer',
GetOfferSummary = 'chia_getOfferSummary',
GetOfferData = 'chia_getOfferData',
GetOfferRecord = 'chia_getOfferRecord',
CreateNewCatWallet = 'chia_createNewCATWallet',
GetCatWalletInfo = 'chia_getCATWalletInfo',
GetCatAssetId = 'chia_getCATAssetId',
SpendCat = 'chia_spendCAT',
AddCatToken = 'chia_addCATToken',
GetNfts = 'chia_getNFTs',
GetNftInfo = 'chia_getNFTInfo',
MintNft = 'chia_mintNFT',
TransferNft = 'chia_transferNFT',
GetNftsCount = 'chia_getNFTsCount',
CreateNewDidWallet = 'chia_createNewDIDWallet',
SetDidName = 'chia_setDIDName',
SetNftDid = 'chia_setNFTDID',
GetNftWalletsWithDids = 'chia_getNFTWalletsWithDIDs',
GetWalletAddresses = 'chia_getWalletAddresses',
}
export const REQUIRED_NAMESPACES: ProposalTypes.RequiredNamespaces = {
chia: {
methods: Object.values(ChiaMethod),
chains: [CHAIN_ID],
events: [],
},
};
export const METADATA: CoreTypes.Metadata = {
name: 'Test App',
description: 'A test application for WalletConnect.',
url: '#',
icons: ['https://walletconnect.com/walletconnect-logo.png'],
};