Skip to content

Commit

Permalink
feat: 🎸 update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
mdusafp committed Oct 5, 2022
1 parent abf9c81 commit 546f99c
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 4 deletions.
6 changes: 6 additions & 0 deletions dist/models/JettonTransferAction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ export interface JettonTransferAction {
* @memberof JettonTransferAction
*/
comment?: string;
/**
*
* @type {boolean}
* @memberof JettonTransferAction
*/
isRefund: boolean;
/**
*
* @type {Jetton}
Expand Down
3 changes: 3 additions & 0 deletions dist/models/JettonTransferAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Jetton_1 = require("./Jetton");
function instanceOfJettonTransferAction(value) {
let isInstance = true;
isInstance = isInstance && "amount" in value;
isInstance = isInstance && "isRefund" in value;
isInstance = isInstance && "jetton" in value;
isInstance = isInstance && "recipientsWallet" in value;
isInstance = isInstance && "sendersWallet" in value;
Expand All @@ -40,6 +41,7 @@ function JettonTransferActionFromJSONTyped(json, ignoreDiscriminator) {
return {
'amount': json['amount'],
'comment': !(0, runtime_1.exists)(json, 'comment') ? undefined : json['comment'],
'isRefund': json['is_refund'],
'jetton': (0, Jetton_1.JettonFromJSON)(json['jetton']),
'recipient': !(0, runtime_1.exists)(json, 'recipient') ? undefined : (0, AccountAddress_1.AccountAddressFromJSON)(json['recipient']),
'recipientsWallet': json['recipients_wallet'],
Expand All @@ -58,6 +60,7 @@ function JettonTransferActionToJSON(value) {
return {
'amount': value.amount,
'comment': value.comment,
'is_refund': value.isRefund,
'jetton': (0, Jetton_1.JettonToJSON)(value.jetton),
'recipient': (0, AccountAddress_1.AccountAddressToJSON)(value.recipient),
'recipients_wallet': value.recipientsWallet,
Expand Down
2 changes: 1 addition & 1 deletion dist/models/NftItemRepr.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface NftItemRepr {
* @type {any}
* @memberof NftItemRepr
*/
metadata?: any | null;
metadata: any | null;
/**
*
* @type {AccountAddress}
Expand Down
3 changes: 2 additions & 1 deletion dist/models/NftItemRepr.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function instanceOfNftItemRepr(value) {
let isInstance = true;
isInstance = isInstance && "address" in value;
isInstance = isInstance && "index" in value;
isInstance = isInstance && "metadata" in value;
isInstance = isInstance && "verified" in value;
return isInstance;
}
Expand All @@ -44,7 +45,7 @@ function NftItemReprFromJSONTyped(json, ignoreDiscriminator) {
'collectionAddress': !(0, runtime_1.exists)(json, 'collection_address') ? undefined : json['collection_address'],
'dns': !(0, runtime_1.exists)(json, 'dns') ? undefined : json['dns'],
'index': json['index'],
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
'metadata': json['metadata'],
'owner': !(0, runtime_1.exists)(json, 'owner') ? undefined : (0, AccountAddress_1.AccountAddressFromJSON)(json['owner']),
'previews': !(0, runtime_1.exists)(json, 'previews') ? undefined : (json['previews'].map(ImagePreview_1.ImagePreviewFromJSON)),
'sale': !(0, runtime_1.exists)(json, 'sale') ? undefined : (0, Sale_1.SaleFromJSON)(json['sale']),
Expand Down
6 changes: 6 additions & 0 deletions dist/models/NftItemTransferAction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export interface NftItemTransferAction {
* @memberof NftItemTransferAction
*/
comment?: string;
/**
*
* @type {boolean}
* @memberof NftItemTransferAction
*/
isRefund: boolean;
/**
*
* @type {string}
Expand Down
3 changes: 3 additions & 0 deletions dist/models/NftItemTransferAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const AccountAddress_1 = require("./AccountAddress");
*/
function instanceOfNftItemTransferAction(value) {
let isInstance = true;
isInstance = isInstance && "isRefund" in value;
isInstance = isInstance && "nft" in value;
return isInstance;
}
Expand All @@ -35,6 +36,7 @@ function NftItemTransferActionFromJSONTyped(json, ignoreDiscriminator) {
}
return {
'comment': !(0, runtime_1.exists)(json, 'comment') ? undefined : json['comment'],
'isRefund': json['is_refund'],
'nft': json['nft'],
'payload': !(0, runtime_1.exists)(json, 'payload') ? undefined : json['payload'],
'recipient': !(0, runtime_1.exists)(json, 'recipient') ? undefined : (0, AccountAddress_1.AccountAddressFromJSON)(json['recipient']),
Expand All @@ -51,6 +53,7 @@ function NftItemTransferActionToJSON(value) {
}
return {
'comment': value.comment,
'is_refund': value.isRefund,
'nft': value.nft,
'payload': value.payload,
'recipient': (0, AccountAddress_1.AccountAddressToJSON)(value.recipient),
Expand Down
6 changes: 6 additions & 0 deletions dist/models/TonTransferAction.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ export interface TonTransferAction {
* @memberof TonTransferAction
*/
comment?: string;
/**
*
* @type {boolean}
* @memberof TonTransferAction
*/
isRefund: boolean;
/**
* raw hex encoded payload
* @type {string}
Expand Down
3 changes: 3 additions & 0 deletions dist/models/TonTransferAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const AccountAddress_1 = require("./AccountAddress");
function instanceOfTonTransferAction(value) {
let isInstance = true;
isInstance = isInstance && "amount" in value;
isInstance = isInstance && "isRefund" in value;
isInstance = isInstance && "recipient" in value;
isInstance = isInstance && "sender" in value;
return isInstance;
Expand All @@ -38,6 +39,7 @@ function TonTransferActionFromJSONTyped(json, ignoreDiscriminator) {
return {
'amount': json['amount'],
'comment': !(0, runtime_1.exists)(json, 'comment') ? undefined : json['comment'],
'isRefund': json['is_refund'],
'payload': !(0, runtime_1.exists)(json, 'payload') ? undefined : json['payload'],
'recipient': (0, AccountAddress_1.AccountAddressFromJSON)(json['recipient']),
'sender': (0, AccountAddress_1.AccountAddressFromJSON)(json['sender']),
Expand All @@ -54,6 +56,7 @@ function TonTransferActionToJSON(value) {
return {
'amount': value.amount,
'comment': value.comment,
'is_refund': value.isRefund,
'payload': value.payload,
'recipient': (0, AccountAddress_1.AccountAddressToJSON)(value.recipient),
'sender': (0, AccountAddress_1.AccountAddressToJSON)(value.sender),
Expand Down
9 changes: 9 additions & 0 deletions src/models/JettonTransferAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export interface JettonTransferAction {
* @memberof JettonTransferAction
*/
comment?: string;
/**
*
* @type {boolean}
* @memberof JettonTransferAction
*/
isRefund: boolean;
/**
*
* @type {Jetton}
Expand Down Expand Up @@ -82,6 +88,7 @@ export interface JettonTransferAction {
export function instanceOfJettonTransferAction(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "amount" in value;
isInstance = isInstance && "isRefund" in value;
isInstance = isInstance && "jetton" in value;
isInstance = isInstance && "recipientsWallet" in value;
isInstance = isInstance && "sendersWallet" in value;
Expand All @@ -101,6 +108,7 @@ export function JettonTransferActionFromJSONTyped(json: any, ignoreDiscriminator

'amount': json['amount'],
'comment': !exists(json, 'comment') ? undefined : json['comment'],
'isRefund': json['is_refund'],
'jetton': JettonFromJSON(json['jetton']),
'recipient': !exists(json, 'recipient') ? undefined : AccountAddressFromJSON(json['recipient']),
'recipientsWallet': json['recipients_wallet'],
Expand All @@ -120,6 +128,7 @@ export function JettonTransferActionToJSON(value?: JettonTransferAction | null):

'amount': value.amount,
'comment': value.comment,
'is_refund': value.isRefund,
'jetton': JettonToJSON(value.jetton),
'recipient': AccountAddressToJSON(value.recipient),
'recipients_wallet': value.recipientsWallet,
Expand Down
5 changes: 3 additions & 2 deletions src/models/NftItemRepr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface NftItemRepr {
* @type {any}
* @memberof NftItemRepr
*/
metadata?: any | null;
metadata: any | null;
/**
*
* @type {AccountAddress}
Expand Down Expand Up @@ -114,6 +114,7 @@ export function instanceOfNftItemRepr(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "address" in value;
isInstance = isInstance && "index" in value;
isInstance = isInstance && "metadata" in value;
isInstance = isInstance && "verified" in value;

return isInstance;
Expand All @@ -134,7 +135,7 @@ export function NftItemReprFromJSONTyped(json: any, ignoreDiscriminator: boolean
'collectionAddress': !exists(json, 'collection_address') ? undefined : json['collection_address'],
'dns': !exists(json, 'dns') ? undefined : json['dns'],
'index': json['index'],
'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
'metadata': json['metadata'],
'owner': !exists(json, 'owner') ? undefined : AccountAddressFromJSON(json['owner']),
'previews': !exists(json, 'previews') ? undefined : ((json['previews'] as Array<any>).map(ImagePreviewFromJSON)),
'sale': !exists(json, 'sale') ? undefined : SaleFromJSON(json['sale']),
Expand Down
9 changes: 9 additions & 0 deletions src/models/NftItemTransferAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export interface NftItemTransferAction {
* @memberof NftItemTransferAction
*/
comment?: string;
/**
*
* @type {boolean}
* @memberof NftItemTransferAction
*/
isRefund: boolean;
/**
*
* @type {string}
Expand Down Expand Up @@ -63,6 +69,7 @@ export interface NftItemTransferAction {
*/
export function instanceOfNftItemTransferAction(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "isRefund" in value;
isInstance = isInstance && "nft" in value;

return isInstance;
Expand All @@ -79,6 +86,7 @@ export function NftItemTransferActionFromJSONTyped(json: any, ignoreDiscriminato
return {

'comment': !exists(json, 'comment') ? undefined : json['comment'],
'isRefund': json['is_refund'],
'nft': json['nft'],
'payload': !exists(json, 'payload') ? undefined : json['payload'],
'recipient': !exists(json, 'recipient') ? undefined : AccountAddressFromJSON(json['recipient']),
Expand All @@ -96,6 +104,7 @@ export function NftItemTransferActionToJSON(value?: NftItemTransferAction | null
return {

'comment': value.comment,
'is_refund': value.isRefund,
'nft': value.nft,
'payload': value.payload,
'recipient': AccountAddressToJSON(value.recipient),
Expand Down
9 changes: 9 additions & 0 deletions src/models/TonTransferAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ export interface TonTransferAction {
* @memberof TonTransferAction
*/
comment?: string;
/**
*
* @type {boolean}
* @memberof TonTransferAction
*/
isRefund: boolean;
/**
* raw hex encoded payload
* @type {string}
Expand All @@ -64,6 +70,7 @@ export interface TonTransferAction {
export function instanceOfTonTransferAction(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "amount" in value;
isInstance = isInstance && "isRefund" in value;
isInstance = isInstance && "recipient" in value;
isInstance = isInstance && "sender" in value;

Expand All @@ -82,6 +89,7 @@ export function TonTransferActionFromJSONTyped(json: any, ignoreDiscriminator: b

'amount': json['amount'],
'comment': !exists(json, 'comment') ? undefined : json['comment'],
'isRefund': json['is_refund'],
'payload': !exists(json, 'payload') ? undefined : json['payload'],
'recipient': AccountAddressFromJSON(json['recipient']),
'sender': AccountAddressFromJSON(json['sender']),
Expand All @@ -99,6 +107,7 @@ export function TonTransferActionToJSON(value?: TonTransferAction | null): any {

'amount': value.amount,
'comment': value.comment,
'is_refund': value.isRefund,
'payload': value.payload,
'recipient': AccountAddressToJSON(value.recipient),
'sender': AccountAddressToJSON(value.sender),
Expand Down

0 comments on commit 546f99c

Please sign in to comment.