Skip to content

Instantly share code, notes, and snippets.

@floatbeta
Created February 4, 2023 01:34
Show Gist options
  • Save floatbeta/27510e29f420ee4584ce597cbc0b4ed3 to your computer and use it in GitHub Desktop.
Save floatbeta/27510e29f420ee4584ce597cbc0b4ed3 to your computer and use it in GitHub Desktop.
Deploy a side-chain for your token on MoltenChain
-- Define the function to deploy the side-chain
function deploy_side_chain(chain_name, token_ticker)
-- Create the side-chain and set the name and token ticker
local side_chain = Chain:new(chain_name, token_ticker)
-- Add the side-chain to the list of side-chains
side_chains[chain_name] = side_chain
-- Return the side-chain for further use
return side_chain
end
-- Define the function to get the side-chain by name
function get_side_chain(chain_name)
-- Return the side-chain from the list
return side_chains[chain_name]
end
-- Create a list to store the side-chains
side_chains = {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment