Charged Particles
Search…
Basket Manager Interface
The basket-manager for underlying assets attached to Charged Particles Manages the link between NFTs and their respective Smart-Baskets.

Events

ControllerSet

1
event ControllerSet(address indexed controller);
Copied!

PausedStateSet

1
event PausedStateSet(bool isPaused);
Copied!

NewSmartBasket

1
event NewSmartBasket(
2
address indexed contractAddress,
3
uint256 indexed tokenId,
4
address indexed smartBasket
5
);
Copied!

BasketAdd

1
event BasketAdd(
2
address indexed contractAddress,
3
uint256 indexed tokenId,
4
address basketTokenAddress,
5
uint256 basketTokenId
6
);
Copied!

BasketRemove

1
event BasketRemove(
2
address indexed receiver,
3
address indexed contractAddress,
4
uint256 indexed tokenId,
5
address basketTokenAddress,
6
uint256 basketTokenId
7
);
Copied!

Methods

isPaused

1
function isPaused() external view returns (bool);
Copied!

getTokenTotalCount

1
function getTokenTotalCount(
2
address contractAddress,
3
uint256 tokenId
4
) external view returns (uint256);
Copied!

getTokenCountByType

1
function getTokenCountByType(
2
address contractAddress,
3
uint256 tokenId,
4
address basketTokenAddress,
5
uint256 basketTokenId
6
) external returns (uint256);
Copied!

addToBasket

1
function addToBasket(
2
address contractAddress,
3
uint256 tokenId,
4
address basketTokenAddress,
5
uint256 basketTokenId
6
) external returns (bool);
Copied!

removeFromBasket

1
function removeFromBasket(
2
address receiver,
3
address contractAddress,
4
uint256 tokenId,
5
address basketTokenAddress,
6
uint256 basketTokenId
7
) external returns (bool);
Copied!

executeForAccount

1
function executeForAccount(
2
address contractAddress, uint256 tokenId,
3
address externalAddress,
4
uint256 ethValue,
5
bytes memory encodedParams
6
) external returns (bytes memory);
Copied!

getBasketAddressById

1
function getBasketAddressById(
2
address contractAddress,
3
uint256 tokenId
4
) external returns (address);
Copied!
Last modified 3mo ago