From 98dfbe12472cf55cd23d8446a40e958ecfe856ac Mon Sep 17 00:00:00 2001 From: Chibuike Osita Date: Fri, 5 Jul 2024 12:42:49 +0100 Subject: [PATCH 1/2] more cleanups --- lib/index.ts | 1 - lib/queries.ts | 16 ++++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/lib/index.ts b/lib/index.ts index 7083c1d..a973068 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -134,7 +134,6 @@ export default class CoincordCoreWallet { async sendTokenCheck(request: { recipient: string; - sender: string | null; reference: string | null; amount: number; network: NetworkCollection; diff --git a/lib/queries.ts b/lib/queries.ts index 6644683..8ce9de6 100644 --- a/lib/queries.ts +++ b/lib/queries.ts @@ -6,7 +6,6 @@ export const app = gql` app { id name - api_key webhook_url app_wallet { id @@ -46,8 +45,6 @@ export const addresses = gql` token { name ticker - token_set - contract_address } transactions { id @@ -157,15 +154,13 @@ export const createAddressCollection = gql` export const sendTokenCheck = gql` mutation sendTokenCheck( $recipient: String! - $sender: String $reference: String $amount: Float! $token: TokenCollection! - $network: NetworkCollection + $network: Network ) { _sendTokenCheck( recipient: $recipient - sender: $sender amount: $amount reference: $reference token: $token @@ -174,9 +169,7 @@ export const sendTokenCheck = gql` id recipient hash_ref - type amount - created_at } } `; @@ -232,7 +225,7 @@ export const getEstimateQuery = gql` mutation FEE_ESTIMATE( $token: TokenCollection! $value: Float! - $network: NetworkCollection! + $network: Network! $recipient: String! ) { _getEstimate( @@ -249,8 +242,8 @@ export const getEstimateQuery = gql` `; export const generateClientSecret = gql` - mutation GENERATE_CLIENT_SECRET() { - app_generateClientSecret() { + mutation GENERATE_CLIENT_SECRET { + app_generateClientSecret { client_id client_secret } @@ -270,7 +263,6 @@ export const updateAppDetails = gql` ) { id name - api_key webhook_url } } From 23c1ee5c86a47de12f3f29bbd553e503614ed837 Mon Sep 17 00:00:00 2001 From: Chibuike Osita Date: Fri, 5 Jul 2024 12:44:34 +0100 Subject: [PATCH 2/2] more cleanups --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b9c338..588dfe0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coincord/coincord-core-sdk-wallet", - "version": "0.1.7", + "version": "0.1.7.alpha.1", "description": "A module for managing and manipulating operations with bitcoin, ethereum and litecoin wallets.", "main": "dist/lib/index.js", "publishConfig": {