@yoroi/portfolio
Version:
The Portfolio package of Yoroi SDK
48 lines • 842 B
JavaScript
import { freeze } from 'immer';
const nftCryptoKitty = {
totalItems: 1,
traits: [{
type: 'rarity',
value: 'common',
rarity: 'common'
}, {
type: 'color',
value: 'blue',
rarity: 'common'
}]
};
const rnftWhatever = {
totalItems: 1,
traits: [{
type: 'rarity',
value: 'rare',
rarity: 'rare'
}, {
type: 'color',
value: 'red',
rarity: 'rare'
}]
};
const apiResponseTokenTraits = freeze({
success: {
tag: 'right',
value: {
status: 200,
data: nftCryptoKitty
}
},
error: {
tag: 'left',
error: {
status: 404,
responseData: null,
message: 'Not found'
}
}
}, true);
export const tokenTraitsMocks = freeze({
nftCryptoKitty,
rnftWhatever,
apiResponse: apiResponseTokenTraits
});
//# sourceMappingURL=token-traits.mocks.js.map