Skip to content

Commit

Permalink
feat: actors: Implement datacap actor (#70)
Browse files Browse the repository at this point in the history
* Implement datacap actor

* cbor gen for datacap actor
  • Loading branch information
geoff-vball authored Sep 21, 2022
1 parent d683559 commit 60676bd
Show file tree
Hide file tree
Showing 7 changed files with 1,517 additions and 0 deletions.
17 changes: 17 additions & 0 deletions builtin/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,20 @@ var MethodsVerifiedRegistry = struct {
RestoreBytes abi.MethodNum
RemoveVerifiedClientDataCap abi.MethodNum
}{MethodConstructor, 2, 3, 4, 5, 6, 7}

var MethodsDatacap = struct {
Constructor abi.MethodNum
Mint abi.MethodNum
Destroy abi.MethodNum
Name abi.MethodNum
Symbol abi.MethodNum
TotalSupply abi.MethodNum
BalanceOf abi.MethodNum
Transfer abi.MethodNum
TransferFrom abi.MethodNum
IncreaseAllowance abi.MethodNum
DecreaseAllowance abi.MethodNum
RevokeAllowance abi.MethodNum
Burn abi.MethodNum
BurnFrom abi.MethodNum
}{MethodConstructor, 2, 3, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}
1 change: 1 addition & 0 deletions builtin/singletons.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var (
StoragePowerActorAddr = mustMakeAddress(4)
StorageMarketActorAddr = mustMakeAddress(5)
VerifiedRegistryActorAddr = mustMakeAddress(6)
DatacapActorAddr = mustMakeAddress(7)
// Distinguished AccountActor that is the destination of all burnt funds.
BurntFundsActorAddr = mustMakeAddress(99)
)
Expand Down
Loading

0 comments on commit 60676bd

Please sign in to comment.