@yoroi/portfolio
Version:
The Portfolio package of Yoroi SDK
55 lines (54 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.tokenTraitsMocks = void 0;
var _immer = require("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 = (0, _immer.freeze)({
success: {
tag: 'right',
value: {
status: 200,
data: nftCryptoKitty
}
},
error: {
tag: 'left',
error: {
status: 404,
responseData: null,
message: 'Not found'
}
}
}, true);
const tokenTraitsMocks = (0, _immer.freeze)({
nftCryptoKitty,
rnftWhatever,
apiResponse: apiResponseTokenTraits
});
exports.tokenTraitsMocks = tokenTraitsMocks;
//# sourceMappingURL=token-traits.mocks.js.map