Source on GitHub

QIP

Idx 18·Since e189·1 ABI version
SAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABNI
3Procedures
1Functions
1Structs
1ABI Version

Current ABI

e189Open Snapshot →

Procedures

3State-changing
proccreateICO#1
in 128Bout 4B
input11 fields · 128B
nametypeoffsetbyteslayout
issuerid032
address1id3232
assetNameuint64648
price1uint64728
price2uint64808
price3uint64888
saleAmountForPhase1uint64968
saleAmountForPhase2uint641048
saleAmountForPhase3uint641128
percent1uint321204
startEpochuint321244
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procbuyToken#2
in 12Bout 4B
input2 fields · 12B
nametypeoffsetbyteslayout
indexOfICOuint3204
amountuint6448
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procTransferShareManagementRights#3
in 52Bout 8B
input3 fields · 52B
nametypeoffsetbyteslayout
assetAsset040
numberOfSharessint64408
newManagingContractIndexuint32484
output1 field · 8B
nametypeoffsetbyteslayout
transferredNumberOfSharessint6408

Functions

1Read-only
funcgetICOInfo#1
in 4Bout 184B
input1 field · 4B
nametypeoffsetbyteslayout
indexOfICOuint3204
output15 fields · 184B
nametypeoffsetbyteslayout
creatorOfICOid032
issuerid3232
address1id6432
assetNameuint64968
price1uint641048
price2uint641128
price3uint641208
saleAmountForPhase1uint641288
saleAmountForPhase2uint641368
saleAmountForPhase3uint641448
remainingAmountForPhase1uint641528
remainingAmountForPhase2uint641608
remainingAmountForPhase3uint641688
percent1uint321764
startEpochuint321804

Structs

1Shared types
structAsset
40B2 fields
fields
nametypeoffsetbyteslayout
issuerid032
assetNameuint64328

Raw JSON

/v1/contracts/18
contracts/18.json
{
  "contractIndex": 18,
  "contractName": "QIP",
  "contractAddress": "SAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABNI",
  "epoch": 189,
  "coreVersion": "v1.268.1",
  "structs": {
    "Asset": {
      "name": "Asset",
      "byteLength": 40,
      "fields": [
        {
          "name": "issuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "assetName",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        }
      ]
    }
  },
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 1,
      "name": "createICO",
      "inputFields": [
        {
          "name": "issuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "address1",
          "type": "id",
          "offset": 32,
          "byteLength": 32
        },
        {
          "name": "assetName",
          "type": "uint64",
          "offset": 64,
          "byteLength": 8
        },
        {
          "name": "price1",
          "type": "uint64",
          "offset": 72,
          "byteLength": 8
        },
        {
          "name": "price2",
          "type": "uint64",
          "offset": 80,
          "byteLength": 8
        },
        {
          "name": "price3",
          "type": "uint64",
          "offset": 88,
          "byteLength": 8
        },
        {
          "name": "saleAmountForPhase1",
          "type": "uint64",
          "offset": 96,
          "byteLength": 8
        },
        {
          "name": "saleAmountForPhase2",
          "type": "uint64",
          "offset": 104,
          "byteLength": 8
        },
        {
          "name": "saleAmountForPhase3",
          "type": "uint64",
          "offset": 112,
          "byteLength": 8
        },
        {
          "name": "percent1",
          "type": "uint32",
          "offset": 120,
          "byteLength": 4
        },
        {
          "name": "startEpoch",
          "type": "uint32",
          "offset": 124,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 128,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 2,
      "name": "buyToken",
      "inputFields": [
        {
          "name": "indexOfICO",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        },
        {
          "name": "amount",
          "type": "uint64",
          "offset": 4,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 12,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 3,
      "name": "TransferShareManagementRights",
      "inputFields": [
        {
          "name": "asset",
          "type": "struct",
          "offset": 0,
          "byteLength": 40,
          "structRef": "Asset"
        },
        {
          "name": "numberOfShares",
          "type": "sint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "newManagingContractIndex",
          "type": "uint32",
          "offset": 48,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "transferredNumberOfShares",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 52,
      "outputSize": 8
    }
  ],
  "functions": [
    {
      "kind": "function",
      "inputType": 1,
      "name": "getICOInfo",
      "inputFields": [
        {
          "name": "indexOfICO",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "creatorOfICO",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "issuer",
          "type": "id",
          "offset": 32,
          "byteLength": 32
        },
        {
          "name": "address1",
          "type": "id",
          "offset": 64,
          "byteLength": 32
        },
        {
          "name": "assetName",
          "type": "uint64",
          "offset": 96,
          "byteLength": 8
        },
        {
          "name": "price1",
          "type": "uint64",
          "offset": 104,
          "byteLength": 8
        },
        {
          "name": "price2",
          "type": "uint64",
          "offset": 112,
          "byteLength": 8
        },
        {
          "name": "price3",
          "type": "uint64",
          "offset": 120,
          "byteLength": 8
        },
        {
          "name": "saleAmountForPhase1",
          "type": "uint64",
          "offset": 128,
          "byteLength": 8
        },
        {
          "name": "saleAmountForPhase2",
          "type": "uint64",
          "offset": 136,
          "byteLength": 8
        },
        {
          "name": "saleAmountForPhase3",
          "type": "uint64",
          "offset": 144,
          "byteLength": 8
        },
        {
          "name": "remainingAmountForPhase1",
          "type": "uint64",
          "offset": 152,
          "byteLength": 8
        },
        {
          "name": "remainingAmountForPhase2",
          "type": "uint64",
          "offset": 160,
          "byteLength": 8
        },
        {
          "name": "remainingAmountForPhase3",
          "type": "uint64",
          "offset": 168,
          "byteLength": 8
        },
        {
          "name": "percent1",
          "type": "uint32",
          "offset": 176,
          "byteLength": 4
        },
        {
          "name": "startEpoch",
          "type": "uint32",
          "offset": 180,
          "byteLength": 4
        }
      ],
      "inputSize": 4,
      "outputSize": 184
    }
  ],
  "effectiveFromEpoch": 189,
  "effectiveToEpoch": null
}