Skip to content

Commit

Permalink
Update sc-standard in ft (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey authored Dec 22, 2024
1 parent 93a8668 commit cbdb474
Show file tree
Hide file tree
Showing 4 changed files with 2,360 additions and 1,443 deletions.
3 changes: 2 additions & 1 deletion fungible-token/front/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import "./App.css";
import { getWallets } from "@massalabs/wallet-provider";
import { MRC20, OperationStatus, Provider } from "@massalabs/massa-web3";

const CONTRACT_ADDRESS = "AS1fSyr39jvAryKjrLV2JgRDauHb7GKVRA1TZoeK2NnogDNSw9iS";
const CONTRACT_ADDRESS =
"AS12J2t29NT5VyZVQHBCmQFLNFqwpiZZtwcbHQTHWLJtWFXsz3U96";

function App() {
const [provider, setProvider] = useState<Provider>();
Expand Down
23 changes: 18 additions & 5 deletions fungible-token/smart-contract/assembly/contracts/token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
export * from '@massalabs/sc-standards/assembly/contracts/FT/token';
export * from '@massalabs/sc-standards/assembly/contracts/FT/burnable';
export * from '@massalabs/sc-standards/assembly/contracts/utils/accessControl';
export * from '@massalabs/sc-standards/assembly/contracts/utils/ownership';
export * from '@massalabs/sc-standards/assembly/contracts/FT/mintable';
import { u256 } from 'as-bignum/assembly';
import { mrc20Constructor } from '@massalabs/sc-standards/assembly/contracts/MRC20';

export function constructor(): void {
mrc20Constructor('MassaToken', 'MT', 18, u256.fromU64(1010101010));
}

export * from '@massalabs/sc-standards/assembly/contracts/MRC20';
export { mint } from '@massalabs/sc-standards/assembly/contracts/MRC20/mintable';
export {
burn,
burnFrom,
} from '@massalabs/sc-standards/assembly/contracts/MRC20/burnable';
export {
setOwner,
onlyOwner,
isOwner,
} from '@massalabs/sc-standards/assembly/contracts/utils/ownership';
Loading

0 comments on commit cbdb474

Please sign in to comment.