// Import a package at the provided address
// and with the provided ABI.
"package": "[package_address]",
"name": "scrypto::core::Component",
"mutability": "Immutable",
"name": "scrypto::resource::Bucket",
// You can now define variables with the name of the package as its type
free_token_component: TokenGiver
pub fn new() -> Component {
vault: Vault::new(RADIX_TOKEN),
free_token_component: TokenGiver::new().into()
pub fn call_get_tokens(&mut self) {
// You can now call methods defined in the ABI
let bucket = self.free_token_component.free_token();