Skip to main content

Logic

compile logicname Compiles the logic from coco.nut file from the directory you are running the cocolab, and loads the logic.

compile logicname from coco(path/tokenledger.coco) Compiles the coco file passed and reads the coco.nut file adjacent to it and loads it.

compile logicname from manifest(path/tokenledger.yaml) Loads the manifest directly.

The compiled logic is indexed by the given logicname.

logic 'Xoog' [0x0800000fd4fb3c4f48a8a8aa539e0432c0aca7095bd15c5d9c80f3560cfef5ee189171] compiled with 18055 FUEL

get logicname Prints all the endpoints , logicId , Address, Manifest Hash and State of the logic manifest loaded.

===== [ Xoog ] [Address: 0x0fd4fb3c4f48a8a8aa539e0432c0aca7095bd15c5d9c80f3560cfef5ee189171]
[Edition: 0] [Logic ID: 0x0800000fd4fb3c4f48a8a8aa539e0432c0aca7095bd15c5d9c80f3560cfef5ee189171]
[Engine: PISA] [Manifest: cc2ccc57cf76d3671d220c1c35009e1c3ca3ab591d373a1e6b83ef9ab7fcc8d0]
[Ready: false] [Persistent: true] [Ephemeral: false]
===== [Endpoints]
[0] invoke JoinOrg(OrgID address) -> ()
[1] invoke Revoke(users []address) -> ()
[2] invoke GetAllTierIds() -> (Tiers []string)
[3] invoke InviteUsers(IomeIds []string, ParticipantIds []address, LicenseIds []address, Tags [][]string) -> ()
[4] invoke Org(OrgID address) -> (Org class.Organization)
[5] invoke UpdateTier(TierID string, TierName string, Status string, BaseSeats u64, FixedPricePerMonth u64) -> ()
[6] invoke Admin() -> (AdminID address)
[7] invoke GetAllUsersId() -> (Users []address)
[8] invoke AddInvitations(OrgID address, IomeID string, ParticipantID address, Status string, LicenseID address, Tags []string) -> ()
[9] invoke UsersInOrg(OrgID address, page u64, limit u64) -> (Users []class.User)
[10] invoke GetActiveUsersCount(OrgID address) -> (ActiveUsers u64)
[11] invoke GetAllOrgsId() -> (Orgs []address)
[12] invoke RecordIx(SenderID address, ReceiverID address, OrgID address, ExtraData bytes) -> ()
[13] invoke AddTier(TierID string, TierName string, Status string, BaseSeats u64, FixedPricePerMonth u64) -> ()
[14] invoke UserInvitations(UserID address) -> (Invitations map[address][]class.UserInvitation)
[15] invoke OrgsOfUser(UserID address) -> (OrgsOfUser []class.Organization)
[16] deploy Init() -> ()
[17] invoke UpdateSeatCount(UpdatedSeatCount u64) -> ()
[18] invoke AllTiers() -> (Tiers map[string]class.Tier)
[19] invoke GetUserIxns(UserID address, OrgID address) -> (Ixns []class.XoogIx)
[20] invoke AddIx(SenderID address, ReceiverID address, OrgID address, Time u256, IxHash bytes, Extra bytes) -> ()
[21] invoke GetInvitationStatus(UserID address, OrgID address) -> (Status string)
[22] invoke AddOrganization(OrgID address, OrgName string, TierID string, Receipt string, IomeID string, LicenseID address) -> ()

logics List all the logics loaded into the API server environment name.

0] estore2 [0x0c0000b10d6d02e32f81d87a47096ce63e116139ee2cd409b55fdff50011f32bd16711]
1] TF [0x080000c4f80f75157aff47d29f81373b559040245af0c4e1154bc7cbbca6118f4273d5]
2] Xoog [0x0800000fd4fb3c4f48a8a8aa539e0432c0aca7095bd15c5d9c80f3560cfef5ee189171]
3] TF2 [0x08000015240af79f707da6fe71137338fa6c7ffb4b1a329787d2b5133952741ac0b1b0]
4] types [0x000000b6fe8fece7e564c1903364e0d50ca7d382ba3acf1e26139524212750b18cd274]

wipe logics All logic wiped

wipe logicname Particular logic wiped