diff --git a/Makefile b/Makefile index edd2f69..ae5fd75 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,10 @@ pkgRedpacket=${moduleRedpacket}/redpacket moduleDmens=github.com/coming-chat/go-dmens-sdk pkgDmens=${moduleDmens}/dmens -pkgAll = ${pkgWalletSDK} ${pkgDefi} ${pkgAptosClient} ${pkgRedpacket} ${pkgDmens} +moduleRune=github.com/coming-chat/go-runes-api +pkgRune=${moduleRune}/rune + +pkgAll = ${pkgWalletSDK} ${pkgDefi} ${pkgAptosClient} ${pkgRedpacket} ${pkgDmens} ${pkgRune} iosSdkName=Wallet andSdkName=wallet diff --git a/go.mod b/go.mod index 21b17a1..a093f86 100644 --- a/go.mod +++ b/go.mod @@ -8,6 +8,7 @@ require ( github.com/coming-chat/go-defi-sdk v0.1.8-0.20231031134916-7ec2d39b4d7e github.com/coming-chat/go-dmens-sdk v0.0.0-20231215092705-82037ee8eb0d github.com/coming-chat/go-red-packet v0.0.5-0.20230530070307-c05ad37efbc4 + github.com/coming-chat/go-runes-api v0.0.0-20240418031201-122d185f6a25 github.com/coming-chat/wallet-SDK v0.2.7-0.20240416095448-e22d52c2a160 golang.org/x/mobile v0.0.0-20230531173138-3c911d8e3eda ) @@ -23,8 +24,12 @@ require ( github.com/btcsuite/btcd v0.24.0 // indirect github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect github.com/btcsuite/btcd/btcutil v1.1.5 // indirect + github.com/btcsuite/btcd/btcutil/psbt v1.1.9 // indirect github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 // indirect + github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f // indirect github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect + github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect + github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.0 // indirect github.com/coming-chat/go-aptos v0.0.0-20230626110140-8331b0e6cdd4 // indirect github.com/coming-chat/go-sui/v2 v2.0.1 // indirect diff --git a/go.sum b/go.sum index 854ad92..edc1b62 100644 --- a/go.sum +++ b/go.sum @@ -68,19 +68,24 @@ github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9Ur github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE= github.com/btcsuite/btcd/btcutil v1.1.5 h1:+wER79R5670vs/ZusMTF1yTcRYE5GUsFbdjdisflzM8= github.com/btcsuite/btcd/btcutil v1.1.5/go.mod h1:PSZZ4UitpLBWzxGd5VGOrLnmOjtPP/a6HaFo12zMs00= +github.com/btcsuite/btcd/btcutil/psbt v1.1.9 h1:UmfOIiWMZcVMOLaN+lxbbLSuoINGS1WmK1TZNI0b4yk= +github.com/btcsuite/btcd/btcutil/psbt v1.1.9/go.mod h1:ehBEvU91lxSlXtA+zZz3iFYx7Yq9eqnKx4/kSrnsvMY= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 h1:59Kx4K6lzOW5w6nFlA0v5+lk/6sjybR934QNHSJZPTQ= github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce h1:YtWJF7RHm2pYCvA5t0RPmAaLUhREsKuKd+SLhxFbFeQ= github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 h1:R8vQdOQdZ9Y3SkEwmHoWBmX1DNXhXZqlTpq6s4tyJGc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -117,6 +122,8 @@ github.com/coming-chat/go-dmens-sdk v0.0.0-20231215092705-82037ee8eb0d h1:IrtdPh github.com/coming-chat/go-dmens-sdk v0.0.0-20231215092705-82037ee8eb0d/go.mod h1:892GGKA3eAhH2Knw4ivZnhkBADR1LZXsyZ1nBlbS6+4= github.com/coming-chat/go-red-packet v0.0.5-0.20230530070307-c05ad37efbc4 h1:KfY3GUKsUAgpFd7AblT/AEkXlQUqxZIwT4SlcJGxof0= github.com/coming-chat/go-red-packet v0.0.5-0.20230530070307-c05ad37efbc4/go.mod h1:Jf1MJZkpfPVtaLW/B0jz2CZQUjYlvZ7Hc2hs6fDtEqY= +github.com/coming-chat/go-runes-api v0.0.0-20240418031201-122d185f6a25 h1:zc/3zSyemmBrSAgvM2po0em5plRddroX28qZValB/3E= +github.com/coming-chat/go-runes-api v0.0.0-20240418031201-122d185f6a25/go.mod h1:d3Tw3JqsYDlwOWg5nIufGuOIomhm2+1uoW69+zG5ifw= github.com/coming-chat/go-sui/v2 v2.0.1 h1:Mi7IGUvKd8OLP5zA3YhfDN/L5AJTXHsSsJnLb9WX9+4= github.com/coming-chat/go-sui/v2 v2.0.1/go.mod h1:0/cgsi6HcHEfPFC05mY/ovzWuxxpmKxiY0NIEFgMP4g= github.com/coming-chat/lcs v0.0.0-20220829063658-0fa8432d2bdf h1:HrK16SFZnoxATieE+UHFSHZ6D2+XApv9g752MgvW7es= @@ -553,8 +560,8 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/supranational/blst v0.3.11 h1:LyU6FolezeWAhvQk0k6O/d49jqgO52MSDDfYgbeoEm4= github.com/supranational/blst v0.3.11/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= github.com/syndtr/goleveldb v1.0.1-0.20200815110645-5c35d600f0ca/go.mod h1:u2MKkTVTVJWe5D1rCvame8WqhBd88EuIwODJZ1VHCPM= diff --git a/hold.go b/hold.go index 9fd7971..5e60fc6 100644 --- a/hold.go +++ b/hold.go @@ -1,10 +1,11 @@ -// 此文件不会被编译到 sdk,主要是用作引用其他项目,方式 go mod tidy 删掉 mod 引用 +// 此文件不会被编译到 sdk,主要是用作引用其他项目,防止 go mod tidy 删掉 mod 引用 package appsdkbuild import ( "github.com/coming-chat/go-defi-sdk/util" "github.com/coming-chat/go-dmens-sdk/dmens" "github.com/coming-chat/go-red-packet/redpacket" + "github.com/coming-chat/go-runes-api/rune" "github.com/coming-chat/wallet-SDK/core/aptos" _ "golang.org/x/mobile/bind" ) @@ -13,12 +14,14 @@ var A int var B error var C string var DmensAction int +var RuneUrl string func init() { A = aptos.MaxGasAmount B = util.ErrAddress C = redpacket.AptosName DmensAction = dmens.ACTION_POST + RuneUrl = rune.UrlTestnet } type T struct {