Skip to content

Commit

Permalink
fix(examples): types number -> string for amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
bogoslavskiy committed May 20, 2022
1 parent 87ff3b7 commit d41c0d3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
34 changes: 17 additions & 17 deletions deeplink-examples/src/TxBodyData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const getNFTCollectionDeployBody = (
collectionContentUri: 'https://s.getgems.io/nft/c/626aa683e90df48ddc57b793/meta.json',
nftItemContentBaseUri: 'https://s.getgems.io/nft/c/626aa683e90df48ddc57b793',
nftItemCodeHex: 'B5EE9C7241020D010001D0000114FF00F4A413F4BCF2C80B0102016202030202CE04050009A11F9FE00502012006070201200B0C02D70C8871C02497C0F83434C0C05C6C2497C0F83E903E900C7E800C5C75C87E800C7E800C3C00812CE3850C1B088D148CB1C17CB865407E90350C0408FC00F801B4C7F4CFE08417F30F45148C2EA3A1CC840DD78C9004F80C0D0D0D4D60840BF2C9A884AEB8C097C12103FCBC20080900113E910C1C2EBCB8536001F65135C705F2E191FA4021F001FA40D20031FA00820AFAF0801BA121945315A0A1DE22D70B01C300209206A19136E220C2FFF2E192218E3E821005138D91C85009CF16500BCF16712449145446A0708010C8CB055007CF165005FA0215CB6A12CB1FCB3F226EB39458CF17019132E201C901FB00104794102A375BE20A00727082108B77173505C8CBFF5004CF1610248040708010C8CB055007CF165005FA0215CB6A12CB1FCB3F226EB39458CF17019132E201C901FB000082028E3526F0018210D53276DB103744006D71708010C8CB055007CF165005FA0215CB6A12CB1FCB3F226EB39458CF17019132E201C901FB0093303234E25502F003003B3B513434CFFE900835D27080269FC07E90350C04090408F80C1C165B5B60001D00F232CFD633C58073C5B3327B5520BF75041B',
amount: 100000000,
amount: '100000000',
royalty: 0.2,
},
response_options,
Expand All @@ -26,7 +26,7 @@ export const getNFTItemDeployBody = (
params: {
ownerAddress: 'EQD2NmD_lH5f5u1Kj3KfGyTvhZSX0Eg6qp2a5IQUKXxOG21n',
nftCollectionAddress: 'EQAiwgIKpPUggGpVkiJe_Wo0flouYiAuipM78qgTCutTm3-g',
amount: 100000000,
amount: '100000000',
itemIndex: 0,
itemContentUri: 'https://s.getgems.io/nft/c/626aa683e90df48ddc57b793/0.json'
},
Expand All @@ -42,7 +42,7 @@ export const getNFTChangeOwnerBody = (
params: {
newOwnerAddress: 'EQAn7UCXbrjmgAApFV5FzuVX4P2avn_S3O3BwFpxgi2yf_Cy',
nftCollectionAddress: 'EQAiwgIKpPUggGpVkiJe_Wo0flouYiAuipM78qgTCutTm3-g',
amount: 100000000
amount: '100000000'
},
response_options,
expires_sec,
Expand All @@ -56,8 +56,8 @@ export const getNFTTransferBody = (
params: {
newOwnerAddress: 'EQD2NmD_lH5f5u1Kj3KfGyTvhZSX0Eg6qp2a5IQUKXxOG21n',
nftItemAddress: 'EQCu-GX7Gq0Q5WXKKQWLpwOw3ccjSrhAo6l4sffZJLH94mGC',
amount: 100000000,
forwardAmount: 100000000,
amount: '100000000',
forwardAmount: '100000000',
text: 'just message'
},
response_options,
Expand All @@ -72,11 +72,11 @@ export const getNFTSalePlaceBody = (
params: {
marketplaceAddress: 'EQD2NmD_lH5f5u1Kj3KfGyTvhZSX0Eg6qp2a5IQUKXxOG21n',
nftItemAddress: 'EQCu-GX7Gq0Q5WXKKQWLpwOw3ccjSrhAo6l4sffZJLH94mGC',
fullPrice: 1000000000,
marketplaceFee: 100000000,
fullPrice: '1000000000',
marketplaceFee: '100000000',
royaltyAddress: 'EQD2NmD_lH5f5u1Kj3KfGyTvhZSX0Eg6qp2a5IQUKXxOG21n',
royaltyAmount: 100000000,
amount: 100000000
royaltyAmount: '100000000',
amount: '100000000'
},
response_options,
expires_sec,
Expand All @@ -91,11 +91,11 @@ export const getNFTSaleCancelBody = (
saleAddress: 'EQD2NmD_lH5f5u1Kj3KfGyTvhZSX0Eg6qp2a5IQUKXxOG21n',
marketplaceAddress: 'EQD2NmD_lH5f5u1Kj3KfGyTvhZSX0Eg6qp2a5IQUKXxOG21n',
nftItemAddress: 'EQCu-GX7Gq0Q5WXKKQWLpwOw3ccjSrhAo6l4sffZJLH94mGC',
fullPrice: 100000000,
marketplaceFee: 100000000,
fullPrice: '100000000',
marketplaceFee: '100000000',
royaltyAddress: 'EQD2NmD_lH5f5u1Kj3KfGyTvhZSX0Eg6qp2a5IQUKXxOG21n',
royaltyAmount: 100000000,
amount: 100000000
royaltyAmount: '100000000',
amount: '100000000'
},
response_options,
expires_sec,
Expand All @@ -108,15 +108,15 @@ export const getGetgemsNFTSaleBody = (
type: 'nft-sale-place-getgems',
params: {
marketplaceFeeAddress: '',
marketplaceFee: 100000000,
marketplaceFee: '100000000',
royaltyAddress: '',
royaltyAmount: 100000000,
royaltyAmount: '100000000',
createdAt: 213123123,
marketplaceAddress: '',
nftItemAddress: '',
ownerAddress: '',
fullPrice: 1000000000,
amount: 100000000,
fullPrice: '1000000000',
amount: '100000000',
messageHex: '',
marketplaceSignatureHex: ''
},
Expand Down
40 changes: 20 additions & 20 deletions deeplink-examples/src/TxRequest.types.ts
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
export type NftCollectionDeployParams = {
ownerAddress: string;
ownerAddress?: string;
royaltyAddress: string;
royalty: number;
collectionContentUri: string;
nftItemContentBaseUri: string;
nftItemCodeHex: string;
amount: number;
amount: string;
}

export type NftItemDeployParams = {
ownerAddress: string;
ownerAddress?: string;
nftCollectionAddress: string;
itemContentUri: string;
itemIndex: number;
amount: number;
amount: string;
}

export type NftTransferParams = {
newOwnerAddress: string;
nftItemAddress: string;
forwardAmount: number;
amount: number;
text: string;
forwardAmount: string;
amount: string;
text?: string;
}

export type NftChangeOwnerParams = {
nftCollectionAddress: string;
newOwnerAddress: string;
amount: number;
amount: string;
}

export type NftSalePlaceParams = {
marketplaceAddress: string; // (string): address of the marketplace
marketplaceFee: number; // (integer): nanocoins as marketplace fee
marketplaceFee: string; // (integer): nanocoins as marketplace fee
royaltyAddress: string; // (string): address for the royalties
nftItemAddress: string; // (string): identifier of the specific nft item
royaltyAmount: number; // (integer): nanotoncoins sent as royalties
fullPrice: number; // (integer): price in nanocoins
amount: number; //(integer): nanotoncoins sent as commission with the message
royaltyAmount: string; // (integer): nanotoncoins sent as royalties
fullPrice: string; // (integer): price in nanocoins
amount: string; //(integer): nanotoncoins sent as commission with the message
}

export type NftSaleCancelParams = {
marketplaceAddress: string; // (string): address of the marketplace
nftItemAddress: string; // (string): identifier of the specific nft item
marketplaceFee: number; // (integer): nanocoins as marketplace fee
marketplaceFee: string; // (integer): nanocoins as marketplace fee
royaltyAddress: string; // (string): address for the royalties
royaltyAmount: number; // (integer): nanotoncoins sent as royalties
royaltyAmount: string; // (integer): nanotoncoins sent as royalties
saleAddress: string; // (string): address of the sale contract
fullPrice: number; // (integer): price in nanocoins
amount: number; // (integer): nanotoncoins sent as commission with the message
fullPrice: string; // (integer): price in nanocoins
amount: string; // (integer): nanotoncoins sent as commission with the message
}

export type NftSalePlaceGetgems = {
marketplaceFeeAddress: string;
marketplaceFee: number;
marketplaceFee: string;
royaltyAddress: string;
royaltyAmount: number;
royaltyAmount: string;
createdAt: number;
marketplaceAddress: string;
nftItemAddress: string;
ownerAddress: string;
fullPrice: number;
amount: number;
fullPrice: string;
amount: string;
messageHex: string;
marketplaceSignatureHex: string;
}
Expand Down

0 comments on commit d41c0d3

Please sign in to comment.