aptos/contracts: dummy type for wrapped coins

this is used to fill in the CoinType phantom type variable of the Coin
type in the aptos framework to facilitate new coin creation
This commit is contained in:
Csongor Kiss 2022-10-14 01:18:10 +00:00 committed by jumpsiegel
parent 70ccb69e86
commit 3eb8daf492
4 changed files with 31 additions and 0 deletions

14
aptos/coin/Makefile Normal file
View File

@ -0,0 +1,14 @@
-include ../../Makefile.help
.PHONY: artifacts
artifacts: build
.PHONY: build
## Build contract
build:
aptos move compile --save-metadata
.PHONY: test
## Run tests
test:
aptos move test

13
aptos/coin/Move.toml Normal file
View File

@ -0,0 +1,13 @@
[package]
name = "WrappedCoin"
version = "0.0.1"
upgrade_policy = "compatible"
[dependencies]
MoveStdlib = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/move-stdlib/", rev = "main" }
[dev-addresses]
wrapped_coin = "0x0"
[addresses]
wrapped_coin = "_"

1
aptos/coin/README.md Normal file
View File

@ -0,0 +1 @@
This package implements the wormhole wrapped coin type.,

View File

@ -0,0 +1,3 @@
module 0xf4f53cc591e5190eddbc43940746e2b5deea6e0e1562b2bba765d488504842c7::coin {
struct T has key {}
}