Skip to content

Commit

Permalink
release: 4.7.1 (#890)
Browse files Browse the repository at this point in the history
* feat(mobile): add signer & ledger support (#831)

* feat(mobile): signer support

* feat(mobile): ledger support (#835)

* bump(mobile): 4.5.0 (#836)

* fix(mobile): hidden amount background (#829)

* fix(mobile): fix ledger on android (#837)

* debug(mobile): add init error toast (#841)

* fix(mobile): reduce storage size (#842)

* feat(mobile): notcoin support (#843)

* feat(mobile): notcoin transfer action

* feat(mobile): burn notcoin vouchers

* NotcoinVerifyModal & fixes

* notcoin button in browser

* Update BurnVouchersModal.tsx

* fix ledger rename

* fix(mobile): signer & ledger flags (#844)

* feature(mobile): battery top-up (#833)

* wip

* fix ShowBalance button color

* wip

* feature(mobile): Battery top-up

* minor logic fix

* remove unused import

* persist keyboard

* fix(mobile): fix loadBatteryConfig

* fix condition

* fix keyboardAvoiding

* fix(mobile): remove replaceModal call

* Battery top-up improvements

* Misc battery updates

* add missing return

* fix(mobile): Battery topup QA fixes

* fix(mobile): Force relayer use for battery top-up (#845)

* fix(mobile): customize ledger wallet name (#846)

* fix(mobile): fix useShouldShowTokensButton (#847)

* fix(mobile): Update flag for recharge module (#848)

* fix(mobile): Update flag for recharge module

* fix: flag for promo list item

* fix(mobile): Topup QA fixes (#849)

* fix(mobile): Topup QA fixes

* fix merge bug

* fix(mobile): release fixes (#850)

* fix(mobile): show less charges when gift battery for friend (#851)

* fix(mobile): show less charges when gift battery for friend

* bump codeVersion

* fix(mobile): fix burn_not_available toast (#852)

* fix(mobile): fix TON position (#854)

* fix(mobile): stop support tonkeeper domain in manifest

* fix(mobile): Move TON to bottom

* fix(mobile): 4.5.0 qa fixes (#853)

* fix(mobile): burn voucher tx amount (#855)

* fix(mobile): Fix recharge asset logic (#856)

remove unnecessary logic

* feature(mobile): WELCOME TO FAMILY 🦫 (#857)

* fix(mobile): add signer_about_url to config (#858)

* fix(mobile): fix crash (#859)

* fix(mobile): fix crash

* cleanup

* fix(mobile): Remove useAnimatedKeyboard hook (#860)

* fix(mobile): Fix some texts (#861)

* fix(mobile): Fix some texts

* fix reserved amount

* fix(mobile): Remove subtitle

* fix (#862)

* bump 4.5.1 (#863)

* fix(mobile): Join TG step (#864)

* fix(mobile): Join TG step

* fix amount

* fix amount

* fix(mobile): bunch of fixes for hotfix (#865)

* fix(mobile): Adaptive wallet buttons (#868)

* fix(mobile): NFT trust field support (#869)

* fix(mobile): Small refactor createWalletInstance (#870)

* fix(mobile): Refactor createWalletInstance

* Some refactor

* bump(mobile): 4.5.3 (#871)

* fix(mobile): Invalidate unknown watch-only contracts properly (#872)

* fix(mobile): Fix breaking change (#873)

* fix(mobile): scroll on switch wallet (#875)

* fix(mobile): diamonds accent color (#876)

* feat(mobile): slider text animation (#867)

* feat(mobile): bump firebase (#877)

* feat(mobile): update ios icon (#878)

* fix(mobile): tonconnect fixes (#880)

* feature(mobile): Mark scam NFTs (#874)

* wip

* Add scam endpoint

* fix endpoint

* bump(mobile): 4.6.0

* Hide spam NFTs from history

* feature(mobile): Battery refunds dApp (#879)

* feature(mobile): Battery refunds dApp

* bump(mobile): 4.6.0

* fix(mobile): disable Navbar

* fix(mobile): refund && scam fixes (#883)

* fix(mobile): Button colors

* fix(mobile): Mark transactions with spam NFTs, update naming

* fix(mobile): fix for NFTs with nullable address (#885)

* bump(mobile): 4.6.1

* add testflight build details

* fix test details

* fix(mobile): Bunch of fixes for release

* feat(mobile): wallet W5 (#2)

* fix(mobile): Battery min amount

* feature(mobile): Gasless transactions

Bring back inscriptions support

wip

feature(mobile): Gasless payments

feature(mobile): Gasless payments

fix gasless payload

fundReceiver -> excessesAddress

fix excessesAccount

fix type

fix gasless

fix forward amount

get excessesAccount safely, fix NFT send

fix gasless without balance

fix(mobile): Gasless support from deeplink

Small fixes

* small fixes

* fix(mobile): w5 fixes (#7)

* fix(mobile): fix loadRate method (#8)

* bump(mobile): 3.6.1

* fix(mobile): Add TK_RELAYER_FEE opcode

* fix deeplinks and use recharge methods from cache

* fix sendAll

* bump to 4.6.1...

* fix sendMode for w5

* fix(mobile): optimize recursive fee estimation

* fix(mobile): memo

* fix(mobile): fix estimate fee when transfer by deeplink

* fix(mobile): Send fixes

* fix(mobile): fix jetton swap params

* fix fail

* feature(mobile): Buy USDT

* feature(mobile): Migrate from jUSDT

* fix

* remove console.log

* fix(mobile): Validate dApp URL

* fix(mobile): safe pending_transactions

* bump(mobile): 4.6.2

* fix double toNano call

* Bump(mobile): 4.6.2

* feature(mobile): support gasless BOLT

* fix param

* bump(mobile): 3.7.0

* bump(mobile): 4.7.0

* fix(mobile): design review fixes (#22)

* fix(mobile): update font type

* fix(mobile): Design review fixes

* Add "TON" tag for tether

* fix suggest for gasless

* fix(mobile): report not scam too

* fix(mobile): Top spacing on Android

* feature(mobile): More locales (#23)

* feature(mobile): More locales

* Android support

* fix(mobile): bump react-native-sse (#24)

* fix(mobile): Last-Event-ID header (#25)

* fix(mobile): fix exchange layout (#26)

* fix(mobile): signer fixes (#28)

* hotfix(mobile): 4.6.3 (#27)

* fix(mobile): Optimize requests

* bump(mobile): 4.6.3

* fix(mobile): Minor improvements (#29)

* fix(mobile): fix multiple pending events (#30)

* fix(mobile): fix multiple pending events

* fix iteratee

* fix(mobile): bunch of improvements (#31)

* fix(mobile): Bring back ErrorBoundary (#33)

* fix(mobile): Fix lockups (#32)

* fix(mobile): Fix lockups

* catch exceptions on emulation

* fix(mobile): Fix ErrorScreen (#34)

* fix(mobile): Fix condition (#35)

* fix(mobile): fix logout text position (#36)

* fix(mobile): release fixes (#37)

* fix(mobile): report as scam only if needed

* move backup status from prev wallet to w5

* fix gasless for signer

* fix(mobile): fix condition

* fix(mobile): bring back config load

* fix(mobile): force ltr in native code

* fix(mobile): fix android deeplinking handling

* fix(mobile): fix tr locale

* fix(mobile) show all button for sell (#38)

* fix(mobile): signer fixes (#39)

* fix(mobile): fix invalid encrypted comments (#40)

* fix(mobile): fix invalid encrypted comments

* feature(mobile): Refunds List.Item

* fix(mobile): bring back isActiveAccount check (#41)

* fix(mobile): Drop animation (#42)

* fix(mobile): Drop subscriptions and fix staking

* fix(mobile): Fix lockup send (#43)

* bump(mobile): 4.7.1

---------

Co-authored-by: Andrey Sorokin <[email protected]>
  • Loading branch information
voloshinskii and sorokin0andrey authored Jun 25, 2024
1 parent f532652 commit 3656e1c
Show file tree
Hide file tree
Showing 394 changed files with 28,032 additions and 5,078 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"pull_locales": "cd packages && cd shared && yarn pull_locales",
"postinstall": "patch-package",
"pods": "cd packages && cd mobile && yarn pods",
"icons": "cd packages && cd mobile && yarn icons",
"icons": "cd packages && cd uikit && yarn icons",
"codegen": "cd packages/@core-js && yarn codegen",
"start:mobile": "cd packages && cd mobile && yarn start",
"start:web": "cd packages && cd web && yarn start",
Expand Down
6 changes: 3 additions & 3 deletions packages/@core-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"@aws-crypto/sha256-js": "^3.0.0",
"@ethersproject/shims": "^5.7.0",
"@noble/ed25519": "1.7.3",
"@ton/core": "^0.53.0",
"@ton/crypto": "^3.2.0",
"@ton/ton": "^13.9.0",
"@ton/core": "0.54.0",
"@ton/crypto": "3.2.0",
"@ton/ton": "https://github.com/tonkeeper/tonkeeper-ton#build9",
"aes-js": "3.1.2",
"bignumber.js": "^9.1.1",
"ethers": "^6.7.1",
Expand Down
287 changes: 278 additions & 9 deletions packages/@core-js/src/BatteryAPI/BatteryGenerated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export interface Config {
excess_account: string;
}

export interface GaslessEstimation {
commission: string;
}

export interface Balance {
/** @example "10.250" */
balance: string;
Expand All @@ -45,23 +49,66 @@ export interface Balance {
units: BalanceUnitsEnum;
}

export interface RechargeMethods {
methods: {
/** @example "https://example.com/image.png" */
image?: string;
jetton_master?: string;
/** @example "10.0" */
min_bootstrap_value?: string;
type: RechargeMethodsTypeEnum;
/** @example "10.250" */
rate: string;
/** @example "usdt" */
symbol: string;
/** @example 6 */
decimals: number;
/** @example true */
support_gasless: boolean;
/** @example true */
support_recharge: boolean;
}[];
}

export interface Purchases {
/** @example 1 */
total_purchases: number;
/**
* if set, then there are more purchases to be loaded. Use this value as offset parameter in the next request.
* @example 10
*/
next_offset?: number;
purchases: {
/** @example 2 */
id: number;
user_purchase_id: number;
/** @example "android" */
type: PurchasesTypeEnum;
/** @example "10.250" */
value: string;
/**
* Amount describes the amount paid by the user for this purchase when we know it. For crypto purchases it is always set.
* @example "10.250"
*/
amount?: string;
/** @example 1200 */
charges: number;
/**
* Currency is set when we know it. For crypto purchases it is always set.
* @example "USDT"
*/
currency?: string;
/** @example "2006-01-02T15:04:05Z07:00" */
datetime: string;
refund_information?: {
fully_refunded: boolean;
partially_refunded: boolean;
pending_refund: boolean;
refunded?: {
/** @example "10.250" */
amount: string;
/** @example 1200 */
charges: number;
};
refundable?: {
/** @example "10.250" */
amount: string;
/** @example 1200 */
charges: number;
};
};
}[];
}

Expand All @@ -82,6 +129,8 @@ export interface AndroidBatteryPurchaseStatus {
}[];
}

export type AppStoreResponse = object;

export interface IOSBatteryPurchaseStatus {
transactions: {
/** @example "1000000790000000" */
Expand Down Expand Up @@ -138,10 +187,18 @@ export enum BalanceUnitsEnum {
Ton = 'ton',
}

export enum RechargeMethodsTypeEnum {
Jetton = 'jetton',
Ton = 'ton',
}

/** @example "android" */
export enum PurchasesTypeEnum {
RegularPurchase = 'regular-purchase',
Android = 'android',
Ios = 'ios',
PromoCode = 'promo-code',
Crypto = 'crypto',
Gift = 'gift',
}

/** @example "invalid-product-id" */
Expand Down Expand Up @@ -194,6 +251,11 @@ export enum GetBalanceParams1UnitsEnum {
Ton = 'ton',
}

export interface GetRechargeMethodsParams {
/** @default true */
include_recharge_only?: boolean;
}

export interface GetPurchasesParams {
/**
* @max 1000
Expand All @@ -214,6 +276,19 @@ export interface GetTransactionsParams {
offset?: number;
}

export interface ConfirmLargeRefundParams {
token: string;
}

export enum RemoveRefundStatusEnum {
Failed = 'failed',
Pending = 'pending',
}

export interface RemoveRefundParams {
token: string;
}

export type QueryParamsType = Record<string | number, any>;
export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;

Expand Down Expand Up @@ -524,6 +599,41 @@ export class BatteryGenerated<SecurityDataType extends unknown> {
...params,
});

/**
* @description This method returns on-chain recharge methods.
*
* @name GetRechargeMethods
* @request GET:/recharge-methods
*/
getRechargeMethods = (query: GetRechargeMethodsParams, params: RequestParams = {}) =>
this.http.request<RechargeMethods, Error>({
path: `/recharge-methods`,
method: 'GET',
query: query,
format: 'json',
...params,
});

/**
* No description
*
* @name RequestRefund
* @request POST:/request-refund
*/
requestRefund = (
data: {
/** @example 43 */
user_purchase_id: number;
},
params: RequestParams = {},
) =>
this.http.request<void, Error>({
path: `/request-refund`,
method: 'POST',
body: data,
...params,
});

/**
* @description This method returns a list of purchases made by a specific user.
*
Expand Down Expand Up @@ -554,6 +664,73 @@ export class BatteryGenerated<SecurityDataType extends unknown> {
...params,
});

payload = {
/**
* @description Get a payload for further token receipt
*
* @tags Connect
* @name GetTonConnectPayload
* @request GET:/tonconnect/payload
*/
getTonConnectPayload: (params: RequestParams = {}) =>
this.http.request<
{
/** @example "84jHVNLQmZsAAAAAZB0Zryi2wqVJI-KaKNXOvCijEi46YyYzkaSHyJrMPBMOkVZa" */
payload: string;
},
Error
>({
path: `/tonconnect/payload`,
method: 'GET',
format: 'json',
...params,
}),
};
proof = {
/**
* @description Account verification and token issuance
*
* @tags Wallet
* @name TonConnectProof
* @request POST:/tonconnect/proof
*/
tonConnectProof: (
data: {
/** @example "0:97146a46acc2654y27947f14c4a4b14273e954f78bc017790b41208b0043200b" */
address: string;
proof: {
/**
* @format int64
* @example "1678275313"
*/
timestamp: number;
domain: {
/** @format int32 */
length_bytes?: number;
value: string;
};
signature: string;
/** @example "84jHVNLQmZsAAAAAZB0Zryi2wqVJI-KaKNXOvCijEi46YyYzkaSHyJrMPBMOkVZa" */
payload: string;
state_init?: string;
};
},
params: RequestParams = {},
) =>
this.http.request<
{
/** @example "NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODQ3..." */
token: string;
},
Error
>({
path: `/tonconnect/proof`,
method: 'POST',
body: data,
format: 'json',
...params,
}),
};
emulate = {
/**
* @description Emulate sending message to blockchain
Expand Down Expand Up @@ -604,6 +781,26 @@ export class BatteryGenerated<SecurityDataType extends unknown> {
}),
};
ios = {
/**
* No description
*
* @name AppStoreNotification
* @request POST:/purchase-battery/ios/app-store-notification
*/
appStoreNotification: (
data: {
signedPayload: string;
},
params: RequestParams = {},
) =>
this.http.request<AppStoreResponse, Error>({
path: `/purchase-battery/ios/app-store-notification`,
method: 'POST',
body: data,
format: 'json',
...params,
}),

/**
* @description verify an in-app purchase
*
Expand Down Expand Up @@ -648,4 +845,76 @@ export class BatteryGenerated<SecurityDataType extends unknown> {
...params,
}),
};
estimateCost = {
/**
* No description
*
* @name EstimateGaslessCost
* @request POST:/gasless/estimate-cost/{jetton_master}
*/
estimateGaslessCost: (
jettonMaster: string,
data: {
/** @default true */
battery?: boolean;
payload: string;
},
params: RequestParams = {},
) =>
this.http.request<GaslessEstimation, Error>({
path: `/gasless/estimate-cost/${jettonMaster}`,
method: 'POST',
body: data,
format: 'json',
...params,
}),
};
confirmLargeRefund = {
/**
* No description
*
* @name ConfirmLargeRefund
* @request POST:/restricted/confirm-large-refund
*/
confirmLargeRefund: (
query: ConfirmLargeRefundParams,
data: {
purchase_id: number;
},
params: RequestParams = {},
) =>
this.http.request<any, Error>({
path: `/restricted/confirm-large-refund`,
method: 'POST',
query: query,
body: data,
format: 'json',
...params,
}),
};
removeRefund = {
/**
* No description
*
* @name RemoveRefund
* @request POST:/restricted/remove-refund
*/
removeRefund: (
query: RemoveRefundParams,
data: {
purchase_id: number;
refund_id: number;
status: RemoveRefundStatusEnum;
},
params: RequestParams = {},
) =>
this.http.request<any, Error>({
path: `/restricted/remove-refund`,
method: 'POST',
query: query,
body: data,
format: 'json',
...params,
}),
};
}
8 changes: 8 additions & 0 deletions packages/@core-js/src/SwapAPI/SwapAPI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { HttpClient, HttpClientOptions } from '../TonAPI/HttpClient';
import { SwapGenerated } from './SwapGenerated';

export class SwapAPI extends SwapGenerated<any> {
constructor(opts: HttpClientOptions) {
super(new (HttpClient as any)(opts));
}
}
Loading

0 comments on commit 3656e1c

Please sign in to comment.